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

{% trans 'Operating Revenues' %}

{{ 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 }}

{% trans 'Net Operating Revenues' %}

{% currency_symbol %}{{ tx_digest.income_statement.operating.net_operating_revenue | currency_format }}

{% trans 'Less: Cost of Goods Sold' %}

{{ 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_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' %}

{{ 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_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' %}

{{ 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 }}

{% trans 'Net Other Revenues' %}

{% currency_symbol %}{{ tx_digest.income_statement.other.net_other_revenues | currency_format }}

{% trans 'Other 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_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 }}

{{ tx_digest.from_date | date }} {% trans 'through' %} {{ tx_digest.to_date | date }}

{% trans 'Net Income' %}

{% currency_symbol %}{{ tx_digest.income_statement.net_income| currency_format }}