Skip to content

Commit

Permalink
fix: update discount when pricing rule is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
venkat102 committed Dec 15, 2024
1 parent 62c553e commit 8338d1d
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 8338d1d

Please sign in to comment.