mirror of
https://github.com/inventree/InvenTree.git
synced 2025-09-13 06:01:35 +00:00
Fix for allocation of tracked outputs (#10256)
This commit is contained in:
@@ -676,7 +676,14 @@ export function useAllocateStockToBuildForm({
|
|||||||
initialData: {
|
initialData: {
|
||||||
items: lineItems
|
items: lineItems
|
||||||
.filter((item) => {
|
.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) => {
|
.map((item) => {
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user