[minor] don't throw error for buying transactions if price list is not selected
This commit is contained in:
parent
87ad6d074a
commit
0b665ac791
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user