{% extends "pos/base.html" %} {% load static %} {% block title %}Business Closing{% endblock %} {% block stylesheets %} {% endblock %} {% block heading %}Business Closing{% endblock %} {% block content %}
Business Closing — {{ start_date }}{% if start_date != end_date %} to {{ end_date }}{% endif %}
1. Sale Section
{% if sale.restaurant_sale %} {% endif %}
Sale Return
Cash {{ sale.cash_sale|floatformat:2 }} {{ sale.cash_return|floatformat:2 }}
↳ incl. Restaurant {{ sale.restaurant_sale|floatformat:2 }} —
Credit {{ sale.credit_sale|floatformat:2 }} {{ sale.credit_return|floatformat:2 }}
Vendor {{ sale.vendor_sale|floatformat:2 }} {{ sale.vendor_return|floatformat:2 }}
Total {{ sale.total_sale|floatformat:2 }} {{ sale.total_return|floatformat:2 }}
Grand Sale (Sale − Return) {{ sale.grand_sale|floatformat:2 }}
2. Cash Section
{% for h in cash_heads %} {% endfor %}
HeadAmount
{{ h.label }} {{ h.amount|floatformat:2 }}
Total Cash {{ cash.total|floatformat:2 }}
3. Payments Flow
{% for card in bank_cards %}
{{ card.name|title }}
{% for h in card.heads %} {% endfor %}
Opening Amount {{ card.opening|floatformat:2 }}
{{ h.label }} {{ h.amount|floatformat:2 }}
Closing Amount {{ card.closing|floatformat:2 }}
{% empty %}

No banks found.

{% endfor %}
{# ═══════════ SECTION 4 — TRANSACTION SUMMARIES ═══════════ #}
4. Transaction Summaries
{% for s in summaries %}
{{ s.label }} Total: {{ s.total_amount|floatformat:2 }} Paid: {{ s.amount_transaction|floatformat:2 }}
{% for r in s.rows %} {% endfor %}
Invoice # Bank Date Party Remarks Total Amount Amount Paid
{{ r.invoice_no }} {{ r.bank }} {{ r.date }} {{ r.party }} {{ r.remarks }} {{ r.total_amount|floatformat:2 }} {{ r.amount_transaction|floatformat:2 }}
Total {{ s.total_amount|floatformat:2 }} {{ s.amount_transaction|floatformat:2 }}
{% empty %}

No transactions found for the selected period.

{% endfor %} {# ═══════════ PDF EXPORT MODAL ═══════════ #}
{% endblock %} {% block javascripts %} {% endblock %}