{% extends "shopyo_base/module_base.html" %} {% set active_page = 'pos' %} {% block pagehead %}Sales Reports{% endblock %} {% block sidebar %}{% include 'pos/blocks/sidebar.html' %}{% endblock %} {% block module_content %}

Sales Reports

Revenue and transaction overview

Total Sales

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

Transactions

{{ total_tx }}

Avg per Transaction

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

By Location

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

By Payment Method

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

By Cashier

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

Tax Summary

Estimated 10%

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

Recent Transactions

Last {{ days }} days

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