wip: improved insurance selection

This commit is contained in:
Björn Fromme committed 2025-10-02 12:11:23 +02:00
1 parent 8a495346d6
commit d7929dd855
6 files changed
+91 -17

No files matched your search

@@ -81,7 +81,7 @@ class ParticipantEligibilityService
$travelStartDate = CarbonImmutable::instance($bookingDto->travel->dateFrom);
$birthDate = CarbonImmutable::instance($participant->dateOfBirth);
$ageAtTravelStart = $travelStartDate->diffInYears($birthDate);
$ageAtTravelStart = $birthDate->diffInYears($travelStartDate);
$birthYear = (int) $birthDate->format('Y');
$constraintType = $service->ageConstraintType ?? 'absolute_age';