Add ticket transfer

Payers and holders can hand a ticket to someone else before the event.
The new holder gets a new QR code (and an inactive account with an
activation link if they're new); the old code stops working and scans
of it, online or in offline sync, say it was transferred. One place can
be split off a shared group ticket. Transfers can be turned off per
event (supervisors can always transfer from At the door), youth events
need the new holder's own consent, and every transfer is audited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 14:23:24 +02:00
co-authored by Claude Opus 5.5
parent e280c7fab5
commit c40542dafd
21 changed files with 596 additions and 10 deletions
@@ -29,6 +29,7 @@ const ACTIONS = [
"scan_lock_released",
"scan_lock_force_released",
"offline_sync",
"ticket_transferred",
] as const;
const ACTION_LABELS: Record<string, string> = {
@@ -52,6 +53,7 @@ const ACTION_LABELS: Record<string, string> = {
scan_lock_released: "Offline scanning ended",
scan_lock_force_released: "Offline lock force-released",
offline_sync: "Offline scans synced",
ticket_transferred: "Ticket transferred",
};
interface AuditLogEntry {