{% extends "admin/base_site.html" %} {% load i18n %} {% block content %}

{{ document }} · {{ document.sha256 }} · {{ document.size }} {% translate "bytes" %}

{% translate "Download original" %}

{% if can_retry %}
{% csrf_token %}
{% endif %} {% for row in rows %}

{% translate "Attempt" %} {{ row.attempt.pk }} · {{ row.attempt.created_at }}

{% translate "Validation" %}: {{ row.attempt.validation_state }} · {% translate "Parsing" %}: {{ row.attempt.parsing_state }} · {% translate "Reconciliation" %}: {{ row.attempt.reconciliation_state }}

{% if row.attempt.report %}{% translate "Validation report" %}{% endif %} {% if row.attempt.extracted_xml %}{% translate "Extracted XML" %}{% endif %} {% with invoice=row.attempt.parsed %}

{% translate "Asserted invoice values" %}

{% translate "Invoice" %} {{ invoice.number|default_if_none:"—" }} · {{ invoice.issue_date|default_if_none:"—" }} · {{ invoice.currency|default_if_none:"—" }}

{% translate "Parties" %}
{% translate "Role" %}{% translate "Name" %}{% translate "Address" %}
{% translate "Supplier" %}{{ invoice.supplier.name }}{{ invoice.supplier.street }} · {{ invoice.supplier.postcode }} {{ invoice.supplier.city }} · {{ invoice.supplier.country }}
{% translate "Buyer" %}{{ invoice.buyer.name }}{{ invoice.buyer.street }} · {{ invoice.buyer.postcode }} {{ invoice.buyer.city }} · {{ invoice.buyer.country }}
{% for line in invoice.lines %}{% empty %}{% endfor %}
{% translate "Invoice lines" %}
{% translate "ID" %}{% translate "Description" %}{% translate "Quantity" %}{% translate "Unit price" %}{% translate "Net" %}{% translate "VAT" %}
{{ line.id }}{{ line.name }}{{ line.quantity }} {{ line.unit }}{{ line.price }}{{ line.net }}{{ line.category }} {{ line.rate }}%
{% translate "No line details provided." %}

{% translate "Net" %}: {{ invoice.amounts.net }} · {% translate "VAT" %}: {{ invoice.amounts.tax }} · {% translate "Gross" %}: {{ invoice.amounts.gross }} · {% translate "Due" %}: {{ invoice.amounts.due }}

{% translate "All asserted fields and unmodeled XML paths" %}
{{ row.parsed }}
{% endwith %}

{% translate "Reconciliation checks" %}

{% if row.attempt.reconciliation.reason %}

{{ row.attempt.reconciliation.reason }}

{% endif %} {% for check in row.attempt.reconciliation.checks %}{% empty %}{% endfor %}
{% translate "Field" %}{% translate "Asserted" %}{% translate "Expected" %}{% translate "Result" %}
{{ check.field }}{{ check.asserted }}{{ check.expected }}{% if check.matches %}{% translate "Matches" %}{% else %}{% translate "Mismatch" %}{% endif %}
{% translate "No calculations evaluated." %}
{% empty %}

{% translate "No processing attempts are available to review." %}

{% endfor %} {% endblock %}