feat: force booking status 'O' for selection id 1473
addresses #869d79q0r
This commit is contained in:
1 parent
bcf75ce3c3
commit
d207bc74cb
9 files changed
+318
-5
No files matched your search
@@ -218,6 +218,28 @@ class Travel
|
||||
return $services;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether any CRM selection group contains the given selection ID.
|
||||
*
|
||||
* This scans all parsed groups and their selections, regardless of group.
|
||||
*/
|
||||
public function hasSelectionId(int $selectionId): bool
|
||||
{
|
||||
foreach ($this->selectionGroups as $selectionGroup) {
|
||||
if (null === $selectionGroup->selections) {
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach ($selectionGroup->selections as $selection) {
|
||||
if ($selectionId === $selection->id) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves rooms filtered by their IDs.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user