{%- 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:
{{ doc.name }}
Invoice Date:
{{ frappe.utils.format_date(doc.posting_date) }}
Payment Due Date:
{{ frappe.utils.format_date(doc.due_date) }}
|
| {{ _("No") }} | {{ _("Item") }} | {{ _("Quantity") }} | {{ _("Rate") }} | {{ _("Amount") }} | ||
| {{ loop.index }} |
|
{{ item.get_formatted("qty", 0) }} {{ item.uom }} | {{ item.get_formatted("net_rate", doc) }} | {{ item.get_formatted("net_amount", doc) }} |
| {{ _("Sub Total:") }} | {{ doc.get_formatted("total", doc) }} |
| {{ _("Discount") }} ({{ doc.additional_discount_percentage }}%): | {{ doc.get_formatted("discount_amount", doc) }} |
| {{ tax.get_formatted("description") }} ({{ tax.get_formatted("rate") }}%): | {{ tax.get_formatted("tax_amount") }} |
| {{ _("Discount") }} ({{ doc.additional_discount_percentage }}%): | {{ doc.get_formatted("discount_amount", doc) }} |
|
{{ _("In Words: ") }}{{ doc.in_words }}
|
{{ _("Grand Total:") }} | {{ doc.get_formatted("grand_total", doc) }} |