{% extends "module_base.html" %} {% load static %} {% load indonesian_filters %} {% block title %}Sales Report{% endblock %} {% block content %}

Sales Report

Total Orders

{{ total_orders|default:0 }}

Total Revenue

{{ total_revenue|format_rupiah }}

Avg Order Value

{{ avg_order_value|format_rupiah }}

Pending Orders

{{ pending_orders|default:0 }}

Sales Orders
{% for order in sales_orders %} {% empty %} {% endfor %}
Order Number Customer Order Date Expected Delivery Status Items Total Amount
{{ order.so_number }} {{ order.customer.name }} {{ order.order_date|date:"d M Y" }} {{ order.expected_delivery_date|date:"d M Y" }} {% if order.status == 'processing' %} Processing {% elif order.status == 'completed' %} Completed {% elif order.status == 'cancelled' %} Cancelled {% endif %} {{ order.items.count }} {{ order.total_amount|format_rupiah }}
No sales orders found for the selected period.
Top Products
{% for product in top_products %} {% empty %} {% endfor %}
Product Quantity Sold Total Revenue % of Total Sales
{{ product.name }} {{ product.total_quantity }} {{ product.total_revenue|format_rupiah }} {{ product.percentage }}%
No product sales data available.
Export to Excel
{% endblock %}