fix: fetch fresh room prices from api to avoid calculation mismatch
This commit is contained in:
1 parent
cef9be92f3
commit
f28227384d
3 files changed
+67
-1
No files matched your search
@@ -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