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(