2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 13:35:40 +00:00

Merge branch 'inventree:master' into coverage-fixes

This commit is contained in:
Matthias Mair
2022-02-15 01:48:55 +01:00
committed by GitHub
2 changed files with 63 additions and 5 deletions

View File

@ -960,6 +960,9 @@ class BomExtractSerializer(serializers.Serializer):
"""
quantity = self.find_matching_data(row, 'quantity', self.dataset.headers)
# Ensure quantity field is provided
row['quantity'] = quantity
if quantity is None:
row_error['quantity'] = _('Quantity not provided')
else: