{% load django_ledger %} {% load i18n %}
{% if by_unit %}{% endif %} {% if by_unit %}{% endif %} {% for acc in tx_digest.group_account.GROUP_INCOME %} {% if by_unit %} {% endif %} {% endfor %} {% if by_unit %}{% endif %} {% if by_unit %}{% endif %} {% for acc in tx_digest.group_account.GROUP_EXPENSES %} {% if by_unit %} {% endif %} {% endfor %} {% if by_unit %}{% endif %} {% if by_unit %}{% endif %}
Account Number DescriptionUnitBalance Type Balance

{% trans 'Income' %}

{{ acc.code }} {{ acc.name }} {% if acc.unit_name %}{{ acc.unit_name }}{% endif %} {% 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 }}
Total Income {% currency_symbol %}{{ tx_digest.group_balance.GROUP_INCOME | currency_format }}

{% trans 'Expenses' %}

{{ acc.code }} {{ acc.name }} {% if acc.unit_name %}{{ acc.unit_name }}{% endif %} {% 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 | reverse_sing | currency_format }}
Total Expenses {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EXPENSES | reverse_sing | currency_format }}
Total Income (Loss) {% currency_symbol %}{{ tx_digest.group_balance.GROUP_EARNINGS | currency_format }}