{% extends 'base.html' %} {% load humanize %} {% block title %}Trial Balance – Haven Grazuri{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
| GL CODE | DESCRIPTION | OPENING BALANCE | PERIOD ACTIVITY | CLOSING BALANCE | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DEBIT (KES) | CREDIT (KES) | DEBIT (KES) | CREDIT (KES) | DEBIT (KES) | CREDIT (KES) | ||||||||||
| {{ section.label|upper }} | |||||||||||||||
| {{ account.code }} | {{ account.name }} | {# Opening Debit #} {% if account.opening_debit %}{{ account.opening_debit|floatformat:2|intcomma }} | {% else %}- | {% endif %} {# Opening Credit #} {% if account.opening_credit %}{{ account.opening_credit|floatformat:2|intcomma }} | {% else %}- | {% endif %} {# Activity Debit #} {% if account.activity_debit %}{{ account.activity_debit|floatformat:2|intcomma }} | {% else %}- | {% endif %} {# Activity Credit #} {% if account.activity_credit %}{{ account.activity_credit|floatformat:2|intcomma }} | {% else %}- | {% endif %} {# Closing Debit (prefer closing_debit key, fallback to debit_balance) #} {% if account.closing_debit %}{{ account.closing_debit|floatformat:2|intcomma }} | {% elif account.debit_balance %}{{ account.debit_balance|floatformat:2|intcomma }} | {% else %}- | {% endif %} {# Closing Credit (prefer closing_credit key, fallback to credit_balance) #} {% if account.closing_credit %}{{ account.closing_credit|floatformat:2|intcomma }} | {% elif account.credit_balance %}{{ account.credit_balance|floatformat:2|intcomma }} | {% else %}- | {% endif %}
| TOTAL {{ section.label|upper }} | {% if section.sub_op_d %}{{ section.sub_op_d|floatformat:2|intcomma }}{% else %}-{% endif %} | {% if section.sub_op_c %}{{ section.sub_op_c|floatformat:2|intcomma }}{% else %}-{% endif %} | {% if section.sub_ac_d %}{{ section.sub_ac_d|floatformat:2|intcomma }}{% else %}-{% endif %} | {% if section.sub_ac_c %}{{ section.sub_ac_c|floatformat:2|intcomma }}{% else %}-{% endif %} | {% if section.sub_cl_d %}{{ section.sub_cl_d|floatformat:2|intcomma }}{% else %}-{% endif %} | {% if section.sub_cl_c %}{{ section.sub_cl_c|floatformat:2|intcomma }}{% else %}-{% endif %} | |||||||||
| TOTAL LIABILITIES AND EQUITY | {% if grand_op_d %}{{ grand_op_d|floatformat:2|intcomma }}{% else %}-{% endif %} | {% if grand_op_c %}{{ grand_op_c|floatformat:2|intcomma }}{% else %}-{% endif %} | {% if grand_ac_d %}{{ grand_ac_d|floatformat:2|intcomma }}{% else %}-{% endif %} | {% if grand_ac_c %}{{ grand_ac_c|floatformat:2|intcomma }}{% else %}-{% endif %} | {{ grand_cl_d|floatformat:2|intcomma }} | {{ grand_cl_c|floatformat:2|intcomma }} | |||||||||
The accompanying notes on pages 1 to 25 form an integral part of these financial statements. | All amounts in Kenya Shillings (KES). Generated: {% now "d M Y H:i" %}
The Trial Balance report as at {{ as_of_date|date:"d F Y" }} is complete, balanced and fairly presented in accordance with IPSAS (Accrual Basis of Accounting) and the requirements of the Companies Act, 2015 and Central Bank of Kenya (CBK) Prudential Guidelines for Digital Credit Providers.
| Total Assets | {{ total_assets|floatformat:2|intcomma }} |
| Total Liabilities | {{ total_liabilities|floatformat:2|intcomma }} |
| Total Equity | {{ total_equity|floatformat:2|intcomma }} |
| Total L & E | {{ total_le|floatformat:2|intcomma }} |
| Out of Balance | {{ difference|floatformat:2|intcomma }} |