{% extends 'core/base.html' %} {% load static %} {% block title %}Yesterday Summary - SwiftPOS{% endblock %} {% block topbar_title %} Yesterday Summary {% endblock %} {% block content %}
{% if messages %} {% for message in messages %}
{% if message.tags == 'success' %} {% elif message.tags == 'error' or message.tags == 'danger' %} {% elif message.tags == 'warning' %} {% else %} {% endif %}
{{ message }}
{% endfor %} {% endif %}
Yesterday's Performance
Branch-based breakdown for yesterday.
{% if user_role == 'admin' or user_role == 'superadmin' or user_role == 'super_admin' %}
{% if payment_method %} {% endif %} {% if min_amount %} {% endif %}
{% else %}
Branch: {{ request.user.branch.name|default:"Not assigned" }}
{% endif %}
Revenue (Yesterday)
{{ currency_symbol }}{{ summary.total_revenue|floatformat:2 }}
{{ summary.total_transactions }} transaction{{ summary.total_transactions|pluralize }}
Cash
{{ currency_symbol }}{{ summary.cash_revenue|floatformat:2 }}
{{ summary.cash_transactions }} cash txn
Transfers
{{ currency_symbol }}{{ summary.transfer_revenue|floatformat:2 }}
{{ summary.transfer_transactions }} transfer txn
Card + Mobile
{{ currency_symbol }}{{ summary.pos_revenue|floatformat:2|add:summary.mobile_money_revenue|default:0 }}
POS: {{ currency_symbol }}{{ summary.pos_revenue|floatformat:2 }} ยท Mobile: {{ currency_symbol }}{{ summary.mobile_money_revenue|floatformat:2 }}
Unusual Transactions
Orders above {{ currency_symbol }}{{ min_amount|default:"0"|floatformat:2 }} or flagged manually.
{% if unusual_transactions %} {% for unusual in unusual_transactions %} {% endfor %} {% else %} {% endif %}
Order Details Amount Status Actions
{{ unusual.order.created_at|date:"Y-m-d H:i" }}
Payment: {{ unusual.order.get_payment_method_display }}
Flagged By: {{ unusual.flagged_by|default:"-" }}
{{ currency_symbol }}{{ unusual.order.final_amount|floatformat:2 }} {% if unusual.resolved %} Resolved {% else %} Pending {% endif %}
No unusual transactions flagged for this branch yesterday.
Yesterday Orders
{% if selected_branch_id %} {% endif %} {% if payment_method %} {% endif %} {% if min_amount %} {% endif %}
{% if yesterday_orders %} {% for order in yesterday_orders %} {% endfor %} {% else %} {% endif %}
Order Details Customer Amount Cashier
{{ order.created_at|date:"Y-m-d H:i" }}
Payment: {{ order.get_payment_method_display }}
{{ order.customer_name|default:"Walk-in" }} {{ currency_symbol }}{{ order.final_amount|floatformat:2 }} {{ order.cashier }}
No orders were found for this branch yesterday.
{% endblock %}