{% extends "faktura/base.html" %} {% block navigation %} {% if not generating_pdf %}

{{ object.get_type_display }} {{ object.number }}

{{ _('All') }} {% for year in invoice_years %} {{ year }} {% endfor %}
{% endif %} {% endblock %} {% block content %}
{{ object.get_type_display }} {% if not generating_pdf %} ({{ _('created by') }}: {{ object.author }}) {% endif %} Status: {{ object.get_status_display }}
{{ object.get_type_display }}
{{ object.get_type_display }} {{ _('number') }}: {{ object.number }}
{% if not generating_pdf and object.invoice %} {{ _('Related invoice number') }}: {{ object.invoice.number }}
{% endif %} {{ _('Issue date') }}: {{ object.date_of_issue }}
{{ _('Due date') }}: {{ object.due_date }} {% if not object.includes_vat %}
{{ _('We are not VAT payers.') }} {% endif %}
{{ _('From') }}: {{ object.seller }}
{{ object.seller_details|linebreaksbr }}
{{ _('To') }}: {{ object.buyer }}
{{ object.buyer_details|linebreaksbr }}
{% for item in object.items.all %} {% endfor %}
{{ _('Item') }} {{ _('Quantity') }} {{ _('Unit price') }} {{ _('Total') }}
{{ item.title|linebreaksbr }} {{ item.quantity }} {{ item.price|floatformat:2 }} {{ item.total_amount|floatformat:2 }} {{ object.currency }}
{% if object.includes_vat %} {% endif %} {% if object.discount %} {% endif %} {% if invoice_for_proforma %} {% endif %}
{{ _('VAT') }} ({{ object.vat }}%) {{ object.items_vat|floatformat:2 }} {{ object.currency }}
{{ _('Subtotal') }} {{ object.items_total_with_vat|floatformat:2 }} {{ object.currency }}
{{ _('Discount') }} ({{ object.discount }}%) {{ object.items_discount|floatformat:2 }} {{ object.currency }}
{% if invoice_for_proforma %} {{ _('Total paid') }} {% else %} {{ _('Total') }} {% endif %} {{ object.total_amount|floatformat:2 }} {{ object.currency }}
{{ _('To be paid') }} 0 {{ object.currency }}
{% if invoice_for_proforma or object.note %}
{% endif %} {% if invoice_for_proforma %}
{{ _('Invoice is a billing of the pro forma invoice:') }} {% for i in object.proforma.all %} {% if generating_pdf %} {{ i.number }} {% else %} {{ i.number }} {% endif %} {% endfor %} {{ _('Do not pay this tax document.') }}
{% endif %} {% if object.note %}
{{ object.note|linebreaksbr }}
{% endif %} {% if not generating_pdf %}
{% endif %}
{% endblock %}