{% extends "base.html" %} {% from "_macros.html" import report_filters, indent, level_select with context %} {% block title %}{{ t('P&L by Cost Centre') }}{% endblock %} {% block content %} {% set cur = data.currency %}

{{ t('P&L by Cost Centre') }}

{{ company.name_en }}{% if company.name_ar %} · {{ company.name_ar }}{% endif %}
{% if can_write %}{{ t('Cost Centres') }}{% endif %}
{% set extra %}{{ level_select(f.level, f.levels) }}{% endset %}{{ report_filters(f, True, extra) }}
{{ f.date_from }} → {{ f.date_to }} {{ t('Amounts in') }} {{ cur }} {% for b in data.branches %}{{ b.code }}{{ ', ' if not loop.last }}{% endfor %}
{% for c in data.cols %}{% endfor %} {% for r in data.rows %} {% if r.kind == 'section' %} {% else %} {% for v in r.vals %}{% set c = data.cols[loop.index0] %} {% endfor %} {% endif %} {% endfor %}
{{ t('Account') }}{% if c.none %}{{ t('No cost centre') }}{% else %}{{ c.code }}
{{ nm(c) }}{% endif %}
{{ t('Total') }}
{{ r.label }}
{% if r.account %}{{ r.account.code }} {{ nm(r.account) }}{% else %}{{ r.label }}{% endif %}{% if r.account and v %}{{ v|money(cur) }}{% else %}{{ v|money(cur, r.account is not none) }}{% endif %}{{ r.total|money(cur) }}

{{ t('Each column shows the income and expenses booked to that cost centre. The Total column equals the Profit & Loss for the same branches and dates.') }}{% if data.branches|length > 1 %} ({{ t('before inter-branch eliminations') }}){% endif %}

{% if data.translated %}

{{ t('Translated at the average rate of the period.') }}

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