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

This commit is contained in:
rohitwaghchaure
2024-11-12 21:59:04 +05:30
committed by GitHub
parent e8882718c9
commit c0ffaa444c

View File

@@ -792,11 +792,8 @@ class BOM(WebsiteGenerator):
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,