Skip to content

Commit

Permalink
fix: consider service item cost in the RM cost of the BOM (#43962)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Nov 12, 2024
1 parent e888271 commit c0ffaa4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions erpnext/manufacturing/doctype/bom/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,11 +792,8 @@ def calculate_rm_cost(self, save=False):
base_total_rm_cost = 0

for d in self.get("items"):
if not d.is_stock_item and self.rm_cost_as_per == "Valuation Rate":
continue

old_rate = d.rate
if not self.bom_creator:
if not self.bom_creator and d.is_stock_item:
d.rate = self.get_rm_rate(
{
"company": self.company,
Expand Down

0 comments on commit c0ffaa4

Please sign in to comment.