diff --git a/erpnext/accounts/print_format/sales_invoice_print_format/__init__.py b/erpnext/accounts/print_format/sales_invoice_print_format/__init__.py new file mode 100644 index 00000000000..e69de29bb2d 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 new file mode 100644 index 00000000000..c5800c0645f --- /dev/null +++ b/erpnext/accounts/print_format/sales_invoice_print_format/sales_invoice_print_format.html @@ -0,0 +1,148 @@ +{%- macro add_header(page_num, max_pages, doc, letter_head, no_letterhead, footer, print_settings=None, +print_heading_template=None) -%} {% if letter_head and not no_letterhead %} +
| + {{ _("Customer Name") }}: {{doc.customer_name }} + | ++ {{ _("Payment Due Date") }}: {{ + frappe.utils.format_date(doc.due_date) }} + | +
| {{ _("Invoice Number") }}: {{ doc.name }} | ++ {{ _("Invoice Date") }}: {{ + frappe.utils.format_date(doc.posting_date) }} + | +
| {{ _("Bill From") }}: {{ address }} |
+ {{ _("Bill To") }}: {{ company_address_display }} |
+
| {{ _("No") }} | +{{ _("Item") }} | +{{ _("Quantity") }} | +{{ _("Rate") }} | +{{ _("Amount") }} | +
| {{ loop.index }} | +{{ item.item_name }} | +{{ item.get_formatted("qty", 0) }} {{ item.uom }} | +{{ item.get_formatted("net_rate", doc) }} | +{{ item.get_formatted("net_amount", doc) }} | +
{{ _("Total in words") }}
+| {{ _("Sub Total:") }} | +{{ doc.get_formatted("total", doc) }} | +
| + {{ _("Discount") }} ({{ doc.additional_discount_percentage }}%): + | +{{ doc.get_formatted("discount_amount", doc) }} | +
| {{ _("Tax") }} ({{ tax_rate }}%): | +{{ doc.get_formatted("total_taxes_and_charges", doc) }} | +
| {{ _("Grand Total:") }} | +{{ doc.get_formatted("grand_total", doc) }} | +
| {{ _("HSN/SAC") }} | +{{ _("Taxable Amount") }} | + {% for row in doc.taxes %} +{{ row.description }} | + {% endfor %} +
| {{ item.gst_hsn_code }} | +{{ item.get_formatted("base_net_amount", doc) }} | + {% for row in doc.taxes %} {% set tax_amount = item.base_net_amount * (row.rate / 100) %} ++ ({{ (row.rate) }}%) {{ frappe.format_value(tax_amount, {"fieldtype": "Currency"}, doc) + }} + | + {% endfor %} +