Merge branch 'master' into develop

This commit is contained in:
Ameya Shenoy
2018-06-15 09:35:06 +00:00
11 changed files with 54 additions and 33 deletions

View File

@@ -162,7 +162,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")