- Product enum (events, accounts, website, app) on Licence and Install,
Install.publicKey; existing rows are events
- One open licence per product per customer: partial unique index, with a
migration guard that names customers with duplicates (npm run check:hub2
lists them beforehand)
- Licence keys per product (CEH-, CCA-, CCW-, CCP-); free Accounts licence
created with the first other product licence
- Protocol v1 registers Events licences only (409 WRONG_PRODUCT); only Events
licences can be invoiced until billing per customer
- Cross Code Hub in the UI, emails and PDFs
- @crosscode/contracts 1.0.0 vendored (backend/vendor)
- Steps merge into release/2.0, not main (plan updated)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Invoices drafted 14 days before each licence's invoice date and emailed
to the alert email for approval; approved ones go out on their date from
08:00 SA time. Drafts can be edited, recalculated, sent early, put back
to draft or voided; one-off invoices too.
- Annual tier review from the 12-month event-income band; approving a tier
change emails a notice of licence change, applied when the invoice goes out.
Notices can also be sent by hand.
- Founding churches (35% off as its own line), payments with receipts,
statements for any dates.
- Every billing email is styled HTML with a PDF (invoice / tax invoice,
receipt, statement, licence change) and logged per customer.
- Settings -> Billing: business and bank details, VAT (off: plain invoices;
on: VAT-inclusive tax invoices), timing and numbering.
- Migration 20261103111645_invoicing; pdfkit 0.17.2; tests/billing.test.js;
scripts/sample-billing-pdfs.js.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hope Events is now Cross Events. Protocol identifiers (hel1. tokens, CEH- keys)
are unchanged so existing installs keep working.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>