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 b52da80b3bd..0d04bd9be34 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 @@ -251,64 +251,58 @@ print_heading_template=None) -%} - - - +
+
 
+ + + + - - + {%- endif -%} + {%- endfor -%} + {%- if doc.apply_discount_on == "Grand Total" -%} + + + + + {%- endif -%} +
{{ _("Sub Total:") }}{{ doc.get_formatted("total", doc) }}
- + {%- if doc.apply_discount_on == "Net Total" -%} + + + + + {%- endif -%} + {%- for tax in doc.taxes -%} + {%- if (tax.tax_amount or print_settings.print_taxes_with_zero_amount) and (not tax.included_in_print_rate or doc.flags.show_inclusive_tax_in_print) -%} - - + + - - - - - {% set tax_rate = doc.taxes | selectattr("tax_amount") | sum(attribute="rate") %} {% - if tax_rate > 0 %} - - - - - {% endif %} -
+ {{ _("Discount") }} ({{ doc.additional_discount_percentage }}%): + {{ doc.get_formatted("discount_amount", doc) }}
{{ _("Sub Total:") }}{{ doc.get_formatted("total", doc) }}{{ tax.get_formatted("description") }} ({{ tax.get_formatted("rate") }}%):{{ tax.get_formatted("tax_amount") }}
- {{ _("Discount") }} ({{ doc.additional_discount_percentage or 0 }}%): - {{ doc.get_formatted("discount_amount", doc) }}
{{ _("Tax") }} ({{ tax_rate }}%): - {{ doc.get_formatted("total_taxes_and_charges", doc) }} -
-
+ {{ _("Discount") }} ({{ doc.additional_discount_percentage }}%): + {{ doc.get_formatted("discount_amount", doc) }}
+ + +
+ + + + + + +
+
+ {{ _("In Words: ") }}{{ doc.in_words }} +
+
{{ _("Grand Total:") }} + + {{ doc.get_formatted("grand_total", doc) }} + +
+
- - -
- - - - - - -
-
- {{ _("In Words: ") }}{{ doc.in_words }} -
-
{{ _("Grand Total:") }} - - {{ doc.get_formatted("grand_total", doc) }} - -
-
- - - {% if doc.terms %}