fix: update discount when pricing rule is changed

(cherry picked from commit 8338d1d5b4)
This commit is contained in:
venkat102
2024-12-15 22:55:24 +05:30
committed by Mergify
parent 2b27892fc2
commit f1a5000872

View File

@@ -415,6 +415,8 @@ def get_pricing_rule_for_item(args, doc=None, for_validate=False):
"parent": args.parent, "parent": args.parent,
"parenttype": args.parenttype, "parenttype": args.parenttype,
"child_docname": args.get("child_docname"), "child_docname": args.get("child_docname"),
"discount_percentage": 0.0,
"discount_amount": 0,
} }
) )