{{ org.company_name|default:org.name }}

{% if org.company_name and org.name and org.company_name != org.name %}

{{ org.name }}

{% endif %} {% if org.address_line %}

{{ org.address_line }}

{% endif %} {% if org.city or org.state or org.postcode %}

{% if org.city %}{{ org.city }}{% endif %}{% if org.city and org.state %}, {% endif %}{% if org.state %}{{ org.state }}{% endif %} {% if org.postcode %} {{ org.postcode }}{% endif %}

{% endif %} {% if org.phone %}

Tel: {{ org.phone }}

{% endif %} {% if org.email %}

Email: {{ org.email }}

{% endif %} {% if org.website %}

Web: {{ org.website }}

{% endif %}
Invoice
{% if org.logo %}
{% else %}
{{ org.company_name|default:org.name|slice:":4"|upper }}
{% endif %}

{{ invoice.client_name }}

{% if invoice.client_address_line %}

{{ invoice.client_address_line }}

{% endif %} {% if invoice.client_city or invoice.client_state or invoice.client_postcode %}

{% if invoice.client_city %}{{ invoice.client_city }}{% endif %}{% if invoice.client_city and invoice.client_state %}, {% endif %}{% if invoice.client_state %}{{ invoice.client_state }}{% endif %} {% if invoice.client_postcode %} {{ invoice.client_postcode }}{% endif %}

{% endif %} {% if invoice.client_country %}

{{ invoice.client_country }}

{% endif %}
{% if invoice.invoice_title %}
Reference: {{ invoice.invoice_title }}
{% endif %}
Invoice #: {{ invoice.invoice_number }}
{% if invoice.po_number %}
PO Number: {{ invoice.po_number }}
{% endif %} {% if invoice.billing_period %}
Billing Period: {{ invoice.billing_period }}
{% endif %} {% if invoice.payment_terms %}
Terms: {{ invoice.get_payment_terms_display }}
{% endif %} {% if invoice.issue_date %}
Invoice Date: {{ invoice.issue_date|date:"F d, Y" }}
{% endif %} {% if invoice.due_date %}
Due Date: {{ invoice.due_date|date:"F d, Y" }}
{% endif %}
{% for item in line_items %} {% empty %} {% endfor %}
Description Quantity Price Total
{% if item.name %} {{ item.name }} {% if item.description %} {{ item.description }} {% endif %} {% else %} {{ item.description }} {% endif %} {{ item.quantity }} {{ item.unit_price }} {{ item.total }}
No line items
{% if invoice.discount_amount and invoice.discount_amount > 0 %} {% endif %} {% if invoice.amount_paid and invoice.amount_paid > 0 %} {% endif %}
Subtotal {{ subtotal }}
Shipping {{ shipping_amount }}
Discount -{{ discount_amount }}
Tax {{ tax_amount }}
Total {{ total_amount }}
Amount Paid
Amount Due {{ amount_due }}
{% if invoice.notes %} {% endif %}

Yours Sincerely,


{{ org.company_name|default:org.name }}

{% if invoice.client_name %}

{{ invoice.client_name }}

{% endif %}