Functional description
Difficulty level:
Package variables
A package is a booking that consists of several sub-bookings (for example a day-out with a boat trip + lunch + museum). You show the variables of the underlying sub-bookings with the combidetail array inside a loop <!-- BEGIN combidetail --> … <!-- END combidetail -->. The steering variable {S_COMBIDETAIL} indicates whether the package table is filled.
| Variable | Description | Example |
|---|---|---|
| {combidetail.BOOKING_NUMBER} | Booking number of the sub-booking | 1642 |
| {combidetail.PROD_DESC} | Product name of the sub-booking (also as OBJ_DESC) | Rondvaart |
| {combidetail.FROMDATE} | Start date | Zaterdag 1 januari 2000 |
| {combidetail.FROMTIME} | Start time | 10:00 |
| {combidetail.TILLDATE} | End date | Zaterdag 1 januari 2000 |
| {combidetail.TILLTIME} | End time | 12:00 |
| {combidetail.NUMBER_OF_PLACES} | Number of booked places | 4 |
| {combidetail.NUMBER_OF_PARTICIPANTS} | Number of participants | 4 |
| {combidetail.PRICE} | Price of the sub-booking | 120,00 |
| {combidetail.PAID} | Amount paid | 120,00 |
| {combidetail.CURRENCY} | Currency | EUR |
| {combidetail.REMARKS} | Customer remark | Graag bij het raam |
| {combidetail.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 combidetail -->
<tr>
<td>{combidetail.PROD_DESC}</td>
<td>{combidetail.FROMDATE}</td>
<td>{combidetail.FROMTIME}</td>
<td>{combidetail.PRICE}</td>
</tr>
<!-- END combidetail -->
</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 combidetail. instead of their default prefix. For the full list see Reservation variables + Object variables.


