{{ title_map.get(document_type, 'INVOICE') }}
Bill To
{{ data.to.name }}
{% if data.to.email %}
{{ data.to.email }}
{% endif %}
{% if data.to.phone %}
{{ data.to.phone }}
{% endif %}
{% if data.to.address %}
{{ data.to.address | nl2br }}
{% endif %}
Payment Details
{% if data.due_date %}
Due {{ data.due_date | date_format }}
{% endif %}
{% if data.payment_terms %}
{{ data.payment_terms }}
{% endif %}
{% if data.currency %}
Currency: {{ data.currency | upper }}
{% endif %}
Description
Amount
| Description | Qty | Unit | Amount |
|---|---|---|---|
| {{ item.description }} | {{ item.quantity }} | {{ item.unit_price | currency }} | {{ (item.amount or item.unit_price * item.qty) | currency }} |
Subtotal
{{ data.subtotal | currency }}
{% if data.tax_rate > 0 %}
Tax ({{ data.tax_rate | percent }})
{{ (data.tax or data.tax_amount or 0) | currency }}
{% endif %}
{% if data.discount > 0 %}
Discount
-{{ data.discount | currency }}
{% endif %}
Total
{{ data.total | currency }}
Notes
{{ data.notes | nl2br }}