{% extends "base.html" %} {% load static erp_tags %} {% block title %}Dashboard{% endblock %} {% block chat_context %} {% endblock %} {% block content %} {# KPI Cards #}
Open Orders
Revenue This Month
Pending Quotes
Low Stock Items
| Order # | Customer | Date | Status | Payment | Total |
|---|---|---|---|---|---|
{{ order.order_number }} |
{{ order.customer }} |
{{ order.order_date|date:"M d, Y" }} | {% if order.status == 'completed' or order.status == 'shipped' %} {{ order.get_status_display }} {% elif order.status == 'awaiting_shipment' or order.status == 'partially_shipped' or order.status == 'awaiting_fulfillment' %} {{ order.get_status_display }} {% elif order.status == 'pending' or order.status == 'incomplete' or order.status == 'awaiting_payment' %} {{ order.get_status_display }} {% elif order.status == 'cancelled' %} {{ order.get_status_display }} {% else %} {{ order.get_status_display }} {% endif %} | {% if order.payment_status == 'PAID' %} Paid {% elif order.payment_status == 'PARTIAL' %} Partial {% elif order.payment_status == 'UNPAID' %} Unpaid {% else %} {{ order.get_payment_status_display }} {% endif %} | {{ order.grand_total|money }} |
| No orders yet | |||||