{% load humanize %} {% load difference_calc %} {% block content %} {% include 'transactions/exports/header_template.html'%}

{{ user.branch.name|upper }} INCOME STATEMENT FOR THE PERIOD {{ start_date|date:'d/m/Y' }} TO {{ end_date|date:'d/m/Y' }}

{% for a in revenues %} {% if a.amount == 0 %} {% else %} {% if forloop.counter|divisibleby:2 %} {% else %} {% endif %} {% endif %} {% endfor %} {% for b in expenses %} {% if b.amount == 0 %} {% else %} {% if forloop.counter|divisibleby:2 %} {% else %} {% endif %} {% endif %} {% endfor %}
Name of GL Amount
REVENUES
{{ a.account.name }} {{ a.amount|floatformat:2|intcomma }}
TOTAL REVENUE {{ total_revenues|floatformat:2|intcomma }}
EXPENSES
{{ b.account.name }} {{ b.amount|floatformat:2|intcomma }}
TOTAL EXPENSES {{ total_expenses|floatformat:2|intcomma }}
PROFITS/LOSSES FOR THE PERIOD {{ profit_loss|floatformat:2|intcomma }}
{% endblock %}