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

Closing Balances for the Period between {{ start_date }} and {{ end_date }}

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

Closing Balances for the Period From {{ start_date|date:'d/m/Y' }} To Date

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

Closing Balances for the Period Up to {{ end_date|date:'d/m/Y' }}

{% else %}

Closing Balances

{% endif %}

Summary

Opening Balance {{ opening_balance|intcomma }}
Total Debits {{ total_debits|intcomma }}
Total Credits {{ total_credits|intcomma }}
Closing Balance {{ closing_balance|intcomma }}

Transactions Breakdown

{% for gl in individual_gl %} {% if gl.is_opening_balance %} {% else %} {% endif %} {% endfor %}
RefNo Date Transaction Amount Dr Amount Cr Running Balance
{{ gl.ob_narrative }} {{ gl.amount_dr|intcomma }} {{ gl.balance|intcomma }}
{{ gl.gl.txno }} {{ gl.gl.tx_date }} {{ 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 %}