Skip to content

Commit

Permalink
fix: update discount when pricing rule is changed
Browse files Browse the repository at this point in the history
(cherry picked from commit 8338d1d)
  • Loading branch information
venkat102 authored and mergify[bot] committed Dec 17, 2024
1 parent 13be763 commit 0a7832d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/accounts/doctype/pricing_rule/pricing_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ def get_pricing_rule_for_item(args, doc=None, for_validate=False):
"parent": args.parent,
"parenttype": args.parenttype,
"child_docname": args.get("child_docname"),
"discount_percentage": 0.0,
"discount_amount": 0,
}
)

Expand Down

0 comments on commit 0a7832d

Please sign in to comment.