{% load i18n %}
{% translate "Preceding invoice" %}: {{ invoice.preceding_invoice.invoice_number }} ({{ invoice.preceding_invoice.invoice_date }})
{% translate "Reason" %}: {{ invoice.adjustment_reason }}
{% endif %} {% if invoice.is_credit_note %}{% translate "This document credits the buyer. Amounts are positive credit amounts." %}
{% endif %}{% translate "Status" %}: {{ invoice.get_status_display }}
{% translate "Output" %}: {{ invoice.get_xml_syntax_display }} · {{ invoice.get_xml_profile_display }} · {{ invoice.get_pdf_mode_display }}
{% if errors %}{% translate "The official rules are checked against the finished document when you finalize." %}
{% translate "Every detail this app requires is present. Finalizing validates the invoice against the official rules and locks it." %}
{% translate "Delivery or service date" %}: {{ invoice.service_date }}
{% translate "Buyer reference" %}: {{ invoice.buyer_reference }}
{% translate "Name" %}: {{ invoice.supplier_name }}
{{ invoice.supplier_street }}
{{ invoice.supplier_postcode }} {{ invoice.supplier_city }}
{{ invoice.supplier_country }}
{% translate "VAT ID" %}: {{ invoice.supplier_vat_id }}
{{ invoice.supplier_contact_name }} · {{ invoice.supplier_contact_phone }} · {{ invoice.supplier_contact_email }}
{% if invoice.supplier_tax_id %}{% translate "Tax ID" %}: {{ invoice.supplier_tax_id }}
{% endif %}{% translate "Name" %}: {{ invoice.buyer_name }}
{{ invoice.buyer_street }}
{{ invoice.buyer_postcode }} {{ invoice.buyer_city }}
{{ invoice.buyer_country }}
{% translate "VAT ID" %}: {{ invoice.buyer_vat_id }}
{% if invoice.buyer_tax_id %}{% translate "Tax ID" %}: {{ invoice.buyer_tax_id }}
{% endif %}| {% translate "Pos." %} | {% translate "Description" %} | {% translate "Quantity" %} | {% translate "Unit price" %} | {% translate "Tax rate" %} | {% translate "Total" %} |
|---|---|---|---|---|---|
| {{ item.position }} | {{ item.description }} | {{ item.quantity }} {{ item.unit_code }} | {{ item.unit_price }} {{ invoice.currency }} | {% if item.tax_category != "S" %}{{ item.get_tax_category_display }} · {% endif %}{{ item.tax_rate }}% | {{ item.line_total }} {{ invoice.currency }} |
{% translate "Net amount" %}: {{ invoice.net_amount }} {{ invoice.currency }}
{% for category, rate, taxable, tax in vat_breakdown %}{% if category == "E" %}{% translate "Exempt from VAT" %}{% elif category == "AE" %}Reverse charge{% else %}{% translate "VAT" %}{% endif %} {{ rate }}% on {{ taxable }} {{ invoice.currency }}: {{ tax }} {{ invoice.currency }}
{% endfor %} {% for note in tax_notes %}{{ note.exemption_reason }}
{% endfor %}{% translate "Tax amount" %}: {{ invoice.tax_amount }} {{ invoice.currency }}
{% translate "Total amount" %}: {{ invoice.total_amount }} {{ invoice.currency }}
{% translate "Finalizing validates the invoice and locks it against further edits." %}
{% else %}{% translate "This invoice is a draft. An authorized user must finalize it before download." %}
{% endif %} {% translate "View JSON" %}{{ invoice.xml_content|truncatechars:1000 }}
{% if invoice.xml_content|length > 1000 %}
{% translate "Truncated. Download the XML for the complete document." %}
{% endif %}