BOM: Fetch valuation rate of raw materials from Item master if not found based on SLE
This commit is contained in:
parent
6a640b78c4
commit
13435dddcc
@ -225,6 +225,9 @@ class BOM(WebsiteGenerator):
|
||||
|
||||
valuation_rate = flt(last_valuation_rate[0][0]) if last_valuation_rate else 0
|
||||
|
||||
if not valuation_rate:
|
||||
valuation_rate = frappe.db.get_value("Item", args['item_code'], "valuation_rate")
|
||||
|
||||
return valuation_rate
|
||||
|
||||
def manage_default_bom(self):
|
||||
|
Loading…
Reference in New Issue
Block a user