Fix for allocation of tracked outputs (#10256)
This commit is contained in:
parent
eb27fdc9a8
commit
41cc0850c6
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue