new-site/site/src
justin d4c4ae003e Fix 6 bugs from code review
Critical:
- Single-order discount used wrong column names (discount_pct/discount_flat_cents
  → discount_type/discount_value). Discounts were silently $0.
- Single-order discount skipped allowed_emails and expires_at checks
- Free orders now set paid_at = NOW()

High:
- Discount usage now tracked in discount_usage table + current_uses incremented
- Flat discount only replaces bundle when flat >= bundle (was always replacing)

Minor:
- Removed unused CDR profile fetch in EntityStep

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-22 02:16:38 -05:00
..
components Fix 6 bugs from code review 2026-05-22 02:16:38 -05:00
layouts Add Umami custom event tracking across all key pages 2026-05-05 05:10:13 -05:00
lib Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
pages Pre-fill email from URL on checkout and compliance checker 2026-05-22 00:49:28 -05:00
partials Rename 'IPES & ISP Registrations' to 'FCC Carrier / ISP Registration' 2026-04-29 08:06:47 -05:00
env.d.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00