mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
Merge pull request #2967 from neilLasrado/price-list
fix - price list none is disabled error
This commit is contained in:
@@ -389,6 +389,7 @@ def apply_price_list_on_item(args):
|
|||||||
return item_details
|
return item_details
|
||||||
|
|
||||||
def get_price_list_currency(price_list):
|
def get_price_list_currency(price_list):
|
||||||
|
if price_list:
|
||||||
result = frappe.db.get_value("Price List", {"name": price_list,
|
result = frappe.db.get_value("Price List", {"name": price_list,
|
||||||
"enabled": 1}, ["name", "currency"], as_dict=True)
|
"enabled": 1}, ["name", "currency"], as_dict=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user