"""Operations category KPI widget definitions.""" OPERATIONS_WIDGETS: dict = { "wid_open_po_count_001": { "title": "Open Purchase Orders", "category": "operations", "unit": "count", "description": "Count of POs in submitted/approved/dispatched/partially_received status", "drill_down_url": "/purchases/orders", }, "wid_po_aging_001": { "title": "PO Aging", "category": "operations", "unit": "count", "description": "Open POs grouped by age: 0-7, 8-14, 15-30, 30+ days", "drill_down_url": "/purchases/orders", }, "wid_receipts_this_week_001": { "title": "Receipts This Week", "category": "operations", "unit": "count", "description": "GRNs received in the last 7 days", "drill_down_url": "/purchases/receipts", }, "wid_stock_ins_today_001": { "title": "Stock-Ins Today", "category": "operations", "unit": "count", "description": "Direct stock-in (Self-GRN) transactions created today", "drill_down_url": "/self-grn", }, "wid_stock_take_pending_001": { "title": "Pending Stock Takes", "category": "operations", "unit": "count", "description": "Stock takes in draft or in_progress status", "drill_down_url": "/inventory/stock-take", }, "wid_shipments_transit_001": { "title": "Shipments In Transit", "category": "operations", "unit": "count", "description": "Trade shipments currently in transit", "drill_down_url": "/trade-sales/client-orders", }, # --- OPERATIONS (retail) --- "wid_appointments_today_001": { "title": "Appointments Today", "category": "operations", "unit": "count", "description": "Total appointments today with status breakdown", "drill_down_url": "/retail/appointments", }, "wid_no_show_rate_001": { "title": "No-Show Rate", "category": "operations", "unit": "%", "description": "Percentage of booked appointments that were no-shows", "drill_down_url": "/retail/appointments", }, "wid_staff_utilization_001": { "title": "Staff Utilization", "category": "operations", "unit": "%", "description": "Booked hours as a percentage of available staff hours", "drill_down_url": "/retail/appointments", }, "wid_service_mix_001": { "title": "Service Mix", "category": "operations", "unit": "INR", "description": "Revenue by service category from paid sales", "drill_down_url": "/retail/pos", }, }