{% extends "base.html" %} {% from "_macros.html" import report_filters, cost_centre_select, indent, level_select with context %} {% block title %}{{ t(title) }}{% endblock %} {% block content %} {% set cur = st.currency %}

{{ t(title) }}{% if st.multi %} โ€” {{ t('Consolidated') }}{% endif %}

{{ company.name_en }}{% if company.name_ar %} ยท {{ company.name_ar }}{% endif %}
{% set extra %}{% if cost_centres is defined %}{{ cost_centre_select(cost_centres, cc) }}{% endif %}{{ level_select(f.level, f.levels) }}{% endset %} {{ report_filters(f, True, extra) }}
{% if f.need_from %}{{ f.date_from }} โ†’ {{ f.date_to }}{% else %}{{ t('As of') }} {{ f.date_to }}{% endif %} {{ t('Amounts in') }} {{ cur }} {% if cc is defined and cc is not none %}{{ t('Cost Centre') }}: {{ t('No cost centre') if cc == 0 else (cc_label or cc) }}{% endif %}
{% if st.multi %} {% for b in st.branches %}{% endfor %} {% else %} {% endif %} {% for r in st.rows %} {% if r.kind == 'section' %} {% else %} {% if st.multi %} {% for v in r.vals %}{% endfor %} {% else %} {% endif %} {% endif %} {% endfor %}
{{ t('Account') }}{{ b.code }}
{{ nm(b) }}
{{ t('Eliminations') }}{{ t('Consolidated') }}{{ st.branches[0].code }} โ€” {{ nm(st.branches[0]) }}
{{ r.label }}
{% if r.account %} {{ r.account.code }} {{ nm(r.account) }} {% if r.account.intercompany %}{{ t('Inter-branch') }}{% endif %} {% else %}{{ r.label }}{% endif %} {{ v|money(cur) }}{{ r.elim|money(cur, true) }} {{ r.total|money(cur) }}{{ r.total|money(cur) }}
{% if st.notes or st.multi %}
{% if st.multi %}

{{ t('Eliminations remove balances on inter-branch accounts so only transactions with outside parties remain.') }}

{% endif %} {% if st.translated %}

{{ t('Translation: balance sheet at the closing rate, profit & loss at the average rate; the difference goes to the currency translation reserve.') }}

{% endif %} {% for n in st.notes %}
{{ n }}
{% endfor %}
{% endif %}
{% endblock %}