We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72056c2 commit 4acd39bCopy full SHA for 4acd39b
1 file changed
erpnext/accounts/doctype/pricing_rule/pricing_rule.py
@@ -350,7 +350,7 @@ def filter_pricing_rules(args, pricing_rules):
350
if len(pricing_rules) > 1:
351
rate_or_discount = list(set([d.rate_or_discount for d in pricing_rules]))
352
if len(rate_or_discount) == 1 and rate_or_discount[0] == "Discount Percentage":
353
- pricing_rules = filter(lambda x: x.for_price_list==args.price_list, pricing_rules) \
+ pricing_rules = list(filter(lambda x: x.for_price_list==args.price_list, pricing_rules)) \
354
or pricing_rules
355
356
if len(pricing_rules) > 1 and not args.for_shopping_cart:
0 commit comments