feat: simplify handling of ski pass service
This commit is contained in:
@@ -36,10 +36,8 @@ class BookingEditDto implements BookingDtoInterface
|
||||
$participantData->courses = $booking
|
||||
->getAdditionalServicesForParticipantByGroup($index, Constants::TOKEN_COURSES);
|
||||
|
||||
// Skipass is single selection - take first item from array or null
|
||||
$skipasses = $booking
|
||||
->getAdditionalServicesForParticipantByGroup($index, Constants::TOKEN_SKI_PASS);
|
||||
$participantData->skiPass = !empty($skipasses) ? $skipasses[0] : null;
|
||||
// Skipass is single selection - use dedicated method
|
||||
$participantData->skiPass = $booking->getSkiPassForParticipant($index);
|
||||
|
||||
$participantData->additionalServices = $booking
|
||||
->getAdditionalServicesForParticipantByGroup($index, Constants::TOKEN_ADDITIONAL);
|
||||
|
||||
Reference in New Issue
Block a user