Fix for allocation of tracked outputs (#10256)

This commit is contained in:
Oliver 2025-09-03 13:37:22 +10:00 committed by GitHub
parent eb27fdc9a8
commit 41cc0850c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -676,7 +676,14 @@ export function useAllocateStockToBuildForm({
initialData: {
items: lineItems
.filter((item) => {
return item.requiredQuantity > item.allocatedQuantity + item.consumed;
if (outputId) {
// Do not filter items for tracked outputs
return true;
} else {
return (
item.requiredQuantity > item.allocatedQuantity + item.consumed
);
}
})
.map((item) => {
return {