diff --git a/erpnext/accounts/print_format/print_format_sales_invoice/__init__.py b/erpnext/accounts/print_format/print_format_sales_invoice/__init__.py new file mode 100644 index 00000000000..e69de29bb2d 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 new file mode 100644 index 00000000000..aa1f9923326 --- /dev/null +++ b/erpnext/accounts/print_format/print_format_sales_invoice/print_format_sales_invoice.html @@ -0,0 +1,310 @@ +{%- 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:
+ Bill to:
+
+
+ {{ doc.customer_name }}
+ {{ doc.address_display or "" }}
+ |
+
+
+
+
+ Invoice Number:
+ Invoice Date:
+ Payment Due Date:
+
+
+ {{ doc.name }}
+ {{ frappe.utils.format_date(doc.posting_date) }}
+ {{ frappe.utils.format_date(doc.due_date) }}
+ |
+
| {{ _("No") }} | +{{ _("Item") }} | +{{ _("HSN/SAC") }} | +{{ _("Quantity") }} | +{{ _("Rate") }} | +{{ _("Amount") }} | +
| {{ loop.index }} | +
+
+
+
+ {% if item.image %}
+
+
+
+ {% endif %}
+ {{ item.item_name }}
+ |
+
+ {{ item.gst_hsn_code }} | +{{ item.get_formatted("qty", 0) }} {{ item.uom }} | +{{ item.get_formatted("net_rate", doc) }} | +{{ item.get_formatted("net_amount", doc) }} | +
| + + |
+
|
+ ||||||
|
+
+
+
|
+ |||||||
| {{ _("HSN/SAC") }} | +{{ _("Taxable Amount") }} | + {% for row in doc.taxes %} +{{ row.description }} ({{ row.rate }}%) | + {% 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) %} ++ {{ frappe.format_value(tax_amount, {"fieldtype": "Currency"}, doc) }} + | + {% endfor %} +