{% load i18n %} {% load humanize %} Invoice {% if deployment_logo %} {% endif %}

{% trans "Invoice No." %} {{ invoice.number|upper }}


{% trans "Invoice date" %}: {% if invoice.invoice_date %} {{ invoice.invoice_date|date:"Y-m-d" }} {% else %} {% trans "Pending" %} {% endif %}
{% if invoice.due_date %}{% trans "Due date" %}: {{ invoice.due_date|date:"Y-m-d" }}
{% endif %} {% trans "Invoice period" %}: {{ invoice.year }}-{{ invoice.month }}

From

{{ issuer_details.company }}
{{ issuer_details.address }}
{{ issuer_details.country }}, {{ issuer_details.postal }}
P: ({{ issuer_details.phone.country_code }}) {{ issuer_details.phone.national_number }}
{{ issuer_details.bank }}, {{ issuer_details.account }}
{% trans "VAT" %}:{{ issuer_details.vat_code }}
{{ issuer_details.email }}

To

{{ invoice.customer.name }}
{% if invoice.customer.address %}
{{ invoice.customer.address }}
{% endif %} {% if invoice.customer.country and invoice.customer.postal %}
{{ invoice.customer.country }}, {{ invoice.customer.postal }}
{% endif %} {% if invoice.customer.phone_number %}
P: {{ invoice.customer.phone_number }}
{% endif %} {% if invoice.customer.bank_name and invoice.customer.bank_account %}
{{ invoice.customer.bank_name }}, {{ invoice.customer.bank_account }}
{% endif %} {% if customer.vat_code %}
{% trans "VAT" %}: {{ customer.vat_code }}
{% endif %}
{{ invoice.customer.email }}
{% regroup items|dictsort:"project_name" by project_name as project_list %} {% for project in project_list %} {% for item in project.list %} {% endfor %} {% endfor %}
Item Quantity Unit price Total price

{{ project.grouper }}

{{ item.name }}
{% trans "Start time" %}: {{ item.start | date:"Y-m-d H:i" }}. {% trans "End time" %}: {{ item.end | date:"Y-m-d H:i" }}.
{{ item.get_factor }} {{ currency }} {{ item.unit_price | floatformat:2 | intcomma }} {{ currency }} {{ item.total | floatformat:2 | intcomma }}
{% if invoice.tax %} {% endif %}
{% trans "Subtotal" %} {{ currency }} {{ invoice.price | floatformat:2 | intcomma}}
{% trans "VAT" %} {{ currency }} {{ invoice.tax | floatformat:2 | intcomma}}
{% trans "TOTAL" %} {{ currency }} {{ invoice.total | floatformat:2 | intcomma}}