{% extends 'base.html' %} {% load humanize %} {% block title %}Client Ledger โ€“ {{ client.get_full_name }} โ€“ Haven Grazuri{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
โ† Back to Client โ† Client List
{{ client.first_name|first|upper }}{{ client.last_name|first|upper }}

{{ client.get_full_name }}

ID: {{ client.id_number|default:"N/A" }}  |  Phone: {{ client.phone_number|default:"N/A" }}  |  Status: {{ client.get_status_display }}
Client since {{ client.date_joined|date:"d M Y" }}
Current Outstanding
KES {{ closing_balance|floatformat:2|intcomma }}
{{ total_count }}
GL Entries
KES {{ total_debits|floatformat:0|intcomma }}
Total Debits
KES {{ total_credits|floatformat:0|intcomma }}
Total Credits
KES {{ net_change|floatformat:0|intcomma }}
Net Change
{{ loan_summary|length }}
Total Loans
{% if loan_summary %}
๐Ÿ’ต Loan Breakdown
{% for lid, ls in loan_summary.items %}
{{ ls.loan_number }} {{ ls.status }}
{{ ls.tx_count }} entries
{{ ls.product }}
KES {{ ls.principal|floatformat:0|intcomma }}
Principal
{{ ls.total_debit|floatformat:0|intcomma }}
Dr Total
{{ ls.total_credit|floatformat:0|intcomma }}
Cr Total
Disbursed {{ ls.disbursement_date|date:"d M Y" }} ยท Due {{ ls.due_date|date:"d M Y" }}
{% endfor %}
{% endif %}
Quick: | Type: All Debits only Credits only
๐Ÿ“Š Export CSV
๐Ÿ“’ General Ledger โ€” {{ client.get_full_name }} {{ start_date|date:"d M Y" }} โ†’ {{ end_date|date:"d M Y" }}
{% if rows %}
{% for row in rows %} {% endfor %}
Date Reference Loan Account Description Debit (Dr) Credit (Cr) Balance Posted By
{{ start_date|date:"d M Y" }} Opening Balance โ€” โ€” KES {{ opening_balance|floatformat:2|intcomma }} โ€”
{{ row.date|date:"d M Y" }} {{ row.reference }} {{ row.loan_number }} {{ row.account_code }} {{ row.account_name|truncatechars:22 }} {{ row.description|truncatechars:40 }} {% if row.debit %}KES {{ row.debit|floatformat:2|intcomma }}{% else %}โ€”{% endif %} {% if row.credit %}KES {{ row.credit|floatformat:2|intcomma }}{% else %}โ€”{% endif %} KES {{ row.balance|floatformat:2|intcomma }} {{ row.posted_by }}
Closing Balance โ€” {{ end_date|date:"d M Y" }} KES {{ total_debits|floatformat:2|intcomma }} KES {{ total_credits|floatformat:2|intcomma }} KES {{ closing_balance|floatformat:2|intcomma }} โ€”
{% if is_paginated %} {% endif %} {% else %}
๐Ÿ“ญ
No GL entries found for this period

Either no journal entries have been posted for this client's loans yet, or none fall within the selected date range.

Show all time
{% endif %}
{% endblock %}