Use room config of linked product on contingent import

This commit is contained in:
Björn Fromme
2021-08-23 16:13:01 +02:00
parent 6a3c4d92ea
commit 54c683702c
@@ -206,7 +206,6 @@ class ContingentImportService implements SingletonInterface, LoggerAwareInterfac
$hotelData['busProId'] = (string) $xmlContingent['idbuspro'];
$hotelData['code'] = (string) $xmlContingent['code'];
$roomTypes = $this->parseRoomTypes($xmlContingent->unterbringungen);
if ($xmlContingent->idbuspro_kontingent_aus) {
$linkedProductId = (int)$xmlContingent->idbuspro_kontingent_aus;
@@ -219,6 +218,8 @@ class ContingentImportService implements SingletonInterface, LoggerAwareInterfac
return 0;
}
$roomTypes = $this->parseRoomTypes($xmlContingent->unterbringungen);
return $this->parseRooms($xmlContingent->kapazitaeten, $hotelData, $roomTypes);
}