fix: fetch fresh room prices from api to avoid calculation mismatch
This commit is contained in:
@@ -247,6 +247,10 @@ class BookingService
|
||||
$this->travelDataService->patchAvailabilities($travelData, $availabilities);
|
||||
}
|
||||
|
||||
// Fetch and patch room prices from API to ensure consistency with booking validation
|
||||
// This prevents price mismatch errors when XML export has stale prices
|
||||
$this->travelDataService->patchRoomPricesFromApi($travelData);
|
||||
|
||||
// Get bookable rooms (Frei or Anfrage with available > 0)
|
||||
$availableRooms = $travelData->getAvailableRooms();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user