Update bom.py (#14524)

This commit is contained in:
Manas Solanki 2018-06-14 17:30:26 +05:30 committed by Nabin Hait
parent dd8fba6783
commit c7afbea708

View File

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