mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Fix for allocation of tracked outputs (#10256)
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user