Skip all unavailable rooms when importing for the time being

This commit is contained in:
Björn Fromme
2020-03-13 14:11:24 +01:00
parent 7606caa2ac
commit f43fdd84f3
@@ -552,12 +552,14 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface
$available = (int) $roomXml->attributes()['verfuegbar'];
$price = (int) $roomXml->attributes()['preis'];
// Skip rooms with zero price and zero availability.
// Hint: Rooms with price, zero availability AND status stop will be
// marked 'fully booked' by convention
if (!$available && !$price) {
// Skip all unavailable rooms
if (!$available) {
continue;
}
// Skip rooms with zero price and zero availability.
//if (!$available && !$price) {
// continue;
//}
$pax = (int) $roomXml->attributes()['MaxPax'];
$availableTotal += $available * $pax;