Skip to content

Commit

Permalink
chore: undo unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Jan 20, 2022
1 parent 1abdcf2 commit 3da2cac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/accounts/doctype/pricing_rule/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def sorted_by_priority(pricing_rules, args, doc=None):
if not pricing_rule.get('priority'):
pricing_rule['priority'] = 1

pricing_rule_dict.setdefault(cint(pricing_rule.get("priority")), []).append(pricing_rule)
if pricing_rule.get('apply_multiple_pricing_rules'):
pricing_rule_dict.setdefault(cint(pricing_rule.get("priority")), []).append(pricing_rule)

for key in sorted(pricing_rule_dict):
pricing_rules_list.extend(pricing_rule_dict.get(key))
Expand Down

0 comments on commit 3da2cac

Please sign in to comment.