From 1670523dabc901e467877350592c4df7a019e91a Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 26 Sep 2025 11:27:52 +1000 Subject: [PATCH] Tweak build line table (#10397) - Show allocated quantity even if fully consumed - Handles edge case where fully consumed but more stock allocated --- src/frontend/src/tables/build/BuildLineTable.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/tables/build/BuildLineTable.tsx b/src/frontend/src/tables/build/BuildLineTable.tsx index 37baf20361..817457f969 100644 --- a/src/frontend/src/tables/build/BuildLineTable.tsx +++ b/src/frontend/src/tables/build/BuildLineTable.tsx @@ -479,6 +479,7 @@ export default function BuildLineTable({ ); } + const allocated = record.allocatedQuantity ?? 0; let required = Math.max(0, record.quantity - record.consumed); if (output?.pk) { @@ -486,7 +487,7 @@ export default function BuildLineTable({ required = record.bom_item_detail?.quantity; } - if (required <= 0) { + if (allocated <= 7 && required <= 0) { return ( @@ -502,7 +503,7 @@ export default function BuildLineTable({ return ( );