{% if style.logo_url %} {% endif %} {% if data.from.name %}
{{ data.from.name }}
{% endif %}
{% if data.from.address %}{{ data.from.address | nl2br }}{% endif %} {% if data.from.email %}{% if data.from.address %}
{% endif %}{{ data.from.email }}{% endif %} {% if data.from.phone %}
{{ data.from.phone }}{% endif %}
{{ title_map.get(document_type, 'INVOICE') }}
{% if data.invoice_number %}
#{{ data.invoice_number }}
{% endif %} {% if data.document_number and not data.invoice_number %}
#{{ data.document_number }}
{% endif %} {% if data.issue_date %}
Date: {{ data.issue_date | date_format }}
{% endif %} {% if data.document_status %} {{ data.document_status }} {% endif %}
Bill To
{% if data.to.name %}
{{ data.to.name }}
{% endif %} {% 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 %}
{% for item in data.line_items %} {% endfor %}
Description Qty Unit Price 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 %}
Total {{ data.total | currency }}
{% if data.payment_link %} {% endif %}