From 3f53a7facd5ea2a34110e5483a99bc1632ce9122 Mon Sep 17 00:00:00 2001 From: venkat102 Date: Sun, 15 Dec 2024 22:55:24 +0530 Subject: [PATCH] fix: update discount when pricing rule is changed --- erpnext/accounts/doctype/pricing_rule/pricing_rule.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py index cddf3a7fd9e..5463338a009 100644 --- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py +++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py @@ -413,6 +413,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, } ) -- GitLab