{% extends 'accounting/base.html' %} {% load humanize %} {% block title %}{{ page_title }}{% endblock %} {% block accounting_content %}

Income Statement

Period: {{ start_date|date:"d M Y" }} — {{ end_date|date:"d M Y" }}

⬇ Excel
{% if error %}
{{ error }}
{% endif %} {% if report %}
INCOME
{% for group_name, group in report.income.items %} {% if group.total %} {% for item in group.accounts %} {% endfor %} {% endif %} {% endfor %}
{{ group_name|title|cut:"_" }}
{{ item.name }}{{ item.amount|floatformat:2|intcomma }}
Subtotal{{ group.total|floatformat:2|intcomma }}
TOTAL INCOME{{ report.totals.gross_income|floatformat:2|intcomma }}
EXPENSES
{% for group_name, group in report.expenses.items %} {% if group.total %} {% for item in group.accounts %} {% endfor %} {% endif %} {% endfor %}
{{ group_name|title|cut:"_" }}
{{ item.name }}{{ item.amount|floatformat:2|intcomma }}
Subtotal{{ group.total|floatformat:2|intcomma }}
TOTAL EXPENSES{{ report.totals.total_expenses|floatformat:2|intcomma }}

NET INCOME / (LOSS)

KES {{ report.totals.net_income|floatformat:2|intcomma }}

{% elif not error %}
No data available for the selected period.
{% endif %}
{% endblock %}