| # | Item | Description | {% if show_warehouse %}Warehouse | {% endif %}Qty | Rate | Amount | ||
|---|---|---|---|---|---|---|---|---|
| {{ loop.index }} | {{ item.item_code or "" }} | {{ item.item_name or item.description or "" }}{% if item.frequency %} {{ item.frequency }}{% endif %} |
{% if show_warehouse %}{{ item.warehouse or "" }} | {% endif %} {# A line ordered in a further unit prints that unit and its price; the stock quantity below. #}{% if item.ordered_in_unit %}{{ "%g"|format(item.order_qty or 0) }} {{ item.order_uom }} = {{ "%g"|format(item.qty or 0) }} {{ item.uom or "" }}{% else %}{{ item.qty }}{% endif %} |
{% if item.discount_total %}
{{ "%.2f"|format(item.order_gross_rate if item.ordered_in_unit else item.gross_rate) }} | {{ "%.2f"|format(item.gross_amount) }} | ||
| {{ item.discount_label }} | {% if show_warehouse %}{% endif %} | −{{ "%.2f"|format(item.discount_total) }} | {% else %}{{ "%.2f"|format(item.order_rate if item.ordered_in_unit else (item.rate or 0)) }} | {{ "%.2f"|format(item.amount) }} | {% endif %}
| Description | Rate | Amount |
|---|---|---|
| {{ tax.description or tax.account_head or "" }} | {{ "%.1f"|format(tax.rate or 0) }}% | {{ "%.2f"|format(tax.tax_amount or 0) }} |
{{ grp.frequency }}: {{ currency }} {{ "%.2f"|format(grp.net_total) }} + {{ "%.2f"|format(grp.total_taxes_and_charges) }} Tax = {{ "%.2f"|format(grp.grand_total) }}
{% endfor %} {# ---- Totals ---- #}| Net Total | {{ currency }} {{ "%.2f"|format(doc.net_total or 0) }} |
| Tax | {{ currency }} {{ "%.2f"|format(doc.total_taxes_and_charges or 0) }} |
| Grand Total | {{ currency }} {{ "%.2f"|format(doc.grand_total or 0) }} |
| Outstanding | {{ currency }} {{ "%.2f"|format(doc.outstanding_amount or 0) }} |