view data fixes

This commit is contained in:
2026-01-23 15:30:23 +01:00
parent e22033be38
commit f8099f04bc
213 changed files with 3466 additions and 3003 deletions

View File

@@ -0,0 +1,10 @@
export class MembershipFeeTypeDisplay {
static format(type: string): string {
switch (type) {
case 'season': return 'Per Season';
case 'monthly': return 'Monthly';
case 'per_race': return 'Per Race';
default: return type;
}
}
}

View File

@@ -0,0 +1,5 @@
export class PayerTypeDisplay {
static format(type: string): string {
return type.charAt(0).toUpperCase() + type.slice(1);
}
}

View File

@@ -0,0 +1,5 @@
export class PaymentTypeDisplay {
static format(type: string): string {
return type.replace('_', ' ').replace(/\b\w/g, l => l.toUpperCase());
}
}

View File

@@ -0,0 +1,10 @@
export class PrizeTypeDisplay {
static format(type: string): string {
switch (type) {
case 'cash': return 'Cash Prize';
case 'merchandise': return 'Merchandise';
case 'other': return 'Other';
default: return type;
}
}
}

View File

@@ -0,0 +1,5 @@
export class TransactionTypeDisplay {
static format(type: string): string {
return type.charAt(0).toUpperCase() + type.slice(1);
}
}