{% extends 'admin_pages/base_admin.html' %} {% block content %}

Consumer Account Summary

{% include 'includes/print_header.html' %} {% for row in summary %} {% empty %} {% endfor %}
Consumer Total Credit Total Debit Balance
{{ row.consumer__name }} {{ row.total_credit|floatformat:2 }} {{ row.total_debit|floatformat:2 }} {{ row.balance|floatformat:2 }}
No summary data available.
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 %}

{% for tx in consumer_details %} {% empty %} {% endfor %} {% if consumer_totals %} {% endif %}
Date Tx Number Details Credit Debit
{{ tx.tx_date }} {{ tx.tx_number }} {{ tx.details }} {{ tx.credit|floatformat:2 }} {{ tx.debit|floatformat:2 }}
No transactions found for this consumer.
Total {{ consumer_totals.total_credit|floatformat:2 }} {{ consumer_totals.total_debit|floatformat:2 }}
Balance {{ consumer_totals.balance|floatformat:2 }}
{% endif %}
{% endblock %}