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

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

(cherry picked from commit c0ffaa444c)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-11-12 23:22:18 +05:30
committed by GitHub
parent 290bddea77
commit 6e83fec5ca

View File

@@ -742,11 +742,8 @@ class BOM(WebsiteGenerator):
base_total_rm_cost = 0 base_total_rm_cost = 0
for d in self.get("items"): 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 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( d.rate = self.get_rm_rate(
{ {
"company": self.company, "company": self.company,