fix: fetch fresh room prices from api to avoid calculation mismatch

This commit is contained in:
Björn Fromme
2026-03-16 12:02:28 +01:00
parent cef9be92f3
commit f28227384d
3 changed files with 67 additions and 1 deletions
+4
View File
@@ -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();