Skip to content

Commit

Permalink
fix: consider service item cost in the RM cost of the BOM (backport #…
Browse files Browse the repository at this point in the history
…43962) (#44111)

fix: consider service item cost in the RM cost of the BOM (#43962)

(cherry picked from commit c0ffaa4)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Nov 12, 2024
1 parent 290bdde commit 6e83fec
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 @@ -742,11 +742,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 6e83fec

Please sign in to comment.