2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Display overage values in BOM table

This commit is contained in:
Oliver Walters
2019-05-15 07:23:02 +10:00
parent 68ae38a7d7
commit 8c92c2c2a1
4 changed files with 11 additions and 93 deletions

View File

@ -261,7 +261,7 @@ class Build(models.Model):
try:
item = BomItem.objects.get(part=self.part.id, sub_part=part.id)
return item.quantity * self.quantity
return item.get_required_quantity(self.quantity)
except BomItem.DoesNotExist:
return 0