{% extends "base.html" %} {% block title %}{{ vi.invoice_no }}{% endblock %} {% block content %}
{{ t('AP Inbox') }}

{{ nm(vi) }} โ€” {{ vi.invoice_no }}

{{ t('Received') }} {{ vi.received_at[:16].replace('T', ' ') }} ยท {{ t('Supplier portal') }}
{{ icon('file') }}{{ t('Open invoice') }} {% if vi.invoice_id %}{{ t('Open bill') }}{% endif %}
{% if vi.state == 'rejected' %}
{{ icon('alert') }}{{ t('Returned') }}: {{ vi.reject_reason }}
{% endif %}
{{ t('Invoice no.') }}
{{ vi.invoice_no }}
{{ t('Invoice date') }}
{{ vi.invoice_date }}
{{ t('Purchase Order') }}
{% if vi.order_id %}{{ vi.po }}{% else %}โ€”{% endif %}
{{ t('Amount excl. VAT') }}
{{ vi.amount_untaxed|money }}
{{ t('VAT') }}
{{ vi.amount_tax|money }}
{{ t('Total') }}
{{ vi.amount_total|money }} {{ vi.currency or '' }}
{% if vi.order_id %}
{{ t('PO total') }}
{{ vi.po_total|money }}{% if vi.po_total != vi.amount_total %} {{ t('differs') }}{% endif %}
{% endif %} {% if vi.notes %}
{{ t('Notes') }}
{{ vi.notes }}
{% endif %}
{% if can_write and vi.state == 'received' %}

{{ t('Create bill') }}

{{ t('From the purchase order lines not yet billed; the three-way match checks it against what was received when you post it.') if vi.order_id else t('A draft bill with one line for the amount; choose the expense accounts before posting.') }}

{% if not vi.order_id %}
{% endif %}

{{ t('Return to the vendor') }}

{% endif %}
{% endblock %}