diff --git a/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php b/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php index a6562f03..6f16691d 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/ContingentImportService.php @@ -43,6 +43,11 @@ class ContingentImportService implements SingletonInterface, LoggerAwareInterfac const ROOMCODE_STATUS = 'BelKal'; + /** + * @var string[] + */ + protected $ignoredRoomTypes = ['PDGS', 'TEAM']; + /** * @var ConfigurationManagerInterface */ @@ -240,6 +245,9 @@ class ContingentImportService implements SingletonInterface, LoggerAwareInterfac } $roomType = $roomTypes[$roomTypeBusProId]; $roomCode = $roomType['code']; + if (in_array($roomCode, $this->ignoredRoomTypes, true)) { + continue; + } $availablePax = 0; $capacity = 0; if ($roomType['ctrl'] === true) { @@ -254,9 +262,6 @@ class ContingentImportService implements SingletonInterface, LoggerAwareInterfac $availableRooms = (int) $xmlRoom['frei'] > 0 ? (int) $xmlRoom['frei'] : 0; $availablePax = $availableRooms * $roomType['pax']; } - if ($availablePax === 0 && $roomType['ctrl'] === false) { - //continue; - } $minPrice = (int) $xmlRoom['abpreis']; $minNights = (int) $xmlRoom['abpreis_naechte']; $additionalNightMinPrice = (int) $xmlRoom['abpreis_verlaengerung'];