feat: show room prices in room assignment form field
This commit is contained in:
@@ -152,9 +152,9 @@ class BookingDataProcessor
|
||||
$room = $availableRooms[$bookingRoom->id] ?? null;
|
||||
if (null !== $room && null !== $bookingRoom->totalCount && $bookingRoom->totalCount > 0) {
|
||||
$roomSelection = new RoomSelectionDto();
|
||||
$roomSelection->roomId = $bookingRoom->id;
|
||||
$roomSelection->roomLabel = $room->label;
|
||||
$roomSelection->roomPrice = $room->price;
|
||||
$roomSelection->id = $bookingRoom->id;
|
||||
$roomSelection->label = $room->label;
|
||||
$roomSelection->price = $room->price;
|
||||
$roomSelection->quantity = $bookingRoom->totalCount; // Actual quantity from booking XML (anzahl)
|
||||
$dto->roomSelections[] = $roomSelection;
|
||||
}
|
||||
|
||||
@@ -451,7 +451,7 @@ class BookingPayloadBuilder
|
||||
$roomQuantities = [];
|
||||
foreach ($bookingDto->roomSelections as $selection) {
|
||||
if ($selection->quantity > 0) {
|
||||
$roomQuantities[$selection->roomId] = $selection->quantity;
|
||||
$roomQuantities[$selection->id] = $selection->quantity;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user