Add ids to services, add pax to rooms in export
This commit is contained in:
@@ -259,7 +259,7 @@ class ProductRepository extends AbstractRepository
|
||||
'date.services_general dateServicesGeneral', 'date.skipass_included dateSkipassIncluded',
|
||||
'date.bus_pro_id dateBusProId', 'date.hotel_bus_pro_id hotelBusProId', 'date.pickups pickups',
|
||||
'room.uid as roomUid', 'room.bus_pro_id roomBusProId', 'room.code roomCode', 'room.name roomName',
|
||||
'room.price roomPrice', 'date.discount roomDiscount', 'date.bus_price busPrice',
|
||||
'room.price roomPrice', 'room.pax roomPax', 'date.discount roomDiscount', 'date.bus_price busPrice',
|
||||
'room.services roomOptionalServices', 'room.nights roomNights', 'room.available roomAvailable'
|
||||
)
|
||||
->from('tx_epproducts_domain_model_date', 'date')
|
||||
|
||||
@@ -37,6 +37,7 @@ class Room
|
||||
$room = [];
|
||||
|
||||
$room['@id'] = $array['roomBusProId'];
|
||||
$room['@pax'] = $array['roomPax'];
|
||||
$room['@code'] = $array['roomCode'];
|
||||
$room['name'] = $array['roomName'];
|
||||
$room['price'] = $array['roomPrice'];
|
||||
|
||||
@@ -58,7 +58,12 @@ class Services
|
||||
];
|
||||
foreach ($categoryData as $row)
|
||||
{
|
||||
$category['service'][] = $row;
|
||||
$service = [
|
||||
'@id' => $row['idBusPro'],
|
||||
'label' => $row['label'],
|
||||
'price' => $row['price'],
|
||||
];
|
||||
$category['service'][] = $service;
|
||||
}
|
||||
$services['category'][] = $category;
|
||||
}
|
||||
|
||||
@@ -627,6 +627,7 @@ class ImportService implements SingletonInterface
|
||||
}
|
||||
|
||||
$data[$type][] = [
|
||||
'idBusPro' => (int) $service->attributes()['idbuspro'],
|
||||
'label' => $label,
|
||||
'price' => number_format($price, 2, ',', '.'),
|
||||
];
|
||||
|
||||
@@ -135,6 +135,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Bezeichnung</th>
|
||||
<th>Personen</th>
|
||||
<th>Preis</th>
|
||||
<th>verfügbar</th>
|
||||
</tr>
|
||||
@@ -143,6 +144,7 @@
|
||||
<f:for each="{date.rooms.room}" as="room">
|
||||
<tr>
|
||||
<td>{room.name}</td>
|
||||
<td>{v:variable.get(name: 'room.@pax')}</td>
|
||||
<td>{room.price} €</td>
|
||||
<td>{room.available}</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user