{% if style.logo_url %}
{% endif %}
{{ data.from.name }}
{% if data.from.address %}
{{ data.from.address | nl2br }}
{% endif %} {% if data.from.email %}
{{ data.from.email }}
{% endif %} {% if data.from.phone %}
{{ data.from.phone }}
{% 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.address %}
{{ data.to.address | nl2br }}
{% endif %} {% if data.to.email %}
{{ data.to.email }}
{% endif %} {% if data.to.phone %}
{{ data.to.phone }}
{% endif %}
{% if data.due_date %}
Due Date
{{ data.due_date | date_format }}
{% endif %} {% if data.payment_terms %}
Terms
{{ data.payment_terms }}
{% endif %}
Description
Qty
Unit Price
Amount
{% for item in data.line_items %}
{{ item.description }}
{{ item.quantity }}
{{ item.unit_price | currency }}
{{ (item.amount or item.unit_price * item.qty) | currency }}
{% endfor %}
Subtotal
{{ data.subtotal | currency }}
{% if data.tax_rate > 0 %}
Tax ({{ data.tax_rate | percent }})
{{ (data.tax or data.tax_amount or 0) | currency }}
{% endif %}
Total
{{ data.total | currency }}
{% if data.payment_link %}
{{ data.payment_link_text | default('Pay Now') }}
{% endif %} {% if data.notes %}
Notes
{{ data.notes | nl2br }}
{% endif %}