From c7afbea708ab9d9df7d95f1facc95d5a3e462cca Mon Sep 17 00:00:00 2001 From: Manas Solanki Date: Thu, 14 Jun 2018 17:30:26 +0530 Subject: [PATCH] Update bom.py (#14524) --- erpnext/manufacturing/doctype/bom/bom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/manufacturing/doctype/bom/bom.py b/erpnext/manufacturing/doctype/bom/bom.py index 060894c541..7a2aa8a06b 100644 --- a/erpnext/manufacturing/doctype/bom/bom.py +++ b/erpnext/manufacturing/doctype/bom/bom.py @@ -158,7 +158,7 @@ class BOM(WebsiteGenerator): if not self.buying_price_list: frappe.throw(_("Please select Price List")) rate = frappe.db.get_value("Item Price", {"price_list": self.buying_price_list, - "item_code": arg["item_code"]}, "price_list_rate") + "item_code": arg["item_code"]}, "price_list_rate") or 0.0 price_list_currency = frappe.db.get_value("Price List", self.buying_price_list, "currency") @@ -652,4 +652,4 @@ def get_boms_in_bottom_up_order(bom_no=None): bom_list.append(child_bom) count += 1 - return bom_list \ No newline at end of file + return bom_list