{% extends "base.html" %} {% from "_macros.html" import doc_export, state_badge, attachments_card with context %} {% block title %}{{ m.name or t('Draft') }}{% endblock %} {% block content %} {% set cur = branch.currency if branch else none %}
| {{ t('Account') }} | {{ t('Partner') }} | {{ t('Label') }} | {{ t('Debit') }} | {{ t('Credit') }} |
|---|---|---|---|---|
| {{ l.code }} {{ nm(l) }}{% if l.cc_code %} {{ l.cc_code }}{% endif %} | {{ nm({'name_en': l.pname_en, 'name_ar': l.pname_ar}) if l.pname_en else '' }} | {{ l.label or '' }}{% if l.currency %} ยท {{ l.currency }} {{ (l.amount_currency|abs)|money(l.currency) }}{% endif %} | {{ l.debit|money(cur, true) }} | {{ l.credit|money(cur, true) }} |
| {{ t('Total') }} | {{ lines|sum(attribute='debit')|money(cur) }} | {{ lines|sum(attribute='credit')|money(cur) }} | ||