wip: additional services with constraints
This commit is contained in:
@@ -83,8 +83,8 @@ class ParticipantRoomChoiceLoader implements ChoiceLoaderInterface
|
||||
--$adjustedOccupancy;
|
||||
}
|
||||
|
||||
$totalAvailableRooms = $roomSelection->quantity;
|
||||
$remainingCapacity = $totalAvailableRooms - $adjustedOccupancy;
|
||||
$totalCapacity = $roomSelection->quantity * $roomSelection->capacity;
|
||||
$remainingCapacity = $totalCapacity - $adjustedOccupancy;
|
||||
|
||||
// Include room if it has capacity OR if it's the participant's current assignment
|
||||
if ($remainingCapacity > 0 || $assignedRoomId === $roomSelection->roomId) {
|
||||
|
||||
Reference in New Issue
Block a user