chore: cleanup, updated docs

This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent a0d5768752
commit 9c6f4d59b3
3 changed files with 42 additions and 17 deletions
+3 -3
View File
@@ -59,7 +59,7 @@
- `BookingFingerprintService` - Dirty state detection for edit mode
- `TravelDataService` - API integration and caching
- `ParticipantCardDataService` - Card display data
- `InsuranceMatchingService` - Insurance eligibility and auto-reassignment
- `InsuranceService` - Consolidated insurance operations (eligibility, type filtering, reassignment) with request-scoped caching
- `RoomAssignmentService` - Automatic room assignment
## Critical Patterns
@@ -191,7 +191,7 @@ Critical for correct pricing and auto-reassignment:
### Bulk Insurance Booking
- Applicant enables bulk → applies to all participants
- `BulkInsuranceBookingCondition` hides dependent participant insurance fields
- Uses `InsuranceMatchingService::batchAssignInsuranceToParticipants()` for price tier matching
- Uses `InsuranceService::batchAssignInsuranceToParticipants()` for price tier matching
## Data Flow
@@ -241,7 +241,7 @@ Critical for correct pricing and auto-reassignment:
- **Insurance IDs**: Always use strings, not integers (e.g., `'100'` not `100`)
- **Room properties**: Use `$label` property, not `$name`
- **Participant names**: Index 0 expects "Anmelder:in", others expect "Teilnehmer:in N" (1-based)
- **Mock dependencies**: Ensure all constructor dependencies have mocks (especially new ones like `InsuranceLoader`, `InsuranceTypeFilterService`)
- **Mock dependencies**: Ensure all constructor dependencies have mocks. Note: `InsuranceService` is stateless with no dependencies (no mocking required)
- **Insurance mutability**: In edit mode, insurances are always readonly (API limitation)
## File Locations