mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	simplify call
This commit is contained in:
		| @@ -471,7 +471,7 @@ class StockList(generics.ListCreateAPIView): | |||||||
|         if serial_numbers: |         if serial_numbers: | ||||||
|             # If serial numbers are specified, check that they match! |             # If serial numbers are specified, check that they match! | ||||||
|             try: |             try: | ||||||
|                 serials = extract_serial_numbers(serial_numbers, data['quantity']) |                 serials = extract_serial_numbers(serial_numbers, quantity) | ||||||
|             except DjangoValidationError as e: |             except DjangoValidationError as e: | ||||||
|                 raise ValidationError({ |                 raise ValidationError({ | ||||||
|                     'quantity': e.messages, |                     'quantity': e.messages, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user