INVOICE

{% if invoice.po != blank %} {% endif %} {% if invoice.paid? -%} {% else -%} {% endif -%}
Invoice No. {{ invoice.number }}
PO No. {{ invoice.po }}
Invoice Date {{ invoice.date | date: "%B %e, %Y" }}
Invoice Status PAID
Payment Due {{ invoice | invoice_due }}

{{ 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 %}

Bill To:

{{ invoice.client.name }}

{{ invoice.client | two_line_address }} {% if invoice.client.number != blank %} ID: {{ invoice.client.number | 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 %} {% endfor %} {% else %} {% endif %} {% if invoice.total_tax != 0 or invoice.total_tax2 != 0 or invoice.total_discount > 0 %} {% if invoice.total_discount > 0 %} {% endif %} {% endif %} {% if invoice.total_tax != 0 %} {% endif %} {% if invoice.total_tax2 != 0 %} {% endif %} {% if invoice.payments != empty %} {% endif %} {% if invoice.payments != empty %} {% elsif invoice.pure_balance < 0 %} {% else %} {% endif %}
Invoice Items
Item Description Qty Price per unit Total Price
{{ item.title | safe_textilize | auto_link }} {{ item.quantity | numeric}} {% if item.price < 0 %} ({{ item.price | times:-1 | currency: invoice.currency_code }}) {% else %} {{ item.price | currency: invoice.currency_code }} {% endif %} {% if item.taxable %} + tax {% endif %} {% if item.cost < 0 %} ({{ item.cost | times:-1 | currency: invoice.currency_code }}) {% else %} {{ item.cost | currency: invoice.currency_code }} {% endif %}
There are no invoice items.
Invoice Totals
Invoice Subtotal {{ invoice.total_gross | currency: invoice.currency_code }}
Invoice Discounts ({{ invoice.total_discount | 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 Total {{ invoice.total_cost | currency: invoice.currency_code }}
Invoice Payments To Date ({{ invoice.total_payments | currency: invoice.currency_code }})
{% if invoice.cancelled? %} Waived Balance {% else %} Remaining Balance {% endif %} {{ invoice.currency_code }} {{ invoice.balance | currency: invoice.currency_code }}
Credit Balance ({{ invoice.currency_code }} {{ invoice.pure_balance | times:-1 | currency: invoice.currency_code }})
Total Due {{ invoice.currency_code }} {{ invoice.balance | currency: invoice.currency_code }}
{% if invoice.note != blank%}
{{ invoice.note | safe_textilize | auto_link }}
{% endif %}