{% if invoice.retainer_credit? %}{{ settings.retainer_credit_title }}{% elsif invoice.retainer? %}{{ settings.retainer_title }}{% elsif invoice.credit? %}{{ settings.credit_title }}{% else %}{{ settings.invoice_title }}{% endif %} #{{ invoice.number }}

{{ invoice.title }}

{% if invoice.po != blank %} {% endif %} {% if invoice.paid? -%} {% if invoice.paid_date != null -%} {% else %} {% if invoice.retainer_credit? %} {% elsif invoice.credit? %} {% else %} {% endif %} {% endif %} {% else -%} {% endif -%}
Invoice No. {{ invoice.number }}
PO No. {{ invoice.po }}
Invoice Date {{ invoice.date | date: "%B %e, %Y" }}
Invoice Paid {{ invoice.paid_date | date: "%B %e, %Y" }}
Invoice Status{{ settings.retainer_credit_title | upcase }}{{ settings.credit_title | upcase }}PAID
Payment Due {{ invoice | invoice_due }}

From

{{ account.company }}

{{ account | two_line_address : invoice.client }} {% if account.email != blank %}

{{ account.email | h | mail_to: account.email }}

{% endif %} {% if account.invoice_extra_fields != blank %}
{{ account.invoice_extra_fields | safe_textilize }}
{% endif %}
{% if invoice.client != null %}

To

{{ invoice.client.name }}

{{ invoice.client | two_line_address : account }} {% if invoice.client.number != blank %}

ID: {{ invoice.client.number | h }}

{% endif %} {% if invoice.client.tax_id != blank %}

Tax ID: {{ invoice.client.tax_id | h }}

{% endif %} {% if invoice.client.invoice_extra_fields != blank %}
{{ invoice.client.invoice_extra_fields | safe_textilize }}
{% endif %}
{% endif %}
{% if invoice.summary != blank %}

Summary

{{ invoice.summary | safe_textilize | auto_link }}
{% endif %} {% comment %} This is the main invoice table with invoice items enumerated and an invoice summary generated based on the invoice totals. {% endcomment %}
{% if invoice.invoice_items != empty %} {% for item in invoice.invoice_items %} {% if item.section_header? %} {% else %} {% endif %} {% endfor %} {% else %} {% endif %} {% unless invoice.credit? %} {% if invoice.total_tax != 0 or invoice.total_tax2 != 0 or invoice.total_tax3 != 0 or invoice.total_discount > 0 or invoice.subtotal_late_fees > 0 %} {% endif %} {% if invoice.total_discount > 0 %} {% endif %} {% if invoice.subtotal_late_fees > 0 %} {% endif %} {% endunless %} {% if invoice.total_tax != 0 %} {% endif %} {% if invoice.total_tax2 != 0 %} {% endif %} {% if invoice.total_tax3 != 0 %} {% endif %} {% if invoice.payments != empty %} {% for payment in invoice.payments %} {% endfor %} {% endif %} {% if invoice.retainer_credit? %} {% elsif invoice.credit? %} {% elsif invoice.payments != empty %} {% else %} {% endif %}
Description Qty Unit Price Total Price
{{ item.title | raw | auto_link }}
{{ item.title | safe_textilize | auto_link }} {{ item.quantity | numeric: 4 }} {{ item.price | currency: invoice.currency_code }} {% if item.discount_amount > 0 %}
( {%- if item.percent_discount? -%} {{ item.discount }}% discount {%- else -%} {{ item.discount_amount | currency: invoice.currency_code }} discount {%- endif -%} )
{% endif %}
{% if item.taxable? %} + tax {% endif %} {% if item.discount_amount > 0 %} {{ item.gross_amount | currency: invoice.currency_code }}
{% endif %} {{ item.cost | currency: invoice.currency_code }}

There are no invoice items.

Invoice Subtotal {{ invoice.total_gross | currency: invoice.currency_code }}
Invoice Discounts ({{ invoice.total_discount | currency: invoice.currency_code }})
Late Fees {{ invoice.subtotal_late_fees | currency: invoice.currency_code }}
{{ invoice.tax_label }} ({{ invoice.tax | tax_percentage }} of taxable items) {{ invoice.total_tax | currency: invoice.currency_code }}
{{ invoice.tax2_label }} ({{ invoice.tax2 | tax_percentage }} of taxable items) {{ invoice.total_tax2 | currency: invoice.currency_code }}
{{ invoice.tax3_label }} ({{ invoice.tax3 | tax_percentage }} of taxable items) {{ invoice.total_tax3 | currency: invoice.currency_code }}
Invoice Total {{ invoice.total_cost | currency: invoice.currency_code }}
{% if payment.retainer_draw %}Retainer Applied{% else %}Invoice Payment{% endif %} - {{ payment.date | date: "%B %e, %Y" }} {% if payment.transaction_fee_amount > 0 %} ({{ payment.transaction_fee_amount | currency: invoice.currency_code }} fee) {% endif %} ({{ payment.amount | currency: invoice.currency_code }})
{{ settings.retainer_credit_title }} Amount ({{ invoice.currency_code }} {{ invoice.pure_balance | times:-1 | currency: invoice.currency_code }})
{{ settings.credit_title }} Amount ({{ invoice.currency_code }} {{ invoice.pure_balance | times:-1 | currency: invoice.currency_code }})
{% if invoice.cancelled? %} Waived Balance {% else %} Remaining Balance {% endif %} {{ invoice.currency_code }} {{ invoice.balance | currency: invoice.currency_code }}
Total Due {{ invoice.currency_code }} {{ invoice.balance | currency: invoice.currency_code }}
{% if invoice.note != blank%}

Terms and Notes

{{ invoice.note | safe_textilize | auto_link }}
{% endif %}