Skip to content

Commit

Permalink
Merge pull request #44708 from aerele/pricing-rule-discount
Browse files Browse the repository at this point in the history
fix: update discount when pricing rule is changed
  • Loading branch information
ruthra-kumar authored Dec 17, 2024
2 parents 5c9e8fb + 8338d1d commit 878f764
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 @@ -415,6 +415,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 878f764

Please sign in to comment.