mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Merge pull request #2626 from SchrodingersGat/quantity-fix
Fix for BOM import
This commit is contained in:
		| @@ -960,6 +960,9 @@ class BomExtractSerializer(serializers.Serializer): | |||||||
|             """ |             """ | ||||||
|             quantity = self.find_matching_data(row, 'quantity', self.dataset.headers) |             quantity = self.find_matching_data(row, 'quantity', self.dataset.headers) | ||||||
|  |  | ||||||
|  |             # Ensure quantity field is provided | ||||||
|  |             row['quantity'] = quantity | ||||||
|  |  | ||||||
|             if quantity is None: |             if quantity is None: | ||||||
|                 row_error['quantity'] = _('Quantity not provided') |                 row_error['quantity'] = _('Quantity not provided') | ||||||
|             else: |             else: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user