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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user