{% load django_ledger %} {% load i18n %}
{% if tx_digest.by_unit %} {% endif %} {# OPERATING INCOME #} {% for acc in tx_digest.income_statement.operating.revenues %} {% if tx_digest.by_unit %} {% endif %} {% endfor %} {# COGS #} {% for acc in tx_digest.income_statement.operating.cogs %} {% if tx_digest.by_unit %} {% endif %} {% endfor %} {# GROSS PROFIT #} {# OPERATING EXPENSES #} {% for acc in tx_digest.income_statement.operating.expenses %} {% if tx_digest.by_unit %} {% endif %} {% endfor %} {# NET OPERATING INCOME #} {# OTHER REVENUES #} {% for acc in tx_digest.income_statement.other.revenues %} {% if tx_digest.by_unit %} {% endif %} {% endfor %} {# OTHER EXPENSES #} {% for acc in tx_digest.income_statement.other.expenses %} {% if tx_digest.by_unit %} {% endif %} {% endfor %} {# NET OTHER INCOME/LOSS #} {# NET INCOME #}
{% trans 'Account' %}{% trans 'Unit' %}{% trans 'Type' %} {% trans 'Balance' %} {% trans 'Actions' %}

{% trans 'OPERATING REVENUES' %}

{% icon 'bi:arrow-return-right' 16 %} {{ acc.code }} {{ acc.name }}
{% if acc.unit_name %} {{ acc.unit_name }} {% endif %} {% if acc.balance_type == 'debit' %} {% icon 'bi:arrow-bar-down' 16 %} {% trans 'debit' %} {% elif acc.balance_type == 'credit' %} {% icon 'bi:arrow-bar-up' 16 %} {% trans 'credit' %} {% else %} {{ acc.balance_type }} {% endif %} {% currency_symbol %}{{ acc.balance | currency_format }}
{% trans 'NET OPERATING REVENUES' %}: {% currency_symbol %}{{ tx_digest.income_statement.operating.net_operating_revenue | currency_format }}

{% trans 'COST OF GOODS SOLD' %}

{% icon 'bi:arrow-return-right' 16 %} {{ acc.code }} {{ acc.name }}
{% if acc.unit_name %} {{ acc.unit_name }} {% endif %} {% if acc.balance_type == 'debit' %} {% icon 'bi:arrow-bar-down' 16 %} {% trans 'debit' %} {% elif acc.balance_type == 'credit' %} {% icon 'bi:arrow-bar-up' 16 %} {% trans 'credit' %} {% else %} {{ acc.balance_type }} {% endif %} {% currency_symbol %}{{ acc.balance | reverse_sign | currency_format }}
{% trans 'NET COGS' %}: {% currency_symbol %}{{ tx_digest.income_statement.operating.net_cogs | currency_format }}
{% trans 'GROSS PROFIT' %} {% currency_symbol %}{{ tx_digest.income_statement.operating.gross_profit | currency_format }}

{% trans 'OPERATING EXPENSES' %}

{% icon 'bi:arrow-return-right' 16 %} {{ acc.code }} {{ acc.name }}
{% if acc.unit_name %} {{ acc.unit_name }} {% endif %} {% if acc.balance_type == 'debit' %} {% icon 'bi:arrow-bar-down' 16 %} {% trans 'debit' %} {% elif acc.balance_type == 'credit' %} {% icon 'bi:arrow-bar-up' 16 %} {% trans 'credit' %} {% else %} {{ acc.balance_type }} {% endif %} {% currency_symbol %}{{ acc.balance | reverse_sign | currency_format }}
{% trans 'NET OPERATING EXPENSES' %}: {% currency_symbol %}{{ tx_digest.income_statement.operating.net_operating_expenses | reverse_sign | currency_format }}
{% trans 'NET OPERATING INCOME (LOSS)' %} {% currency_symbol %}{{ tx_digest.income_statement.operating.net_operating_income| currency_format }}

{% trans 'OTHER REVENUES' %}

{% icon 'bi:arrow-return-right' 16 %} {{ acc.code }} {{ acc.name }}
{% if acc.unit_name %} {{ acc.unit_name }} {% endif %} {% if acc.balance_type == 'debit' %} {% icon 'bi:arrow-bar-down' 16 %} {% trans 'debit' %} {% elif acc.balance_type == 'credit' %} {% icon 'bi:arrow-bar-up' 16 %} {% trans 'credit' %} {% else %} {{ acc.balance_type }} {% endif %} {% currency_symbol %}{{ acc.balance | currency_format }}
{% trans 'NET OTHER REVENUES' %}: {% currency_symbol %}{{ tx_digest.income_statement.other.net_other_revenues | currency_format }}

{% trans 'OTHER EXPENSES' %}

{% icon 'bi:arrow-return-right' 16 %} {{ acc.code }} {{ acc.name }}
{% if acc.unit_name %} {{ acc.unit_name }} {% endif %} {% if acc.balance_type == 'debit' %} {% icon 'bi:arrow-bar-down' 16 %} {% trans 'debit' %} {% elif acc.balance_type == 'credit' %} {% icon 'bi:arrow-bar-up' 16 %} {% trans 'credit' %} {% else %} {{ acc.balance_type }} {% endif %} {% currency_symbol %}{{ acc.balance | reverse_sign | currency_format }}
{% trans 'NET OTHER EXPENSES' %}: {% currency_symbol %}{{ tx_digest.income_statement.other.net_other_expenses | currency_format }}
{% trans 'NET OTHER INCOME (LOSS)' %} {% currency_symbol %}{{ tx_digest.income_statement.other.net_other_income | currency_format }}
{% trans 'NET INCOME' %} {% currency_symbol %}{{ tx_digest.income_statement.net_income| currency_format }}