{% load i18n %} {% load trionyx %}

{% trans 'Invoice' %}

#{{invoice.reference}} {{ invoice.send_date|date:"SHORT_DATE_FORMAT" }}

{% trans 'Total' %}: {% trans 'Due date' %}:
{{ invoice.grand_total|price }} {{ invoice.due_date|date:"SHORT_DATE_FORMAT" }}

{{ company.name }}

{% for line in company.address_lines %} {{line}} {% endfor %} {% if company.telephone %} {{company.telephone}} {% endif %} {% if company.website %} {{company.website}} {% endif %} {% if company.email %} {{company.email}} {% endif %}
{{ payment_instructions|safe }} {% if invoice.comment %}
{{ invoice.comment|safe }} {% endif %}
{% trans 'Bill to' %}:
{% for line in invoice.address_lines %} {% if forloop.first %} {{line}} {% else %} {{line}} {% endif %} {% endfor %} {% if invoice.billing_email %} {{invoice.billing_email}} {% endif %}
{% if hourly_items %} {% for item in hourly_items %} {% endfor %}
{% trans 'Description' %} {% trans 'Hourly rate' %} {% trans 'Hours' %} {% trans 'Linetotal' %}
{{ item.description }} {{ item.hourly_rate|price }} {{ item.hours }} {{ item.row_total|price }}
{% endif %} {% if price_items %} {% for item in price_items %} {% endfor %}
{% trans 'Item' %} {% trans 'Price' %} {% trans 'Quantity' %} {% trans 'Linetotal' %}
{{ item.description }} {{ item.price|price }} {{ item.qty }} {{ item.row_total|price }}
{% endif %} {% if invoice.payments_received %} {% else %} {% endif %}
{% trans 'Subtotal' %}: {{ invoice.subtotal|price }}
{% trans 'Tax' %} ({{ invoice.tax_percentage }}%): {{ invoice.tax_total|price }}
{% trans 'Total amount' %}: {{ invoice.subtotal_incl_tax|price }}
{% trans 'Discount' %}: {{ invoice.negative_discount|price }}
{% trans 'Settled with payments received' %}: {{ invoice.payments_received|price }}
{% trans 'Discount' %}: {{ invoice.negative_discount|price }}
{% trans 'Amount due' %}: {{ invoice.grand_total|price }}
{% for page in pages %}
{{ page.content|safe }}
{% endfor %}