diff --git a/erpnext/accounts/doctype/pricing_rule/utils.py b/erpnext/accounts/doctype/pricing_rule/utils.py index 56ba6a040dc..6df17e4e2cd 100644 --- a/erpnext/accounts/doctype/pricing_rule/utils.py +++ b/erpnext/accounts/doctype/pricing_rule/utils.py @@ -662,7 +662,7 @@ def get_product_discount_rule(pricing_rule, item_details, args=None, doc=None): if pricing_rule.is_recursive: transaction_qty = sum( [ - row.qty + flt(row.qty) for row in doc.items if not row.is_free_item and row.item_code == args.item_code