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'];
|
$available = (int) $roomXml->attributes()['verfuegbar'];
|
||||||
$price = (int) $roomXml->attributes()['preis'];
|
$price = (int) $roomXml->attributes()['preis'];
|
||||||
|
|
||||||
// Skip rooms with zero price and zero availability.
|
// Skip all unavailable rooms
|
||||||
// Hint: Rooms with price, zero availability AND status stop will be
|
if (!$available) {
|
||||||
// marked 'fully booked' by convention
|
|
||||||
if (!$available && !$price) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// Skip rooms with zero price and zero availability.
|
||||||
|
//if (!$available && !$price) {
|
||||||
|
// continue;
|
||||||
|
//}
|
||||||
|
|
||||||
$pax = (int) $roomXml->attributes()['MaxPax'];
|
$pax = (int) $roomXml->attributes()['MaxPax'];
|
||||||
$availableTotal += $available * $pax;
|
$availableTotal += $available * $pax;
|
||||||
|
|||||||
Reference in New Issue
Block a user