feat: selectable drop-offs for inbound bus travel
This commit is contained in:
@@ -45,6 +45,7 @@ class BookingExportService
|
||||
'Hinfahrt',
|
||||
'Rückfahrt',
|
||||
'Zustieg',
|
||||
'Ausstieg',
|
||||
'Parkplatz',
|
||||
'Versicherung',
|
||||
'Sammelversicherung',
|
||||
@@ -133,13 +134,13 @@ class BookingExportService
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($travel->pickupsOutbound as $pickup) {
|
||||
foreach ($travel->pickups as $pickup) {
|
||||
if (null !== $pickup->id) {
|
||||
$pickups[$pickup->id] = $pickup->getLabel();
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($travel->pickupsInbound as $pickup) {
|
||||
foreach ($travel->dropOffs as $pickup) {
|
||||
if (null !== $pickup->id) {
|
||||
$pickups[$pickup->id] = $pickup->getLabel();
|
||||
}
|
||||
@@ -242,6 +243,7 @@ class BookingExportService
|
||||
$this->resolveService($services['transportationOutbound'] ?? null, $lookups['services']),
|
||||
$this->resolveService($services['transportationInbound'] ?? null, $lookups['services']),
|
||||
$this->resolvePickup($services['pickup'] ?? null, $lookups['pickups']),
|
||||
$this->resolvePickup($services['dropOff'] ?? null, $lookups['pickups']),
|
||||
$this->formatBoolean($services['parking'] ?? false),
|
||||
$this->resolveService($services['insurance'] ?? null, $lookups['services']),
|
||||
$this->formatBoolean($services['bulkInsuranceBooking'] ?? false),
|
||||
|
||||
Reference in New Issue
Block a user