mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 05:28:27 +00:00
Merge pull request #49675 from ShreyasTheNewbie/develop
fix(pricing_rule): handle dict type when checking coupon_code_based
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user