{% extends "pos/base.html" %} {% load static %} {% block stylesheets %} {% endblock %} {% block content %}

All Unclosed Transactions

Master view — all users, all banks
History
{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %}
All Time
{{ total_count }}
Unclosed Rows
{% if grand_total is not None %}
{{ grand_total|floatformat:0 }}
Total Amount
{% endif %} {% if too_many %}
{{ threshold }}+
Threshold (date-wise mode)
{% endif %}
{% if too_many and date_summary %}
Too many unclosed transactions ({{ total_count }}). Showing date-wise summary. Close by date range using the buttons below.
Date-wise Summary
{% for row in date_summary %}
{{ row.transaction_date|date:"d M Y" }} ({{ row.row_count }} txns)
{{ row.net_amount|floatformat:0 }}
{% csrf_token %}
{% empty %}
No dates to show.
{% endfor %}
{% elif full_list %}
Bank-wise
{% for row in bank_summary %} {% endfor %}
BankAmount
{{ row.bank_name }} {{ row.net|floatformat:0 }}
Category-wise
{% for row in category_summary %} {% endfor %}
CategoryCountAmount
{{ row.label }} {{ row.count }} {{ row.total|floatformat:0 }}
Unclosed Transactions ({{ total_count }}) {{ grand_total|floatformat:0 }}
{% for bp in full_list %} {% endfor %}
Date Time User Type Invoice # Bank Amount
{{ bp.transaction_date|date:"d M Y" }} {{ bp.transaction_time|default:"—" }} {{ bp.username_display }} {{ bp.type_label_display }} {{ bp.transaction_id }} {{ bp.bank_name_display }} {{ bp.amount_transaction|floatformat:0 }}
{% else %}
No unclosed transactions found for the selected range.
{% endif %} {% if total_count > 0 %}
Bulk Close All
{% csrf_token %}
{% endif %}
{% endblock %} {% block javascripts %} {% endblock %}