Skip to content

Commit

Permalink
Ignore inactive parts (#9125)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6930ae7)
  • Loading branch information
SchrodingersGat committed Feb 21, 2025
1 parent 940abaa commit bd1db39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/InvenTree/part/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2838,6 +2838,9 @@ def update_bom_cost(self, save=True):
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)
Expand Down

0 comments on commit bd1db39

Please sign in to comment.