Coupon edit / delete + usage guard
Derisk + Dispatch (This Week (May 1 – May 7)) high priority
high confidence
Why
Mat: created an incorrect coupon, can't fix it. Need edit any time, delete only if unused (protect tracking).
How
- Add usage-count read on coupon delete
- Block delete if any redemption exists
- Allow edit always (tracking still keyed by coupon_id)
Related Files
apps/node/src/services/CouponService.tsapps/admin/src/page/coupons/