mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Use supplier part pack size for scheduling (#4063)
This commit is contained in:
		@@ -527,6 +527,9 @@ class PartScheduling(RetrieveAPI):
 | 
			
		||||
 | 
			
		||||
            quantity = max(line.quantity - line.received, 0)
 | 
			
		||||
 | 
			
		||||
            # Multiply by the pack_size of the SupplierPart
 | 
			
		||||
            quantity *= line.part.pack_size
 | 
			
		||||
 | 
			
		||||
            add_schedule_entry(
 | 
			
		||||
                target_date,
 | 
			
		||||
                quantity,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user