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