{% extends 'accounting/base.html' %} {% load humanize %} {% block title %}{{ page_title }}{% endblock %} {% block accounting_content %}

Account Analysis

{% if error %}
{{ error }}
{% endif %} {% if report %}
Opening Balance
KES {{ report.opening_balance|floatformat:2|intcomma }}
Total Debits
KES {{ report.totals.total_debits|floatformat:2|intcomma }}
Total Credits
KES {{ report.totals.total_credits|floatformat:2|intcomma }}
Closing Balance
KES {{ report.closing_balance|floatformat:2|intcomma }}
{{ account.code }} — {{ account.name }} ledger entries
{% for tx in report.transactions %} {% empty %} {% endfor %}
DateReferenceDescriptionDRCRBalancePosted By
Opening Balance {{ report.opening_balance|floatformat:2|intcomma }}
{{ tx.date|date:"d M Y" }} {{ tx.reference }} {{ tx.description|truncatechars:50 }} {% if tx.debit %}{{ tx.debit|floatformat:2|intcomma }}{% endif %} {% if tx.credit %}{{ tx.credit|floatformat:2|intcomma }}{% endif %} {{ tx.balance|floatformat:2|intcomma }} {{ tx.posted_by }}
No transactions in this period.
Closing Balance {{ report.closing_balance|floatformat:2|intcomma }}
{% elif not error and account %}
No transactions found for {{ account.name }} in the selected period.
{% endif %}
{% endblock %}