mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
fix: use name instead of title
This commit is contained in:
@@ -37,11 +37,11 @@ def get_pricing_rules(args, doc=None):
|
|||||||
pricing_rules_all.extend(_get_pricing_rules(apply_on, args, values))
|
pricing_rules_all.extend(_get_pricing_rules(apply_on, args, values))
|
||||||
|
|
||||||
# removing duplicate pricing rule
|
# removing duplicate pricing rule
|
||||||
pricing_rules_title = []
|
pricing_rules_name = []
|
||||||
pricing_rules = []
|
pricing_rules = []
|
||||||
for p in pricing_rules_all:
|
for p in pricing_rules_all:
|
||||||
if p['title'] not in pricing_rules_title:
|
if p['name'] not in pricing_rules_name:
|
||||||
pricing_rules_title.append(p['title'])
|
pricing_rules_name.append(p['name'])
|
||||||
pricing_rules.append(p)
|
pricing_rules.append(p)
|
||||||
|
|
||||||
rules = []
|
rules = []
|
||||||
|
|||||||
Reference in New Issue
Block a user