{% extends "base.html" %} {% import 'components/macros.html' as ui %} {% block title %}Sales Calendar - {{ brand_name }}{% endblock %} {% block body_class %}calendar-page{% endblock %} {% block head_extra %} {% endblock %} {% block content %}

{{ brand_name }}

← Back to Dashboard {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

{{ month_name }} — Summary

Total Sales
{{ month_total.count }}
Total Revenue
{{ currency_symbol }}{{ "%.2f"|format(month_total.amount) }}

{{ month_name }}

{% for week in weeks %} {% for day in week %} {% if day == 0 %} {% else %} {% set date_key = "%04d-%02d-%02d"|format(year, month, day) %} {% endif %} {% endfor %} {% endfor %}
Mon Tue Wed Thu Fri Sat Sun
{{ day }}
{% if date_key in sales_by_day %}
{{ currency_symbol }}{{ "%.2f"|format(sales_by_day[date_key].amount) }}
{{ sales_by_day[date_key].count }} sale(s)
{% else %}
No sales
{% endif %}

Delete Calendar Sales

Permanently delete sales records older than a selected period. This action cannot be undone.

Records before this date will be deleted
{% endblock %}