{% load django_ledger %} {% load i18n %}
{# ASSETS #} {% for acc in tx_digest.group_account.GROUP_ASSETS %} {% endfor %} {# LIABILITIES #} {% for acc in tx_digest.group_account.GROUP_LIABILITIES %} {% endfor %} {# CAPITAL #} {% for acc in tx_digest.group_account.GROUP_CAPITAL %} {% endfor %}
{% trans 'Account Number' %} {% trans 'Description' %} {% trans 'Balance Type' %} {% trans 'Balance' %}

{% trans 'Assets' %}

{{ acc.code }} {{ acc.name }} {% if acc.balance_type == 'debit' %} {% icon 'bi:arrow-bar-down' 24 %} {% elif acc.balance_type == 'credit' %} {% icon 'bi:arrow-bar-up' 24 %} {% endif %} {% currency_symbol %}{{ acc.balance | currency_format }}
{% trans 'Total Assets' %} {% currency_symbol %}{{ tx_digest.group_balance.GROUP_ASSETS | currency_format }}

{% trans 'Liabilities' %}

{{ acc.code }} {{ acc.name }} {% if acc.balance_type == 'debit' %} {% icon 'bi:arrow-bar-down' 24 %} {% elif acc.balance_type == 'credit' %} {% icon 'bi:arrow-bar-up' 24 %} {% endif %} {% currency_symbol %}{{ acc.balance | currency_format }}
{% trans 'Total Liabilities' %} {% currency_symbol %}{{ tx_digest.group_balance.GROUP_LIABILITIES | currency_format }}

{% trans 'Equity' %}

{{ acc.code }} {{ acc.name }} {% if acc.balance_type == 'debit' %} {% icon 'bi:arrow-bar-down' 24 %} {% elif acc.balance_type == 'credit' %} {% icon 'bi:arrow-bar-up' 24 %} {% endif %} {% currency_symbol %}{{ acc.balance | currency_format }}
{% trans 'Total Capital' %} {% currency_symbol %}{{ tx_digest.group_balance.GROUP_CAPITAL | 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 }}