Import min price per contingent
This commit is contained in:
@@ -209,6 +209,7 @@ class ContingentImportService implements SingletonInterface
|
||||
}
|
||||
$roomType = $roomTypes[$roomTypeBusProId];
|
||||
$roomCode = $roomType['code'];
|
||||
$availablePax = 0;
|
||||
if ($roomType['ctrl'] === true) {
|
||||
if ((string) $xmlRoom['status'] === 'A') {
|
||||
$statusOnRequest = true;
|
||||
@@ -229,7 +230,7 @@ class ContingentImportService implements SingletonInterface
|
||||
} elseif ($statusOnRequest) {
|
||||
$status = Contingent::STATUS_ONREQUEST;
|
||||
}
|
||||
//TODO: Parse minPrice when available
|
||||
$minPrice = (int) $xmlRoom['abpreis'];
|
||||
$this->db->insert(
|
||||
'tx_epproducts_domain_model_contingent_temp',
|
||||
[
|
||||
@@ -241,6 +242,7 @@ class ContingentImportService implements SingletonInterface
|
||||
'available' => $availablePax,
|
||||
'status' => $status,
|
||||
'date' => $date->format('Y-m-d'),
|
||||
'min_price' => $minPrice,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user