{%- 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 %}
| {{ _("Sr") }} | {{ _("Details") }} | {{ _("Qty") }} | {{ _("Rate") }} | {{ _("Amount") }} |
|---|---|---|---|---|
| {{ loop.index }} |
{{ item.item_code }}: {{ item.item_name }}
{% if (item.description != item.item_name) %}
{{ item.description }} {% endif %} |
{{ item.get_formatted("qty", 0) }} {{ item.get_formatted("uom", 0) }} | {{ item.get_formatted("net_rate", doc) }} | {{ item.get_formatted("net_amount", doc) }} |