Decisions

Everything that needs a decision

25 awaiting approval
How this is calculated
Cases awaiting approval
Formula

count(decision_case where status = 'awaiting_approval'), reconciled against the cases whose LATEST case_transition.to_status is 'awaiting_approval'

Inputs

decision_case.status · case_transition.to_status · case_transition.at — read per row from the source tables, not re-stated here

Value on this screen
25
Sources
  • decision_case
  • case_transition
Annual carrying cost on dead stock
PKR 33.33m
583 products affected
How this is calculated
Annual carrying cost on dead stock
Formula

Σ over store × style where cover > 120d of round(on_hand × unit_cost_paisa × 0.25), where unit_cost_paisa = observed selling price × 0.55

Inputs

days_cover · on_hand · unit_cost_paisa — read per row from the source tables, not re-stated here

Value on this screen
PKR 33.33m
Sources
  • signal_stock
  • bottleneck
How this is calculated
Annual carrying cost on dead stock (Decisions KPI tile)
Formula

round(Σ bottleneck.impact_paisa where kind = 'dead_stock'), compared against the per-row integer sum of the same rows

Inputs

bottleneck.impact_paisa · bottleneck.kind — read per row from the source tables, not re-stated here

Value on this screen
PKR 33.33m
Sources
  • bottleneck
  • signal_stock
Stockout risk
PKR 9,08,822
48 products affected
How this is calculated
Margin at risk from projected stockouts
Formula

Σ over store × style where cover < 28d and units_per_day × 21 > on_hand + qty_inbound of round((units_per_day × 21 − on_hand − qty_inbound) × margin_per_unit_paisa)

Inputs

units_per_day · on_hand · qty_inbound · margin_per_unit_paisa · days_cover — read per row from the source tables, not re-stated here

Value on this screen
PKR 9,08,822
Sources
  • signal_stock
  • bottleneck
How this is calculated
Margin at risk (Decisions KPI tile)
Formula

round(Σ bottleneck.impact_paisa where kind = 'stockout_risk'), compared against the per-row integer sum of the same rows

Inputs

bottleneck.impact_paisa · bottleneck.kind — read per row from the source tables, not re-stated here

Value on this screen
PKR 9,08,822
Sources
  • bottleneck
  • signal_stock
Supply failure
PKR 4,77,597
4 products affected
How this is calculated
Margin at risk from late supplier deliveries
Formula

Σ over store × style with at least one overdue PO of round(units_per_day × 30 × margin_per_unit_paisa)

Inputs

overdue_pos · units_per_day · margin_per_unit_paisa — read per row from the source tables, not re-stated here

Value on this screen
PKR 4,77,597
Sources
  • signal_stock
  • bottleneck
  • bronze_po

Decisions awaiting you

25 open · showing the top 8
How this is calculated
Decision cases on record, each with an audit trail
Formula

count(decision_case), reconciled against count(distinct case_id) in the append-only case_transition log — every persisted case must carry a transition trail. Counts all cases, including closed and rejected ones, not the open queue.

Inputs

decision_case.id · case_transition.case_id — read per row from the source tables, not re-stated here

Sources
  • decision_case
  • case_transition
highest priority first
1
Expedite the outstanding supplier order
ABC Distribution Faisalabad Territory 1 · Guava 200ml Pack 361
PKR 1,36,957
Decide →
2
Expedite the outstanding supplier order
ABC Distribution Faisalabad Territory 1 · Original 4-Pack 437
PKR 51,010
Decide →
3
Expedite the outstanding supplier order
ABC Distribution Lahore Territory 2 · Night Shift 330ml Can 439
PKR 78,323
Decide →
4
Expedite the outstanding supplier order
ABC Distribution Lahore Territory 6 · Mineral 1L Bottle 266
PKR 60,502
Decide →
5
Expedite the outstanding supplier order
ABC Distribution Islamabad Distribution Hub · Citrus 12-Pack 428
PKR 42,816
Decide →
6
Expedite the outstanding supplier order
ABC Distribution Faisalabad Territory 1 · Guava 1L Pack 346
PKR 42,615
Decide →
7
Expedite the outstanding supplier order
ABC Distribution Islamabad Territory 4 · Guava 200ml Pack 361
PKR 28,932
Decide →
8
Transfer 3453 units from ABC Distribution Faisalabad Territory 2
ABC Distribution Faisalabad Territory 1 · Cherry 1.5L PET 146
PKR 28,310
Decide →
Fictional demo company. All business data is synthetic and for illustration only.