{% if style.show_watermark | default(false) | to_bool %}
{{ style.watermark_text | default('PAID') }}
{% endif %}
{% if style.logo_url %} {% else %} {% endif %}
{{ data.from.name }}
{% if data.from.email or data.from.phone %}
{% if data.from.email %}{{ data.from.email }}{% endif %} {% if data.from.email and data.from.phone %} · {% endif %} {% if data.from.phone %}{{ data.from.phone }}{% endif %}
{% endif %}
{{ title_map.get(document_type, 'INVOICE') }}
{% if data.document_number %}
#{{ data.document_number }}
{% endif %} {% if data.issue_date %}
{{ data.issue_date | date_format }}
{% endif %}
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.status %}
{{ data.status | upper }}
{% endif %}
{% for item in data.line_items %} {% endfor %}
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 }}
{% if data.notes %}
Notes
{{ data.notes | nl2br }}
{% endif %} {% if data.payment_link %} {% endif %}