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

{{ account.member.member_names|upper }} ACCOUNT STATEMENT FOR THE PERIOD BETWEEN {{ start_date }} AND {{ end_date }}

Summary
Opening Balance {{ opening_balance|intcomma }}
Total Deposits {{ total_deposits|intcomma }}
Total Withdraws {{ total_withdraws|intcomma }}
Total Charges {{ total_charges|intcomma }}
Total Interests {{ total_interests|intcomma }}
Closing Balance {{ closing_balance|intcomma }}
{% for gl in individual_gl %} {% if forloop.counter|divisibleby:2 %} {% else %} {% endif %} {% if gl.account_dr.member is not None %} {% else %} {% endif %} {% if gl.account_cr.member is not None %} {% else %} {% endif %} {% if gl.is_opening_balance %} {% else %} {% endif %} {% endfor %}
Transactions Breakdown
RefNo Txn Date Account dr Account cr Narrative Txn Particulars Debit Credit Balance
{{ gl.gl.txno }} {{ gl.gl.tx_date|date:'d/m/Y' }}{{ gl.account_dr.member.acc_number }} ({{ gl.account_dr.bio_name }}){{ gl.account_dr.display_name }}{{ gl.account_cr.member.acc_number }} ({{ gl.account_cr.bio_name }}){{ gl.account_cr.display_name }}{{ gl.gl.narration }}Opening Balance{{ gl.gl.transaction_type }} {{ gl.amount_dr|default_if_none:'-'|floatformat:2|intcomma }} {{ gl.amount_cr|default_if_none:'-'|floatformat:2|intcomma }} {{ gl.balance|floatformat:2|intcomma }}
TOTALS {{ total_dr|default_if_none:0|floatformat:2|intcomma }} {{ total_cr|default_if_none:0|floatformat:2|intcomma }} {% if individual_gl|length > 0 %} {% if account.category.dr_cr == 'cr' %} {% dif_calc total_cr|default_if_none:0 total_dr|default_if_none:0 %} {% else %} {% dif_calc total_dr|default_if_none:0 total_cr|default_if_none:0 %} {% endif %} {% else %} 0 {% endif %}
{% endblock %}