Merge pull request #49675 from ShreyasTheNewbie/develop

fix(pricing_rule): handle dict type when checking coupon_code_based
This commit is contained in:
ruthra kumar
2025-09-23 10:39:06 +05:30
committed by GitHub

View File

@@ -452,7 +452,7 @@ def get_pricing_rule_for_item(args, doc=None, for_validate=False):
get_pricing_rule_items(pricing_rule, other_items=fetch_other_item) or []
)
if pricing_rule.coupon_code_based == 1:
if pricing_rule.get("coupon_code_based") == 1:
if not args.coupon_code:
continue
coupon_code = frappe.db.get_value(