[minor] don't throw error for buying transactions if price list is not selected

This commit is contained in:
mbauskar 2017-04-11 02:49:24 -04:00 committed by Nabin Hait
parent 87ad6d074a
commit 0b665ac791

View File

@ -270,7 +270,7 @@ def validate_price_list(args):
if not frappe.db.get_value("Price List",
{"name": args.price_list, args.transaction_type: 1, "enabled": 1}):
throw(_("Price List {0} is disabled or does not exist").format(args.price_list))
else:
elif not args.get("supplier"):
throw(_("Price List not selected"))
def validate_conversion_rate(args, meta):