BOM: Fetch valuation rate of raw materials from Item master if not found based on SLE

This commit is contained in:
Nabin Hait 2017-12-15 15:46:43 +05:30
parent 6a640b78c4
commit 13435dddcc

View File

@ -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):