{% extends "base.html" %} {% from "_macros.html" import state_badge, list_filters, branch_tag, icon with context %} {% block title %}{{ t('Journal Entries') }}{% endblock %} {% block content %}

{{ t('Journal Entries') }}

{% if can_write %}
+ {{ t('New Entry') }}
{% endif %}
{% for code, lbl in [('', 'All'), ('entry', 'Manual'), ('out_invoice', 'Customer Invoices'), ('in_invoice', 'Vendor Bills'), ('payment', 'Payments'), ('transfer', 'Transfers')] %} {{ t(lbl) }} {% endfor %}
{% set hidden %}{% if mt %}{% endif %}{% endset %} {{ list_filters(f, ['draft', 'posted', 'cancelled'], hidden) }}
{{ t('Number') }}{{ t('Date') }}{{ t('Branch') }}{{ t('Journal') }} {{ t('Partner') }}{{ t('Reference') }}{{ t('Amount') }}{{ t('Status') }} {% for m in rows %} {{ m.name or t('Draft') }}{% if files.get(m.id) %}{{ icon('clip', 'ic clip') }}{% endif %}{{ m.date }}{{ branch_tag(branches, m.branch_id) }} {{ m.jcode }}{{ nm({'name_en': m.pname_en, 'name_ar': m.pname_ar}) if m.pname_en else '' }} {{ m.ref or m.narration or '' }} {{ m.amount|money(branches[m.branch_id].currency if m.branch_id in branches else none) }} {{ state_badge(m.state) }} {% else %}{{ t('Nothing yet.') }}{% endfor %}
{% endblock %}