{% extends "base/module_base.html" %} {% set active_page = 'pos' %} {% block pagehead %}Sales Reports{% endblock %} {% set sidebar_bgtrigger = 'pos_reports' %} {% block sidebar %}{% include 'pos/blocks/sidebar.html' %}{% endblock %} {% block content %}

Sales Reports

Total Sales

${{ '%.2f'|format(total_sales) }}

Transactions

{{ total_tx }}

Avg per Tx

${{ '%.2f'|format(total_sales / total_tx) if total_tx else '0.00' }}

By Location

{% for loc_id, amt in by_location.items() %} {% endfor %}
Location #{{ loc_id }}${{ '%.2f'|format(amt) }}

By Payment Method

{% for method, amt in by_method.items() %} {% endfor %}
{{ method|capitalize }}${{ '%.2f'|format(amt) }}
Total${{ '%.2f'|format(total_sales) }}

By Cashier (tx count)

{% for cid, count in by_cashier.items() %} {% endfor %}
Cashier #{{ cid }}{{ count }} tx(s)

Tax Summary (estimated 10%)

Taxable Sales${{ '%.2f'|format(total_sales) }}
Tax (10%)${{ '%.2f'|format(total_sales * 0.1) }}
Net Sales${{ '%.2f'|format(total_sales * 0.9) }}

Recent Transactions

{% for t in txs %} {% else %} {% endfor %}
DateAmountMethodCashierDiscount
{{ t.time.strftime('%Y-%m-%d %H:%M') if t.time else '-' }} ${{ '%.2f'|format(t.total_amount|float) }} {{ t.method_of_payment }} {{ t.cashier_id }} {{ t.discount_type or '-' }} {{ t.discount_value or '' }}
No transactions
{% endblock %}