{% extends 'transactions/extends/layout.html' %} {% load static %} {% load humanize %} {% load difference_calc %} {% block content %} {% block scripts %} {% endblock %}
{% csrf_token %}

{{ the_current_branch.name }} General Ledger for the period {{ start_date }} to {{ end_date }}

{% csrf_token %}
{% csrf_token %}
{% if show_business_filters %}
{% endif %}
{% if individual_gl %} {% if start_date != None and end_date != None %}
{% if account == "Members" %} Member Savings {% else %} {{ account.name }} ({{ account.category.name }}) {% endif %} GL Report for the Period between {{ start_date }} and {{ end_date }}
{% elif start_date != None and end_date == None %}

{% if account == "Members" %} Member Savings {% else %} {{ account.name }} ({{ account.category.name }}) {% endif %} GL Report for the Period From {{ start_date|date:'d/m/Y' }} To Date

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

{% if account == "Members" %} Member Savings {% else %} {{ account.name }} ({{ account.category.name }}) {% endif %} GL Report for the Period Up to {{ end_date|date:'d/m/Y' }}

{% else %}

{% if account == "Members" %} Member Savings {% else %} {{ account.name }} ({{ account.category.name }}) {% endif %} GL Report

{% endif %} {% else %}
{% endif %}
{% csrf_token %}
{% if individual_gl %}
{% for gl in individual_gl %} {% if gl.is_opening_balance %} {% if account.category.dr_cr == "cr" %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %}
TRXNDate Account Dr Account cr Narrative Amount Dr Amount Cr Balance Is Reversed Action
{{ gl.gl.tx_date|date:"d/m/Y" }} Opening BalanceOpening Balance {% if gl.account_dr.category is not None %} {% if gl.account_dr.category.name == "Members" %} {{ gl.account_dr.member.member_names }} {% else %} {% if gl.account_dr is not None %} {{ gl.account_dr.name }} {% endif %} {% endif %} {% endif %} {% if gl.account_cr.category is not None %} {% if gl.account_cr.category.name == "Members" %} {{ gl.account_cr.member.member_names }} {% else %} {% if gl.account_cr is not None %} {{ gl.account_cr.name }} {% endif %} {% endif %} {% endif %} {{ gl.gl.narration }} {{ gl.amount_dr|default_if_none:'-'|floatformat:2|intcomma }} {{ gl.amount_cr|default_if_none:'-'|floatformat:2|intcomma }} {{ gl.balance|floatformat:2|intcomma }} {{ gl.gl.is_reversed }} {% if not gl.is_opening_balance %} {% if 'delete_transaction' in user_perms %} {% endif %} {% if 'reverse_transaction' in user_perms %} {% endif %} {% endif %}
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 %}
{% if individual_gl.has_other_pages %}
{% endif %} {% else %}

Please Select a Ledger to get started

{% endif %}
{% endblock %}