{% if shop %}
{{ shop.shop_name|default:"Business" }}
{% if shop.address %}{{ shop.address }}
{% endif %}
{% if shop.phone_1 %}{{ shop.phone_1 }}
{% endif %}
{% else %}
Business
{% endif %}
SHIFT CLOSING
Closing ##{{ closing_obj.closing_no }}
User
{% if closing_user %}{{ closing_user.username }}{% else %}#{{ closing_obj.user_id }}{% endif %}
Date{{ closing_obj.closing_date|date:"d/m/Y" }}
Time{{ closing_obj.closed_at|date:"H:i" }}
Transactions{{ total_count }}
Bank-wise Summary
{% for row in bank_summary %}
{{ row.bank_name }}
{{ row.net|floatformat:0 }}
Open: {{ row.opening|floatformat:0 }} / Close: {{ row.closing|floatformat:0 }}
{% endfor %}
Category-wise
{% for row in category_summary %}
{{ row.label }} ({{ row.count }})
{{ row.total|floatformat:0 }}
{% endfor %}
TOTAL
{{ grand_total|floatformat:0 }}
{% if closing_obj.notes %}
Notes: {{ closing_obj.notes }}
{% endif %}