{{ merchant.email }}
{% endif %} {% if merchant.phone %}{{ merchant.phone }}
{% endif %}{{ customer.business_legal_name }}
{% elif customer.first_name or customer.last_name %}{{ (customer.first_name or "") ~ " " ~ (customer.last_name or "") }}
{% endif %} {% if customer.email %}{{ customer.email }}
{% endif %} {% if customer.phone %}{{ customer.phone }}
{% endif %} {% else %}—
{% endif %}Invoice #: {{ invoice.invoice_literal or "—" }}
{% if invoice.reference %}Ref: {{ invoice.reference }}
{% endif %}| Description | Qty | Unit Price | Tax | Total |
|---|---|---|---|---|
|
{{ item.title or "Item" }}
{% if item.description %}
{{ item.description }} {% endif %} |
{{ item.quantity or 1 }} | ${{ "%.2f"|format((item.unit_price or 0)) }} | {% if item.tax %}${{ "%.2f"|format(item.tax) }}{% else %}—{% endif %} | ${{ "%.2f"|format((item.unit_price or 0) * (item.quantity or 1)) }} |
| No line items | ||||
| Subtotal | ${{ "%.2f"|format(subtotal.value) }} |
| Tax | ${{ "%.2f"|format(invoice.tax_fee) }} |
| Shipping | ${{ "%.2f"|format(invoice.shipping_fee) }} |
| Discount | -${{ "%.2f"|format(invoice.discount) }} |
| Surcharge | ${{ "%.2f"|format(invoice.surcharge) }} |
| TOTAL | ${{ "%.2f"|format(invoice.amount or 0) }} |
| Paid | -${{ "%.2f"|format(invoice.paid_amount) }} |
| Balance Due | ${{ "%.2f"|format([invoice.amount - invoice.paid_amount, 0]|max) }} |
{{ invoice.comments }}