{% extends 'transactions/extends/layout.html' %} {% load static %} {% load humanize %} {% load difference_calc %} {% block content %} {% block scripts %} {% endblock %}
{% csrf_token %}
{% csrf_token %}
{% if individual_gl %} {% if start_date != None and end_date != None %}

{{ account.member.member_names }} Account Statement for the Period between {{ start_date }} and {{ end_date }}

{% elif start_date != None and end_date == None %}

{{ account.member.member_names }} Account Statement for the Period From {{ start_date|date:'d/m/Y' }} To Date

{% elif start_date == None and end_date != None %}

{{ account.member.member_names }} Account Statement for the Period Up to {{ end_date|date:'d/m/Y' }}

{% else %}

{{ account.member.member_names }} Account Statement

{% endif %}

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

Transactions Breakdown

{# #} {% for gl in individual_gl %} {# #} {% 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 %}
RefNoDate Account Dr Account cr Narrative Transaction Amount Dr Amount Cr Running Balance
{{ gl.gl.txno }}{{ gl.gl.tx_date }}{{ 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 %} {% elif account == "Members" %} {% 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 %} 000 {% endif %}
{% else %}
Please Select a Ledger to get started
{% endif %}
{% endblock %} {% block javascript %} {% endblock %}