{% extends "base.html" %} {% from "_macros.html" import export_links with context %} {% block title %}{{ t('Customer Advances') }}{% endblock %} {% block content %}

{{ t('Customer Advances') }}

{{ t('Down payments invoiced to customers (Advances from Customers) and how much has been deducted on final invoices. Amounts before VAT.') }}
{{ export_links() }}
{{ t('All') }}{{ t('Left to deduct') }}
{% for r in rows %} {% else %}{% endfor %}
{{ t('Number') }}{{ t('Date') }}{{ t('Customer') }}{{ t('Advance') }}{{ t('Deducted') }}{{ t('Left to deduct') }}{{ t('Not yet paid') }}
{{ r.number }}{{ r.date }}{{ nm({'name_en': r.pname_en, 'name_ar': r.pname_ar}) }} {{ r.amount_untaxed|money(r.currency or r.bcur) }}{{ r.used|money(r.currency or r.bcur, True) }}{{ r.left|money(r.currency or r.bcur, True) }}{{ r.residual|money(r.currency or r.bcur, True) }}
{{ t('Nothing yet.') }}
{% endblock %}