{% extends "base.html" %} {% from "_macros.html" import state_badge, pay_badge, attachments_card with context %} {% set list_title = {'out_invoice': 'Customer Invoices', 'out_refund': 'Credit Notes', 'in_invoice': 'Vendor Bills', 'in_refund': 'Vendor Refunds'}[kind] %} {% block title %}{{ inv.number or t('Draft') }}{% endblock %} {% block content %} {% set cur = inv.currency or branch.currency %}
| {{ t('Description') }} | {{ t('Account') }} | {{ t('Qty') }} | {{ t('Unit Price') }} | {{ t('Tax') }} | {{ t('Subtotal') }} |
|---|---|---|---|---|---|
| {% if l.product_id %}{{ l.pcode or '' }} {{ nm({'name_en': l.prname_en, 'name_ar': l.prname_ar}) }} {% endif %}{{ l.description or '' }} | {{ l.code }} {{ nm({'name_en': l.aname_en, 'name_ar': l.aname_ar}) }}{% if l.cc_code %} {{ l.cc_code }}{% endif %} | {{ '%g' % l.quantity }} | {{ l.price_unit|money(cur) }} | {{ nm({'name_en': l.tname_en, 'name_ar': l.tname_ar}) if l.tname_en else '' }} | {{ l.subtotal|money(cur) }} |
| {{ t('Untaxed Amount') }} | {{ inv.amount_untaxed|money(cur) }} |
| {{ t('VAT') }} | {{ inv.amount_tax|money(cur) }} |
| {{ t('Total') }} ({{ cur }}) | {{ inv.amount_total|money(cur) }} |
| {{ t('Paid on') }} {{ p.date }} | − {{ p.amount|money(cur) }} |
| {{ t('Amount Due') }} | {{ residual|money(cur) }} |
| {{ t('Booked in') }} {{ branch.currency }} | {{ (inv.amount_total_base or (inv.amount_total * inv.rate)|round|int)|money(branch.currency) }} |
{{ t('Deducting an advance reverses its VAT on this invoice: Dr Advances from Customers, the customer pays the balance.') }}
{% for dd in deductions %}{% endfor %} {% if advances %}{% endif %}