{% extends "base.html" %} {% from "_macros.html" import state_badge, pay_badge, list_filters, branch_tag, icon with context %} {% set title = {'out_invoice': 'Customer Invoices', 'out_refund': 'Credit Notes', 'in_invoice': 'Vendor Bills', 'in_refund': 'Vendor Refunds'}[kind] %} {% block title %}{{ t(title) }}{% endblock %} {% block content %}
| {{ t('Number') }} | {{ t('Partner') }} | {{ t('Branch') }} | {{ t('Date') }} | {{ t('Due Date') }} | {{ t('Total') }} | {{ t('Amount Due') }} | {{ t('Status') }} | {{ t('Payment') }} |
|---|---|---|---|---|---|---|---|---|
| {{ i.number or t('Draft') }}{% if kind == 'out_invoice' and i.invoice_type not in ('standard', none) %} {{ t(types[i.invoice_type][0]) }}{% endif %}{% if i.files %}{{ icon('clip', 'ic clip') }}{% endif %}{% if i.ref %} {{ i.ref }}{% endif %} |
{{ nm({'name_en': i.pname_en, 'name_ar': i.pname_ar}) }} | {{ branch_tag(branches, i.branch_id) }} | {{ i.date }} | {{ i.due_date or '' }} {% if i.overdue %}{{ t('Overdue') }}{% endif %} | {{ i.amount_total|money(cur) }} {{ cur }} | {{ i.residual|money(cur, true) if i.state == 'posted' else '' }} | {{ state_badge(i.state) }} | {{ pay_badge(i.pay_state) }} |
| {{ t('Nothing yet.') }} | ||||||||