refactor: derive the bus escort from the travel date
This commit is contained in:
1 parent
2fc9806c69
commit
0e2021e96d
9 files changed
+59
-50
No files matched your search
@@ -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]) {
|
||||
|
||||
Reference in new issue
Block a user