mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
BOM: Fetch valuation rate of raw materials from Item master if not found based on SLE
This commit is contained in:
@@ -225,6 +225,9 @@ class BOM(WebsiteGenerator):
|
|||||||
|
|
||||||
valuation_rate = flt(last_valuation_rate[0][0]) if last_valuation_rate else 0
|
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
|
return valuation_rate
|
||||||
|
|
||||||
def manage_default_bom(self):
|
def manage_default_bom(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user