mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-04 06:18:48 +00:00
Ignore inactive parts (#9125)
This commit is contained in:
parent
ab4eff19d3
commit
6930ae7122
@ -2792,6 +2792,9 @@ class PartPricing(common.models.MetaMixin):
|
||||
for sub_part in bom_item.get_valid_parts_for_allocation():
|
||||
# Check each part which *could* be used
|
||||
|
||||
if sub_part != bom_item.sub_part and not sub_part.active:
|
||||
continue
|
||||
|
||||
sub_part_pricing = sub_part.pricing
|
||||
|
||||
sub_part_min = self.convert(sub_part_pricing.overall_min)
|
||||
|
Loading…
x
Reference in New Issue
Block a user