From 842a3645dc41784cd844a7f7c77e44004293caee Mon Sep 17 00:00:00 2001 From: khushi8112 Date: Mon, 22 Sep 2025 15:04:27 +0530 Subject: [PATCH] refactor: remove tax breakup table from the print format --- .../print_format_sales_invoice.html | 31 ----------------- .../sales_invoice_print_format.html | 33 ------------------- 2 files changed, 64 deletions(-) diff --git a/erpnext/accounts/print_format/print_format_sales_invoice/print_format_sales_invoice.html b/erpnext/accounts/print_format/print_format_sales_invoice/print_format_sales_invoice.html index f034271f505..b52da80b3bd 100644 --- a/erpnext/accounts/print_format/print_format_sales_invoice/print_format_sales_invoice.html +++ b/erpnext/accounts/print_format/print_format_sales_invoice/print_format_sales_invoice.html @@ -196,7 +196,6 @@ print_heading_template=None) -%} - @@ -205,7 +204,6 @@ print_heading_template=None) -%} {{ _("No") }} {{ _("Item") }} - {{ _("HSN/SAC") }} {{ _("Quantity") }} {{ _("Rate") }} {{ _("Amount") }} @@ -245,7 +243,6 @@ print_heading_template=None) -%} - {{ item.gst_hsn_code }} {{ item.get_formatted("qty", 0) }} {{ item.uom }} {{ item.get_formatted("net_rate", doc) }} {{ item.get_formatted("net_amount", doc) }} @@ -313,34 +310,6 @@ print_heading_template=None) -%} - {% if doc.taxes_and_charges %} - -
{{ _("Tax Breakup") }}
- - - - - {% for row in doc.taxes %} - - {% endfor %} - - - - {% for item in doc.items %} - - - - {% for row in doc.taxes %} {% set tax_amount = item.base_net_amount * (row.rate / 100) %} - - {% endfor %} - - {% endfor %} - -
{{ _("HSN/SAC") }}{{ _("Taxable Amount") }}{{ row.description }} ({{ row.rate }}%)
{{ item.gst_hsn_code }}{{ item.get_formatted("base_net_amount", doc) }} - {{ frappe.format_value(tax_amount, {"fieldtype": "Currency"}, doc) }} -
- {% endif %} - {% if doc.terms %}
diff --git a/erpnext/accounts/print_format/sales_invoice_print_format/sales_invoice_print_format.html b/erpnext/accounts/print_format/sales_invoice_print_format/sales_invoice_print_format.html index d98c30700a9..b77aff84ed7 100644 --- a/erpnext/accounts/print_format/sales_invoice_print_format/sales_invoice_print_format.html +++ b/erpnext/accounts/print_format/sales_invoice_print_format/sales_invoice_print_format.html @@ -280,39 +280,6 @@ print_heading_template=None) -%}
- - {% if doc.taxes_and_charges %} -
{{ _("Tax Breakup") }}
-
- - - - - - {% for row in doc.taxes %} - - {% endfor %} - - - - {% for item in doc.items %} - - - - {% for row in doc.taxes %} {% set tax_amount = item.base_net_amount * (row.rate / 100) - %} - - {% endfor %} - - {% endfor %} - -
{{ _("HSN/SAC") }}{{ _("Taxable Amount") }}{{ row.description }}
{{ item.gst_hsn_code }}{{ item.get_formatted("base_net_amount", doc) }} - ({{ (row.rate) }}%) {{ frappe.format_value(tax_amount, {"fieldtype": "Currency"}, - doc) }} -
-
- {% endif %} - {% if doc.terms %}