{% load django_ledger %} {% load i18n %}
{% for bs_role, bs_role_data in tx_digest.balance_sheet.items %} {% if bs_role_data.is_block %} {% if tx_digest.by_unit %} {% endif %} {% if tx_digest.by_unit %} {% endif %} {% for acc_role, acc_data in bs_role_data.roles.items %} {% if tx_digest.by_unit %} {% endif %} {% for acc in acc_data.accounts %} {% if tx_digest.by_unit %} {% endif %} {% endfor %} {% if tx_digest.by_unit %} {% endif %} {% endfor %} {% if bs_role != 'equity' %} {% if tx_digest.by_unit %} {% endif %} {% endif %} {% endif %} {% endfor %} {% if tx_digest.by_unit %} {% endif %} {% if tx_digest.by_unit %} {% endif %} {% if tx_digest.by_unit %} {% endif %}

{{ bs_role | upper }}

{% trans 'Account Code' %} {% trans 'Account Name' %}{% trans 'Unit' %}{% trans 'Balance Type' %} {% trans 'Balance Through' %} {{ tx_digest.to_date | date }} {% trans 'Actions' %}
{{ acc_data.role_name | upper }}
{{ acc.code }} {{ acc.name }}{% if acc.unit_name %}{{ acc.unit_name }}{% endif %}{{ acc.balance_type.0 | upper }} {% currency_symbol %}{{ acc.balance | currency_format }}
{{ acc_data.role_name | upper }} {% trans 'Total:' %} {% currency_symbol %}{{ acc_data.total_balance | currency_format }}
{% trans 'Total' %} {{ bs_role | upper }} {% currency_symbol %}{{ bs_role_data.total_balance | currency_format }}
{% trans 'Retained Earnings' %} {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EARNINGS | currency_format }}
{% trans 'Total EQUITY' %} {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EQUITY | currency_format }}
{% trans 'Total Equity + Liabilities' %} {% currency_symbol %}{{ tx_digest.group_balance.GROUP_LIABILITIES_EQUITY | currency_format }}