Merge pull request #44754 from frappe/mergify/bp/version-14-hotfix/pr-44708

fix: update discount when pricing rule is changed (backport #44708)
This commit is contained in:
ruthra kumar
2024-12-17 21:10:41 +05:30
committed by GitHub

View File

@@ -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,
}
)