refactor: derive the bus escort from the travel date

This commit is contained in:
fromme committed 2026-10-16 08:36:54 +02:00
1 parent 2fc9806c69
commit 0e2021e96d
9 files changed
+59 -50

No files matched your search

+5 -3
View File
@@ -18,8 +18,10 @@ use App\Service\Common\PickupOptions;
* - with split, a Reiseleitung takes over each level through the combined profile, one place
* per level, and the plain Reiseleitung keeps the remaining places;
* - Guiding is the guiding fee on every guide-type assignment, not an assignment of its own;
* - Busbegleitung pre-selects the first boarding point on exactly one assignment, the first
* guide-type one - the plain Reiseleitung where there is one.
* - a date with bus travel (boarding points) gets its first boarding point pre-selected as
* Busbegleitung on exactly one assignment, the first guide-type one - the plain Reiseleitung
* where there is one. Taken from the date, not the matrix: bus travel varies between the
* dates of one product.
*/
final class AssignmentPlanner
{
@@ -61,7 +63,7 @@ final class AssignmentPlanner
}
}
$pickup = true === $rule->isBusEscort() ? $this->firstPickup($destination) : null;
$pickup = $this->firstPickup($destination);
$planned = [];
foreach ($roles as [$role, $places]) {