new-site/api/src
justin e379e2b10f CRTC: ERPNext as portal source of truth + harden discount expiry + carrier guide PDF
- checkout.ts: generalize ensureCompliancePortalUser -> ensurePortalUser and
  call it in the CRTC post-payment path so PayPal/crypto/webhook-confirmed CRTC
  orders always get an ERPNext Customer + Website User (the single source of
  truth for portal login/password), matching the compliance fix from the
  PayPal incident. Also flip portal_user_created for canada_crtc/formation.
- canada-crtc.ts: enforce discount active+start/expiry windows, global usage
  limit and applies_to scope server-side at checkout (was active-only), so a
  promo like CANADA200 actually stops working after its expiry.
- scripts/generate_canada_carrier_guide_pdf.py: render the public Canadian
  wholesale carrier/vendor guide PDF (reuses the canonical VENDORS list) to
  site/public/guides/canada-carrier-guide.pdf for the CRTC campaign lead magnet.
2026-06-17 23:34:13 -05:00
..
lib Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
middleware admin: view order PDFs from MinIO (signed forms, prepared filings, evidence) 2026-06-16 00:20:15 -05:00
routes CRTC: ERPNext as portal source of truth + harden discount expiry + carrier guide PDF 2026-06-17 23:34:13 -05:00
config.ts chore(email): decommission SMTP2GO references — local MTA only 2026-06-17 22:46:59 -05:00
create-admin.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
db.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
email.ts chore(email): decommission SMTP2GO references — local MTA only 2026-06-17 22:46:59 -05:00
erpnext-client.ts auth: make ERPNext the single source of truth for customer passwords 2026-06-17 10:09:32 -05:00
fx.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
index.ts ifta: 3-touch business-day cadence + 'I already filed it' suppression 2026-06-13 23:41:14 -05:00
sanctions.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
service-catalog.ts clia: new CLIA certificate renewal service, order page, email template + harvest 2026-06-13 22:10:51 -05:00