{{ invoice.get_invoice_type_display }} {{ invoice.invoice_number }}

Invoice Date: {{ invoice.invoice_date }} {% if invoice.due_date %} | Due Date: {{ invoice.due_date }} {% endif %}
{% if invoice.preceding_invoice_id %}

Preceding invoice: {{ invoice.preceding_invoice.invoice_number }} ({{ invoice.preceding_invoice.invoice_date }})

Reason: {{ invoice.adjustment_reason }}

{% endif %} {% if invoice.is_credit_note %}

This document credits the buyer. Amounts are positive credit amounts.

{% endif %}

Status: {{ invoice.get_status_display }}

{% if errors %} {% endif %}

Delivery/service date: {{ invoice.service_date }}

Buyer reference: {{ invoice.buyer_reference }}

Supplier Information

Name: {{ invoice.supplier_name }}

{{ invoice.supplier_street }}
{{ invoice.supplier_postcode }} {{ invoice.supplier_city }}
{{ invoice.supplier_country }}

VAT ID: {{ invoice.supplier_vat_id }}

{{ invoice.supplier_contact_name }} · {{ invoice.supplier_contact_phone }} · {{ invoice.supplier_contact_email }}

{% if invoice.supplier_tax_id %}

Tax ID: {{ invoice.supplier_tax_id }}

{% endif %}

Buyer Information

Name: {{ invoice.buyer_name }}

{{ invoice.buyer_street }}
{{ invoice.buyer_postcode }} {{ invoice.buyer_city }}
{{ invoice.buyer_country }}

VAT ID: {{ invoice.buyer_vat_id }}

{% if invoice.buyer_tax_id %}

Tax ID: {{ invoice.buyer_tax_id }}

{% endif %}
{% if line_items %}

Line Items

{% for item in line_items %} {% endfor %}
Pos. Description Quantity Unit Price Tax Rate 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 }}
{% endif %}

Financial Summary

Net Amount: {{ invoice.net_amount }} {{ invoice.currency }}

{% for category, rate, taxable, tax in vat_breakdown %}

{% if category == "E" %}Exempt from VAT{% elif category == "AE" %}Reverse charge{% else %}VAT{% endif %} {{ rate }}% on {{ taxable }} {{ invoice.currency }}: {{ tax }} {{ invoice.currency }}

{% endfor %} {% for note in tax_notes %}

{{ note.exemption_reason }}

{% endfor %}

Tax Amount: {{ invoice.tax_amount }} {{ invoice.currency }}


Total Amount: {{ invoice.total_amount }} {{ invoice.currency }}

{% if invoice.status == 'finalized' %} Download XML Download PDF {% elif can_finalize %}

Finalizing validates the invoice and locks it against further edits.

{% csrf_token %}
{% else %}

This invoice is a draft. An authorized user must finalize it before download.

{% endif %} View JSON
{% if invoice.status == 'finalized' %}

XML Content Preview

{{ invoice.xml_content|truncatechars:1000 }}
{% if invoice.xml_content|length > 1000 %}

Content truncated. Download full XML for complete content.

{% endif %}
{% endif %}