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

{{ t('Bank Reconciliation') }}

{{ t('Reconciliation Report') }} {% if can_write %}+ {{ t('New Statement') }}{% endif %}
{% for b in journals %}
{{ b.j.bcode }} {{ b.j.code }} — {{ nm(b.j) }}
{{ b.book|money(b.j.currency) }}
{{ t('Balance in books') }} · {{ b.j.currency }}
{% if b.last %}{{ t('Last statement') }} {{ b.last.date }}: {{ b.last.balance_end|money(b.j.currency) }}{% else %}{{ t('No statement yet') }}{% endif %}
{{ b.unreconciled }} {{ t('unreconciled items') }}
{% if can_write %}
+ {{ t('Statement') }}
{% endif %}
{% endfor %}
{% for s in statements %}{% set cur = branches[s.branch_id].currency if s.branch_id in branches else none %} {% else %}{% endfor %}
{{ t('Statement') }}{{ t('Date') }}{{ t('Branch') }}{{ t('Journal') }}{{ t('Description') }} {{ t('Starting balance') }}{{ t('Ending balance') }}{{ t('Lines') }}{{ t('Status') }}
{{ s.number }}{{ s.date }}{{ branch_tag(branches, s.branch_id) }} {{ s.jcode }}{{ s.name or '' }}{{ s.balance_start|money(cur) }}{{ s.balance_end|money(cur) }} {{ s.n - s.open }} / {{ s.n }} {% if s.state == 'reconciled' %}{{ t('Reconciled') }}{% else %}{{ t('Open') }}{% endif %}
{{ t('Nothing yet.') }}
{% endblock %}