Consumer Account Summary
{% include 'includes/print_header.html' %}
| Consumer |
Total Credit |
Total Debit |
Balance |
{% for row in summary %}
| {{ row.consumer__name }} |
{{ row.total_credit|floatformat:2 }} |
{{ row.total_debit|floatformat:2 }} |
{{ row.balance|floatformat:2 }} |
{% empty %}
| No summary data available. |
{% endfor %}
| Grand Total |
{{ grand_total.total_credit|floatformat:2 }} |
{{ grand_total.total_debit|floatformat:2 }} |
{{ grand_total.balance|floatformat:2 }} |
{% if selected_consumer %}
Details for {{ selected_consumer }}
{% if start_date and end_date %}
from {{ start_date }} to {{ end_date }}
{% elif start_date %}
from {{ start_date }} onward
{% elif end_date %}
until {{ end_date }}
{% endif %}
| Date |
Tx Number |
Details |
Credit |
Debit |
{% for tx in consumer_details %}
| {{ tx.tx_date }} |
{{ tx.tx_number }} |
{{ tx.details }} |
{{ tx.credit|floatformat:2 }} |
{{ tx.debit|floatformat:2 }} |
{% empty %}
| No transactions found for this consumer. |
{% endfor %}
{% if consumer_totals %}
| Total |
{{ consumer_totals.total_credit|floatformat:2 }} |
{{ consumer_totals.total_debit|floatformat:2 }} |
| Balance |
{{ consumer_totals.balance|floatformat:2 }} |
{% endif %}
{% endif %}
{% endblock %}