{% load i18n %} {{ invoice.get_invoice_type_display }} {{ invoice.invoice_number }} - XRechnung

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

{% translate "Invoice date" %}: {{ invoice.invoice_date }} {% if invoice.due_date %} | {% translate "Due date" %}: {{ invoice.due_date }} {% endif %}
{% if invoice.preceding_invoice_id %}

{% 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 %} {% endif %} {% if invoice.status != 'finalized' %} {% if blocking_issues %}

{% translate "Still needed before this invoice can be issued" %}

{% translate "The official rules are checked against the finished document when you finalize." %}

{% else %}

{% translate "Ready to finalize" %}

{% translate "Every detail this app requires is present. Finalizing validates the invoice against the official rules and locks it." %}

{% endif %} {% endif %}

{% translate "Delivery or service date" %}: {{ invoice.service_date }}

{% translate "Buyer reference" %}: {{ invoice.buyer_reference }}

{% translate "Supplier" %}

{% 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 "Buyer" %}

{% 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 %}
{% if line_items %}

{% translate "Invoice lines" %}

{% for item in line_items %} {% endfor %}
{% 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 }}
{% endif %}

{% translate "Totals" %}

{% 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 }}

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

{% translate "Finalizing validates the invoice and locks it against further edits." %}

{% csrf_token %}
{% else %}

{% translate "This invoice is a draft. An authorized user must finalize it before download." %}

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

{% translate "XML preview" %}

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

{% translate "Truncated. Download the XML for the complete document." %}

{% endif %}
{% endif %}