{% extends "portal/_layout.html" %} {% block title %}{{ t('Invoices') }}{% endblock %} {% block content %}

{{ t('Invoices') }}

{{ t('Send an invoice') }}

{% for r in rows %}{% set st = {'received': ('warn', 'Received'), 'in_process': ('warn', 'Being processed'), 'approved': ('posted', 'Approved for payment'), 'partly_paid': ('posted', 'Partly paid'), 'paid': ('posted', 'Paid'), 'returned': ('cancelled', 'Returned')}[r.status] %} {% else %}{% endfor %}
{{ t('Invoice no.') }}{{ t('Date') }}{{ t('Purchase Order') }}{{ t('Total') }}{{ t('Status') }}
{{ r.invoice_no }}{{ r.invoice_date }}{{ r.po or '—' }}{{ r.amount_total|money }} {{ t(st[1]) }}{% if r.status == 'returned' and r.reject_reason %}
{{ r.reject_reason }}{% endif %}
{{ t('Nothing yet.') }}
{% endblock %}