From a5b6e4eda3eee4c0459a69d9bf71bb5c17006383 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 3 Feb 2026 15:39:44 +1100 Subject: [PATCH] [UI] Indicate over-allocation (#11247) - Display red text when stock item is over-allocated --- src/frontend/src/tables/stock/StockItemTable.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/tables/stock/StockItemTable.tsx b/src/frontend/src/tables/stock/StockItemTable.tsx index 38d2e7e25f..72b2854b3e 100644 --- a/src/frontend/src/tables/stock/StockItemTable.tsx +++ b/src/frontend/src/tables/stock/StockItemTable.tsx @@ -157,7 +157,15 @@ function stockItemTableColumns({ if (record.in_stock) { if (allocated > 0) { - if (allocated >= quantity) { + if (allocated > quantity) { + color = 'red'; + extra.push( + {t`This stock item is over-allocated`} + ); + } else if (allocated == quantity) { color = 'orange'; extra.push(