diff --git a/india_compliance/gst_india/print_format/gst_tax_invoice/gst_tax_invoice.json b/india_compliance/gst_india/print_format/gst_tax_invoice/gst_tax_invoice.json
index 3ed7aed4b3..cf694e8b54 100644
--- a/india_compliance/gst_india/print_format/gst_tax_invoice/gst_tax_invoice.json
+++ b/india_compliance/gst_india/print_format/gst_tax_invoice/gst_tax_invoice.json
@@ -10,14 +10,14 @@
"doctype": "Print Format",
"font": "Default",
"font_size": 14,
- "format_data": "[{\"fieldname\": \"print_heading_template\", \"fieldtype\": \"Custom HTML\", \"options\": \"{% set image_path=\\\"/assets/india_compliance/images/logo.png\\\" %}\\n\\n
\\n \\n \\n \\n \\n {{ doc.select_print_heading if doc.select_print_heading else 'Tax Invoice' }} \\n {{ doc.name }} \\n \\n | \\n \\n \\n \\n \\n \\n \\n \\n {{ doc.company }}\\n \\n | \\n\\n
\\n \\n
\"}, {\"fieldtype\": \"Section Break\", \"label\": \"First Section\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n\\t\\n\\t{% if not doc.shipping_address or doc.address_display == doc.shipping_address %}\\n\\t\\t
Billing and Shipping Address
\\n\\t{% else %}\\n\\t\\t
Billed To
\\n\\t{% endif %} \\n\\t{% if doc.customer_name %}\\n\\t\\t
{{ doc.customer_name }}
\\n\\t{% endif %}\\n\\n\\t
{{ doc.address_display if doc.address_display else '' }}
\\n\\n\\t\\n\\t{% if doc.shipping_address and doc.address_display !=\\n\\t\\tdoc.shipping_address %}\\n\\t\\t
Shipped To
\\n\\t\\t\\t{% if doc.dispatch_address_name %}\\n\\t\\t\\t\\t
{{ doc.dispatch_address_name }}
\\n\\t\\t\\t{% endif %}\\n\\t\\t
{{ doc.shipping_address }}
\\n\\t{% endif %}\\n
\"}, {\"fieldname\": \"place_of_supply\", \"print_hide\": 0, \"label\": \"Place of Supply\"}, {\"fieldname\": \"is_reverse_charge\", \"print_hide\": 0, \"align\": \"left\", \"label\": \"Reverse Charge\"}, {\"fieldname\": \"posting_date\", \"print_hide\": 0, \"label\": \"Date\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n{% if doc.contact_display or doc.contact_mobile or doc.contact_email %}\\n\\n
Contact Person
\\n {% if doc.contact_display %}\\n
{{ doc.contact_display }}
\\n {% endif %} {% if doc.contact_mobile %}\\n
{{ doc.contact_mobile }}
\\n {% endif %} {% if doc.contact_email %}\\n
{{ doc.contact_email }}
\\n {% endif %}\\n
\\n{% endif %}\\n\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n{% if doc.po_no %}\\n\\n
Purchase Order Reference
\\n
{{ doc.po_no if doc.po_no }}
\\n
dtd. {{ doc.get_formatted(\\\"po_date\\\") }}
\\n
\\n{% endif %}\\n\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n\\n\\t
Delivery Note Reference
\\n\\t
8888888888 dtd. {{ doc.get_formatted('posting_date') }}
\\n
\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n{% if doc.transporter_name or doc.vehicle_no or doc.lr_no or doc.ewaybil %}\\n\\n
Transporter Details
\\n {% if doc.transporter_name %}\\n
{{ doc.transporter_name }}
\\n {% endif %} {% if doc.vehicle_no %}\\n
Vehicle No: {{ doc.vehicle_no }}
\\n {% endif %} {% if doc.lr_no %}\\n
LR No: {{ doc.lr_no }}
\\n {% endif %} {% if doc.ewaybill %}\\n
e-Waybill No: {{ doc.ewaybill }}
\\n {% endif %}\\n
\\n{% endif %}\\n\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n \\n {% if doc.outstanding_amount !=0 %}\\n
\\n Unpaid Amount\\n
\\n
\\n {{ doc.get_formatted(\\\"outstanding_amount\\\") }}\\n
\\n {% else %}\\n
\\n Fully Paid\\n
\\n {% endif %}\\n
\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"{% if doc.irn %}\\n\\t{% set e_invoice_log = frappe.db.get_value( \\\"e-Invoice Log\\\", doc.irn,\\n\\t(\\\"invoice_data\\\", \\\"signed_qr_code\\\"), as_dict=True ) %} \\n\\t{% set invoice_data = json.loads(e_invoice_log.invoice_data) %}\\n\\t{% set date_format = frappe.db.get_single_value(\\\"System Settings\\\",'date_format').replace(\\\"mm\\\",\\\"MM\\\") %}\\n\\n \\n \\n
\\n {{ web_block('e-Invoice QR Code', values={'qr_text':\\n e_invoice_log.signed_qr_code }) }}\\n
\\n \\n \\n
\\n IRN : {{ doc.irn }}\\n
\\n \\n
\\n Ack No. {{ invoice_data.get(\\\"AckNo\\\") if doc.irn and invoice_data.get(\\\"AckNo\\\")\\n \\telse '' }}\\n
\\n \\n
\\n Ack Dt.\\n {{ frappe.utils.format_datetime(invoice_data.get(\\\"AckDt\\\"),date_format) if doc.irn and invoice_data.get(\\\"AckDt\\\") else '' }}\\n
\\n
\\n{% endif %}\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"items\", \"print_hide\": 0, \"label\": \"Items\", \"visible_columns\": [{\"fieldname\": \"serial_no\", \"print_width\": \"\", \"print_hide\": 0}, {\"fieldname\": \"gst_hsn_code\", \"print_width\": \"\", \"print_hide\": 0}, {\"fieldname\": \"description\", \"print_width\": \"200px\", \"print_hide\": 0}, {\"fieldname\": \"qty\", \"print_width\": \"\", \"print_hide\": 0}, {\"fieldname\": \"rate\", \"print_width\": \"\", \"print_hide\": 0}, {\"fieldname\": \"amount\", \"print_width\": \"\", \"print_hide\": 0}]}, {\"fieldtype\": \"Section Break\", \"label\": \"erpnext\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"due_date\", \"print_hide\": 0, \"align\": \"left\", \"label\": \"Due Date\"}, {\"fieldname\": \"paid_amount\", \"print_hide\": 0, \"label\": \"Paid Amount\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n{% set upi_id = '9157573806@paytm' %}\\n\\n{% set bank = 'State Bank of India' %}\\n{% set branch = '@ Por, Vadodara' %}\\n{% set ac_no = '12345678912' %}\\n{% set ifsc = 'shahsanket@oksbi' %}\\n\\n\\n \\n {% if doc.outstanding_amount != 0 %}\\n \\n \\n {{ web_block('UPI QR', values={'upi_qr': 'upi://pay?pa=' ~ upi_id ~ '&am=' ~ doc.outstanding_amount ~ '&tn=' ~ doc.name ~ '&cu=INR' }) }}\\n \\n \\n UPI QR \\n\\n | \\n {% endif %}\\n \\n \\n Bank Details \\n {{ bank }} \\n Branch: {{ branch }} \\n A/c No: {{ ac_no }} \\n IFSC: {{ ifsc }} \\n | \\n
\\n
\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"total\", \"print_hide\": 0, \"label\": \"Total\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n {%- set data = doc.taxes -%}\\n {%- set print_settings = frappe.get_doc(\\\"Print Settings\\\") -%}\\n {% include \\\"erpnext/templates/print_formats/includes/taxes.html\\\" %}\\n
\"}, {\"fieldname\": \"grand_total\", \"print_hide\": 0, \"label\": \"Grand Total\"}, {\"fieldname\": \"rounded_total\", \"print_hide\": 0, \"label\": \"Rounded Total\"}, {\"fieldname\": \"in_words\", \"print_hide\": 0, \"label\": \"In Words\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"gst_breakup_table\", \"print_hide\": 0, \"label\": \"GST Breakup Table\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"{% set first_name = frappe.db.get_value(\\\"User\\\",doc.owner,\\\"first_name\\\") %}\\n{% set last_name = frappe.db.get_value(\\\"User\\\",doc.owner,\\\"last_name\\\") %}\\n\\n{% set msme_no = \\\"123456789123456\\\" %}\\n{% set msme_type = \\\"Micro\\\" %}\\n{% set generated_by = first_name ~ (' ' ~ last_name if last_name else '') %}\\n{% set company_gstin = doc.company_gstin %}\\n{% set lut_no = \\\"29AABCR1718E1ZL29AABCR1718E1ZL29AABCR1718E1ZL12345\\\" %}\\n{% set generated_on = frappe.utils.getdate(doc.get_formatted(\\\"creation\\\")) %}\\n\\n{% set company_details = {\\n \\\"MSME No\\\" : msme_no, \\n \\\"MSME Type\\\" : msme_type, \\n \\\"Generated By\\\" : generated_by, \\n \\\"Company GSTIN\\\" : company_gstin, \\n \\\"Lut No.\\\" : lut_no, \\n \\\"Generated On\\\" : generated_on\\n } \\n%} \\n\\n{% set count = namespace(value=0) %}\\n{% set has_msme_no = namespace(value=True) %}\\n\\n\\n \\n {% for key,value in company_details.items() %}\\n\\n\\t\\t\\t{% if key == \\\"MSME No\\\" and value == \\\"\\\" %}\\n\\t\\t\\t\\t{% set has_msme_no.value = namespace(value=False) %}\\n\\t\\t\\t{% endif %}\\n\\n {% if count.value == 3 %}\\n
\\n \\n {% endif %}\\n\\n {% if (key==\\\"MSME Type\\\" and has_msme_no.value == True and value !=\\\"\\\") or (value != \\\"\\\" and key != \\\"MSME Type\\\") %}\\n \\n {{ key }} : {{ value }} \\n | \\n {% set count.value = count.value + 1 %}\\n {% endif %}\\n\\n {% endfor %}\\n
\\n
\\nThis is computer-generated document and no signature is required
\\n\"}]",
+ "format_data": "[{\"fieldname\": \"print_heading_template\", \"fieldtype\": \"Custom HTML\", \"options\": \"{% set image_path=\\\"/assets/india_compliance/images/logo.png\\\" %}\\n\\n\\n \\n \\n \\n {% if image_path != \\\"\\\" %}\\n \\n ![]({{) \\n \\n {% endif %}\\n \\n \\n {{ doc.company }}\\n \\n | \\n \\n \\n {{ doc.select_print_heading if doc.select_print_heading else 'Tax Invoice' }} \\n {{ doc.name }} \\n \\n | \\n
\\n \\n
\"}, {\"fieldtype\": \"Section Break\", \"label\": \"First Section\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n\\t\\n\\t{% if not doc.shipping_address or doc.address_display == doc.shipping_address %}\\n\\t\\t
Billing and Shipping Address
\\n\\t{% else %}\\n\\t\\t
Billed To
\\n\\t{% endif %} \\n\\t{% if doc.customer_name %}\\n\\t\\t
{{ doc.customer_name }}
\\n\\t{% endif %}\\n\\n\\t
{{ doc.address_display if doc.address_display else '' }}
\\n\\n\\t\\n\\t{% if doc.shipping_address and doc.address_display !=\\n\\t\\tdoc.shipping_address %}\\n\\t\\t
Shipped To
\\n\\t\\t\\t{% if doc.dispatch_address_name %}\\n\\t\\t\\t\\t
{{ doc.dispatch_address_name }}
\\n\\t\\t\\t{% endif %}\\n\\t\\t
{{ doc.shipping_address }}
\\n\\t{% endif %}\\n
\"}, {\"fieldname\": \"place_of_supply\", \"print_hide\": 0, \"label\": \"Place of Supply\"}, {\"fieldname\": \"is_reverse_charge\", \"print_hide\": 0, \"align\": \"left\", \"label\": \"Reverse Charge\"}, {\"fieldname\": \"posting_date\", \"print_hide\": 0, \"label\": \"Date\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n{% if doc.contact_display or doc.contact_mobile or doc.contact_email %}\\n\\n
Contact Person
\\n {% if doc.contact_display %}\\n
{{ doc.contact_display }}
\\n {% endif %} {% if doc.contact_mobile %}\\n
{{ doc.contact_mobile }}
\\n {% endif %} {% if doc.contact_email %}\\n
{{ doc.contact_email }}
\\n {% endif %}\\n
\\n{% endif %}\\n\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n{% if doc.po_no %}\\n\\n
Purchase Order Reference
\\n
{{ doc.po_no if doc.po_no }}
\\n
dtd. {{ doc.get_formatted(\\\"po_date\\\") }}
\\n
\\n{% endif %}\\n\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n\\n\\n\\n\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n{% if doc.transporter_name or doc.vehicle_no or doc.lr_no or doc.ewaybil %}\\n\\n
Transporter Details
\\n {% if doc.transporter_name %}\\n
{{ doc.transporter_name }}
\\n {% endif %} {% if doc.vehicle_no %}\\n
Vehicle No: {{ doc.vehicle_no }}
\\n {% endif %} {% if doc.lr_no %}\\n
LR No: {{ doc.lr_no }}
\\n {% endif %} {% if doc.ewaybill %}\\n
e-Waybill No: {{ doc.ewaybill }}
\\n {% endif %}\\n
\\n{% endif %}\\n\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n \\n {% if doc.outstanding_amount !=0 %}\\n
\\n Unpaid Amount\\n
\\n
\\n {{ doc.get_formatted(\\\"outstanding_amount\\\") }}\\n
\\n {% else %}\\n
\\n Fully Paid\\n
\\n {% endif %}\\n
\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"{% if doc.irn %}\\n\\t{% set e_invoice_log = frappe.db.get_value( \\\"e-Invoice Log\\\", doc.irn,\\n\\t(\\\"invoice_data\\\", \\\"signed_qr_code\\\"), as_dict=True ) %} \\n\\t{% set invoice_data = json.loads(e_invoice_log.invoice_data) %}\\n\\t{% set date_format = frappe.db.get_single_value(\\\"System Settings\\\",'date_format').replace(\\\"mm\\\",\\\"MM\\\") %}\\n\\n \\n \\n
\\n {{ web_block('e-Invoice QR Code', values={'qr_text':\\n e_invoice_log.signed_qr_code }) }}\\n
\\n \\n \\n
\\n IRN : {{ doc.irn }}\\n
\\n \\n
\\n Ack No. {{ invoice_data.get(\\\"AckNo\\\") if doc.irn and invoice_data.get(\\\"AckNo\\\")\\n \\telse '' }}\\n
\\n \\n
\\n Ack Dt.\\n {{ frappe.utils.format_datetime(invoice_data.get(\\\"AckDt\\\"),date_format) if doc.irn and invoice_data.get(\\\"AckDt\\\") else '' }}\\n
\\n
\\n{% endif %}\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"items\", \"print_hide\": 0, \"label\": \"Items\", \"visible_columns\": [{\"fieldname\": \"serial_no\", \"print_width\": \"\", \"print_hide\": 0}, {\"fieldname\": \"gst_hsn_code\", \"print_width\": \"\", \"print_hide\": 0}, {\"fieldname\": \"description\", \"print_width\": \"200px\", \"print_hide\": 0}, {\"fieldname\": \"qty\", \"print_width\": \"\", \"print_hide\": 0}, {\"fieldname\": \"rate\", \"print_width\": \"\", \"print_hide\": 0}, {\"fieldname\": \"amount\", \"print_width\": \"\", \"print_hide\": 0}]}, {\"fieldtype\": \"Section Break\", \"label\": \"erpnext\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"due_date\", \"print_hide\": 0, \"align\": \"left\", \"label\": \"Due Date\"}, {\"fieldname\": \"paid_amount\", \"print_hide\": 0, \"label\": \"Paid Amount\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n{% set upi_id = '9157573806@paytm' %}\\n\\n{% set bank = 'State Bank of India' %}\\n{% set branch = '@ Por, Vadodara' %}\\n{% set ac_no = '12345678912' %}\\n{% set ifsc = 'shahsanket@oksbi' %}\\n\\n\\n \\n {% if doc.outstanding_amount != 0 %}\\n \\n \\n {{ web_block('UPI QR', values={'upi_qr': 'upi://pay?pa=' ~ upi_id ~ '&am=' ~ doc.outstanding_amount ~ '&tn=' ~ doc.name ~ '&cu=INR' }) }}\\n \\n \\n UPI QR \\n\\n | \\n {% endif %}\\n \\n \\n Bank Details \\n {{ bank }} \\n Branch: {{ branch }} \\n A/c No: {{ ac_no }} \\n IFSC: {{ ifsc }} \\n | \\n
\\n
\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"total\", \"print_hide\": 0, \"label\": \"Total\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"\\n {%- set data = doc.taxes -%}\\n {%- set print_settings = frappe.get_doc(\\\"Print Settings\\\") -%}\\n {% include \\\"erpnext/templates/print_formats/includes/taxes.html\\\" %}\\n
\"}, {\"fieldname\": \"grand_total\", \"print_hide\": 0, \"label\": \"Grand Total\"}, {\"fieldname\": \"rounded_total\", \"print_hide\": 0, \"label\": \"Rounded Total\"}, {\"fieldname\": \"in_words\", \"print_hide\": 0, \"label\": \"In Words\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"gst_breakup_table\", \"print_hide\": 0, \"label\": \"GST Breakup Table\"}, {\"fieldtype\": \"Section Break\", \"label\": \"\"}, {\"fieldtype\": \"Column Break\"}, {\"fieldname\": \"_custom_html\", \"print_hide\": 0, \"label\": \"Custom HTML\", \"fieldtype\": \"HTML\", \"options\": \"{% set msme_no = \\\"123456789123456\\\" %}\\n{% set msme_type = \\\"Micro\\\" %}\\n{% set lut_no = \\\"29AABCR1718E1ZL29AABCR1718E1ZL29AABCR1718E1ZL12345\\\" %}\\n\\n\\n{% set first_name = frappe.db.get_value(\\\"User\\\",doc.owner,\\\"first_name\\\") %}\\n{% set last_name = frappe.db.get_value(\\\"User\\\",doc.owner,\\\"last_name\\\") %}\\n\\n{% set company_details = {\\n \\\"MSME No\\\" : msme_no, \\n \\\"MSME Type\\\" : msme_type, \\n \\\"Generated By\\\" : first_name ~ (' ' ~ last_name if last_name else ''), \\n \\\"Company GSTIN\\\" : doc.company_gstin, \\n \\\"Lut No.\\\" : lut_no, \\n \\\"Generated On\\\" : frappe.utils.getdate(doc.get_formatted(\\\"creation\\\"))\\n } \\n%} \\n\\n{% set count = namespace(value=0) %}\\n{% set has_msme_no = namespace(value=True) %}\\n\\n\\n \\n {% for key,value in company_details.items() %}\\n\\n\\t\\t\\t{% if key == \\\"MSME No\\\" and value == \\\"\\\" %}\\n\\t\\t\\t\\t{% set has_msme_no.value = namespace(value=False) %}\\n\\t\\t\\t{% endif %}\\n\\n {% if count.value == 3 %}\\n
\\n \\n {% endif %}\\n\\n {% if (key==\\\"MSME Type\\\" and has_msme_no.value == True and value !=\\\"\\\") or (value != \\\"\\\" and key != \\\"MSME Type\\\") %}\\n \\n {{ key }} : {{ value }} \\n | \\n {% set count.value = count.value + 1 %}\\n {% endif %}\\n\\n {% endfor %}\\n
\\n
\\nThis is computer-generated document and no signature is required
\\n\"}]",
"idx": 0,
"line_breaks": 0,
"margin_bottom": 15.0,
"margin_left": 15.0,
"margin_right": 15.0,
"margin_top": 15.0,
- "modified": "2024-05-14 12:13:18.055612",
+ "modified": "2024-05-14 16:10:21.655666",
"modified_by": "Administrator",
"module": "GST India",
"name": "GST Tax Invoice",