Fix incorrect skipping of control type rooms on import

This commit is contained in:
Björn Fromme
2018-12-02 13:57:06 +01:00
parent c31ef96b3c
commit c6ae64f920
@@ -245,7 +245,7 @@ class ContingentImportService implements SingletonInterface
$availableRooms = (int) $xmlRoom['frei'] > 0 ? (int) $xmlRoom['frei'] : 0;
$availablePax = $availableRooms * $roomType['pax'];
}
if ($availablePax === 0) {
if ($availablePax === 0 && $roomType['ctrl'] === false) {
continue;
}
$minPrice = (int) $xmlRoom['abpreis'];