2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-03 22:08:49 +00:00

Ignore inactive parts (#9125)

This commit is contained in:
Oliver 2025-02-21 20:55:22 +11:00 committed by GitHub
parent ab4eff19d3
commit 6930ae7122
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)