fix - price list none is disabled error if price list is made blank in purchase order

This commit is contained in:
Neil Trini Lasrado 2015-03-18 11:40:39 +05:30
parent 3353ad42bc
commit adb1b2ccef

View File

@ -389,6 +389,7 @@ def apply_price_list_on_item(args):
return item_details
def get_price_list_currency(price_list):
if price_list:
result = frappe.db.get_value("Price List", {"name": price_list,
"enabled": 1}, ["name", "currency"], as_dict=True)