{% extends "base.html" %} {% block title %}{{ t('Chart of Accounts') }}{% endblock %} {% block content %}

{{ t('Chart of Accounts') }} ({{ rows|length }})

{% if grouped %}
{% endif %} {% if editable %} + {{ t('New group') }} + {{ t('New account') }} {% endif %}
{% if ungrouped and editable and is_admin %}
{{ ungrouped }} {{ t('accounts are not in any group.') }} {{ t('Place them in the standard groups (Assets › Current Assets › Cash and Bank…) by their type. You can move any account afterwards; past entries are not changed.') }}
{% endif %}
{% if editable %}{% endif %} {% for a, depth in rows %} {% set v = total.get(a.id, 0) %} {% if editable %}{% endif %} {% else %} {% endfor %}
{{ t('Account') }}{{ t('Type') }}{{ t('Balance') }}{% if currency %} ({{ currency }}){% endif %}
{% if a.id in kids %}{% else %}{% endif %} {{ a.code }} {{ nm(a) }} {% if a.intercompany %}{{ t('Inter-branch') }}{% endif %} {% if not a.active %}{{ t('Inactive') }}{% endif %} {{ t('Group') if a.is_group else kinds.get(a.kind, a.kind) }} {% if v %}{% if not a.is_group %}{% endif %}{{ (v if v > 0 else -v)|money(currency) }} {{ t('Dr') if v > 0 else t('Cr') }}{% if not a.is_group %}{% endif %}{% endif %}{% if a.is_group %}+{% endif %}
{{ t('Nothing yet.') }}
{{ t('Group balances are the total of every account under them, as of today, for the branches in view. Dr = debit balance, Cr = credit balance.') }}
{% endblock %}