mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-14 15:57:41 +00:00
[minor] don't throw error for buying transactions if price list is not selected
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user