{%- 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 %}
{{ 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 %}