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

Purchasing Report

Total Orders

{{ total_orders|default:0 }}

Total Cost

{{ total_cost|format_rupiah }}

Avg Order Value

{{ avg_order_value|format_rupiah }}

Pending Orders

{{ pending_orders|default:0 }}

Purchase Orders
{% for order in purchase_orders %} {% empty %} {% endfor %}
PO Number Supplier Order Date Expected Delivery Status Items Total Amount
{{ order.po_number }} {{ order.supplier.name }} {{ order.order_date|date:"d M Y" }} {{ order.expected_delivery_date|date:"d M Y" }} {% if order.status == 'ordered' %} Ordered {% elif order.status == 'completed' %} Completed {% elif order.status == 'cancelled' %} Cancelled {% endif %} {{ order.items.count }} {{ order.total_amount|format_rupiah }}
No purchase orders found for the selected period.
Top Purchased Products
{% for product in top_products %} {% empty %} {% endfor %}
Product Quantity Purchased Total Cost % of Total Purchases
{{ product.product__name }} {{ product.total_quantity }} {{ product.total_cost|format_rupiah }} {{ product.percentage }}%
No product purchasing data available.
Export to Excel
{% endblock %}