Skip all unavailable rooms when importing for the time being
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user