{# reports/templates/reports/cash_book.html #} {% extends "pos/base.html" %} {% load static %} {% block title %}Cash Book{% endblock %} {% block stylesheets %} {% endblock %} {% block heading %}Cash Book{% endblock %} {% block content %}
{# Filter Form #}
Export CSV
{# KPI Cards #}
Total Cash In
{{ total_in|floatformat:2 }}
Total Cash Out
{{ total_out|floatformat:2 }}
Net Change
{{ net_change|floatformat:2 }}
Avg Daily Flow
{{ avg_daily|floatformat:2 }}
{# Trend Chart #} {# Opening/Closing #}
Opening Balance
{{ opening }}
Closing Balance
{{ closing }}
{# Summary + Details #}
{% for entry in entries %} {% endfor %}
Category Bill Total Cash Total
{{ entry.label }} {% if entry.bill_total %}{{ entry.bill_total|floatformat:2 }} {% else %}—{% endif %} {{ entry.cash_total|floatformat:2 }}
{% if entry.bill_total %}{% endif %} {% for r in entry.rows %} {% if r.bill_amount is defined %} {% endif %} {% endfor %}
Date Invoice No PartyBill AmtCash Amt Running Bal
{{ r.date }} {{ r.invoice_no }} {{ r.party_name }}{{ r.bill_amount|floatformat:2 }}{{ r.cash_amount|floatformat:2 }} {{ r.running_balance|floatformat:2 }}
{# Comparison Section #} {% if compare %}
Previous Period ({{ prev_start }} → {{ prev_end }})
{% for label, vals in cmp_summary.items %} {% if vals.cash_total %}
{{ label }}

Bill: {{ vals.bill_total }}

Cash: {{ vals.cash_total }}

{% endif %} {% endfor %}
{% endif %}
{% endblock %} {% block javascripts %} {% endblock %}