{% extends "base.html" %} {% from "_macros.html" import branch_tag with context %} {% block title %}{{ t(info.label) }}{% endblock %} {% block content %}

{{ t(info.label) }}

{% if direction == 'received' %}{{ t('Cheques from customers: booked to Cheques Under Collection when received, to the bank when they clear.') }}{% else %}{{ t('Cheques given to vendors: booked to Post-dated Cheques Issued, to the bank when the bank pays them.') }}{% endif %}
{% if can_write %}
+ {{ t('Register cheque') }}
{% endif %}
{{ t('Not yet cleared') }}
{{ totals.hand|money(cur) }}
{{ cur or '' }}
{{ t('Due today or earlier') }}
{{ totals.due|money(cur) }}
{{ t('ready for the bank') if direction == 'received' else t('the bank will pay these') }}
{{ t('Post-dated (future)') }}
{{ totals.future|money(cur) }}
{{ cur or '' }}
{% for k, lbl in (('open', 'Not yet cleared'), ('due', 'Due'), ('cleared', 'Cleared'), ('bounced', 'Bounced'), ('cancelled', 'Cancelled'), ('all', 'All')) %} {% if not (direction == 'issued' and k == 'bounced') %}{{ t(lbl) }}{% endif %}{% endfor %}
{% for c in rows %}{% set bc = branches[c.branch_id].currency if c.branch_id in branches else none %} {% else %}{% endfor %}
{{ t('Number') }}{{ t('Cheque no.') }}{{ t('Customer') if direction == 'received' else t('Vendor') }}{{ t('Bank') }}{{ t('Branch') }} {{ t('Received') if direction == 'received' else t('Issued') }}{{ t('Cheque date') }}{{ t('Document') }}{{ t('Amount') }}{{ t('Status') }}
{{ c.number }}{{ c.cheque_no }}{{ nm({'name_en': c.pname_en, 'name_ar': c.pname_ar}) }} {{ c.bank_name or '' }}{{ branch_tag(branches, c.branch_id) }}{{ c.issue_date }} {{ c.cheque_date }}{% if c.cheque_date > c.issue_date %} PDC{% endif %} {{ c.inv_number or '' }}{{ c.amount|money(bc) }}{% include "cheques/_badge.html" %}
{{ t('Nothing yet.') }}
{% endblock %}