-
Created Pricing Rule (PRLE-0003)
- Apply On = Item Group (All Item Groups)
- Selling = Enabled
- Discount = 20%
- Coupon Code Based = Enabled
-
Created Coupon Code
- Code = WEEKEND20
- Linked to PRLE-0003
- Valid dates set
-
Verified in bench console:
frappe.get_meta(‘POS Invoice’)
.get_field(‘coupon_code’).hidden = 0
(field exists and not hidden) -
Checked in browser console:
document.querySelector
(‘[data-fieldname=“coupon_code”]’)
returns null