{% set v=d['values'] %}

NexCom ERP · {{ d.doctype|e }}

{{ v.name|e }}

{{ (v.supplier_name or '')|e }}

{{ v.company|e }} · {{ v.status|e }} · {{ v.currency|e }}

Date: {{ v.transaction_date or v.posting_date or '' }}{% if v.due_date %} · Due: {{ v.due_date }}{% endif %}

{% for r in d['items'] %}{% endfor %}
ItemQuantityUnitRateAmount
{{ r.item_name|e }}
{{ r.description|e }}
{{ r.qty }}{{ r.uom|e }}{{ '%.2f'|format(r.rate) }}{{ '%.2f'|format(r.amount) }}
{% for r in d.taxes %}

{{ r.description|e }}: {{ '%.2f'|format(r.tax_amount) }}

{% endfor %}

Total: {{ '%.2f'|format(v.grand_total) }} {{ v.currency|e }}

{% if v.outstanding_amount is defined %}

Outstanding: {{ '%.2f'|format(v.outstanding_amount) }}

{% endif %}{% if d.terms %}

Terms

{{ d.terms|e }}

{% endif %}