Functional description
Difficulty level:
Additional booking variables
A booking can contain additional sub-bookings (extra bookings attached to a main booking). You show these with the additionaldetail array inside a loop <!-- BEGIN additionaldetail --> … <!-- END additionaldetail -->. The steering variable {S_ADDITIONALDETAIL} indicates whether the table is filled.
| Variable | Description | Example |
|---|---|---|
| {additionaldetail.BOOKING_NUMBER} | Booking number of the sub-booking | 1642 |
| {additionaldetail.PROD_DESC} | Product name of the sub-booking (also as OBJ_DESC) | Rondvaart |
| {additionaldetail.FROMDATE} | Start date | Zaterdag 1 januari 2000 |
| {additionaldetail.FROMTIME} | Start time | 10:00 |
| {additionaldetail.TILLDATE} | End date | Zaterdag 1 januari 2000 |
| {additionaldetail.TILLTIME} | End time | 12:00 |
| {additionaldetail.NUMBER_OF_PLACES} | Number of booked places | 4 |
| {additionaldetail.NUMBER_OF_PARTICIPANTS} | Number of participants | 4 |
| {additionaldetail.PRICE} | Price of the sub-booking | 120,00 |
| {additionaldetail.PAID} | Amount paid | 120,00 |
| {additionaldetail.CURRENCY} | Currency | EUR |
| {additionaldetail.REMARKS} | Customer remark | Graag bij het raam |
| {additionaldetail.OBJ_CITY} | City of the object | Amsterdam |
Example: a table with one row per sub-booking.
<table align="center" border="1" cellpadding="0" cellspacing="1" style="width:100%">
<tbody>
<tr>
<td>Product</td>
<td>Datum</td>
<td>Tijd</td>
<td>Prijs</td>
</tr>
<!-- BEGIN additionaldetail -->
<tr>
<td>{additionaldetail.PROD_DESC}</td>
<td>{additionaldetail.FROMDATE}</td>
<td>{additionaldetail.FROMTIME}</td>
<td>{additionaldetail.PRICE}</td>
</tr>
<!-- END additionaldetail -->
</tbody>
</table>
Above are the most commonly used fields. Each sub-booking is a full booking: all reservation and object variables are available with the prefix additionaldetail.. For the full list see Reservation variables + Object variables.


