{% extends "base.html" %} {% from "_macros.html" import branch_tag, wf_badge with context %} {% block title %}{{ t('Prepaid & Accruals') }}{% endblock %} {% block content %}

{{ t('Prepaid & Accruals') }}

{% if can_write %}
{{ t('Month-end Closing') }} {% for k, v in kinds.items() %}+ {{ t(v.label) }}{% endfor %}
{% endif %}
{{ t('All') }} {% for k, v in kinds.items() %}{{ t(v.label) }}{% endfor %}
{% for s in rows %}{% set cur = branches[s.branch_id].currency if s.branch_id in branches else none %} {% else %}{% endfor %}
{{ t('Number') }}{{ t('Type') }}{{ t('Description') }}{{ t('Partner') }}{{ t('Branch') }} {{ t('Start') }}{{ t('Months') }}{{ t('Total') }}{{ t('Recognized') }}{{ t('Remaining') }}{{ t('Status') }}
{{ s.number }}{{ t(kinds[s.kind].label) }}{{ s.name }} {{ nm({'name_en': s.pname_en, 'name_ar': s.pname_ar}) if s.pname_en else '' }}{{ branch_tag(branches, s.branch_id) }} {{ s.start_date }}{{ s.months }}{{ s.total|money(cur) }} {{ s.recognized|money(cur) }}{{ (s.total - s.recognized)|money(cur) }}{{ wf_badge(s.state) }}
{{ t('Nothing yet.') }}
{% endblock %}