Funktionsbeschreibung
Schwierigkeitsgrad:
Bestellzeilen-Variablen
Eine Bestellung besteht aus Blöcken, und jeder Block enthält Detailzeilen. Das sind zwei verschachtelte Schleifen: orderblocks für die Blöcke und darin detail für die Zeilen. Variablen des Blocks selbst und der Summenzeile werden als {orderblocks.…} geschrieben, Variablen einer Detailzeile als {orderblocks.detail.…}.
Achtung: Für die Verwendung dieser Variablen sind Kenntnisse über Detailzeilen erforderlich. Ein Beispiel finden Sie am Ende dieses Artikels.
Startcode: <!-- BEGIN orderblocks -->
Endcode: <!-- END orderblocks -->
| Variable | Beschreibung | Beispiel |
|---|---|---|
| {orderblocks.detail.BLOCK_ID} | ID des Bestellblocks | |
| {orderblocks.BLOCK_PRIO} | Block-prio | |
| {orderblocks.BLOCK_DESCRIPTION} | Beschreibung des Bestellblocks | |
| {orderblocks.BLOCK_MEMO} | Block-memo | |
| {orderblocks.detail.TYPE} | Typ | |
| {orderblocks.detail.UNIT} | Einheit | |
| {orderblocks.detail.MEMO} | Notiz | |
| {orderblocks.detail.DESCRIPTION} | Beschreibung | |
| {orderblocks.detail.FROM} | ab | |
| {orderblocks.detail.FROMTIME} | Zeit ab | |
| {orderblocks.detail.TILLTIME} | Uhrzeit bis | |
| {orderblocks.detail.TILL} | bis | |
| {orderblocks.detail.CURRENCY} | Währung | |
| {orderblocks.detail.NUMBER_OF_PLACES} | Anzahl der Plätze | |
| {orderblocks.detail.PARTICIPANTS} | Teilnehmer | |
| {orderblocks.detail.SUBTOTAL} | Zwischensumme | |
| {orderblocks.detail.DISCOUNT} | Rabattbeschreibung | |
| {orderblocks.detail.DISCOUNT_TOTAL} | Rabatt gesamt | |
| {orderblocks.detail.PRICE} | Preis | |
| {orderblocks.detail.PERIOD_PRICE} | Zeitraum Preis | |
| {orderblocks.detail.VAT} | MwSt. | |
| {orderblocks.detail.VAT_EXCLUSIVE} | Mehrwertsteuer exklusiv | |
| {orderblocks.detail.VAT_DESCRIPTION} | MwSt. Beschreibung | |
| {orderblocks.detail.NIGHTS} | Nächte | |
| {orderblocks.detail.DAYS} | Tage | |
| {orderblocks.detail.MONTHS} | Anzahl der Monate | |
| {orderblocks.detail.PROD_DESC} | Alias von OBJ_DESC | |
| {orderblocks.detail.COM_DESC} | Beschreibung | |
| {orderblocks.detail.EXT_DESC} | Option-Beschreibung | |
| {orderblocks.detail.PER_DESC} | Zeitraum-Beschreibung | |
| {orderblocks.detail.PART_DESC} | Teilnehmer Beschreibung | |
| {orderblocks.detail.ACCOUNT_CODE} | Hauptbuch | |
| {orderblocks.detail.ACCOUNT_SIGN} | Indikator | |
| {orderblocks.TOTAL_TYPE} | Gesamtzeile: Typ | |
| {orderblocks.TOTAL_BLOCK_ID} | Gesamtzeile: ID des Bestellblocks | |
| {orderblocks.TOTAL_UNIT} | Gesamtzeile: Einheit | |
| {orderblocks.TOTAL_MEMO} | Gesamtzeile: Notiz | |
| {orderblocks.TOTAL_DESCRIPTION} | Gesamtzeile: Beschreibung | |
| {orderblocks.TOTAL_FROM} | Gesamtzeile: Datum ab | |
| {orderblocks.TOTAL_FROMTIME} | Gesamtzeile: Uhrzeit ab | |
| {orderblocks.TOTAL_TILLTIME} | Gesamtzeile: Uhrzeit bis | |
| {orderblocks.TOTAL_TILL} | Gesamtzeile: Datum bis | |
| {orderblocks.TOTAL_CURRENCY} | Gesamtzeile: Währung | |
| {orderblocks.TOTAL_NUMBER_OF_PLACES} | Gesamtzeile: Anzahl der Plätze | |
| {orderblocks.TOTAL_PARTICIPANTS} | Gesamtzeile: Anzahl der Teilnehmer | |
| {orderblocks.TOTAL_TOTAL} | Gesamtzeile: Hauptbetrag | |
| {orderblocks.TOTAL_DISCOUNT} | Gesamtzeile: Beschreibung des Rabatts | |
| {orderblocks.TOTAL_DISCOUNT_TOTAL} | Gesamtzeile: Rabatt | |
| {orderblocks.TOTAL_PERIOD_PRICE} | Gesamtpreis für alle Zeiträume | |
| {orderblocks.TOTAL_VAT} | Gesamtzeile: MwSt. | |
| {orderblocks.TOTAL_VAT_EXCLUSIVE} | Gesamtzeile: exkl. MwSt. | |
| {orderblocks.TOTAL_VAT_DESCRIPTION} | Gesamtzeile: Beschreibung der MwSt. | |
| {orderblocks.TOTAL_NIGHTS} | Gesamtzeile: Anzahl der Nächte | |
| {orderblocks.TOTAL_DAYS} | Gesamtzeile: Anzahl der Tage | |
| {orderblocks.TOTAL_MONTHS} | Gesamtzahl der Monate | |
| {orderblocks.TOTAL_PROD_DESC} | Gesamtzeile: Produktbeschreibung | |
| {orderblocks.TOTAL_COM_DESC} | Gesamtzeile: Beschreibung der Arrangements | |
| {orderblocks.TOTAL_EXT_DESC} | Gesamtzeile: Beschreibung der Option | |
| {orderblocks.TOTAL_PER_DESC} | Gesamtzeile: Beschreibung des Zeitraums | |
| {orderblocks.TOTAL_PART_DESC} | Gesamtzeile: Teilnehmer der Teilnehmer | |
| {orderblocks.TOTAL_ACCOUNT_CODE} | Sachkonto der Gesamtsumme | |
| {orderblocks.TOTAL_ACCOUNT_SIGN} | Soll- oder Habenzeichen der Gesamtsumme |
Ein Beispiel für eine Tabelle mit Zeilen:
<!-- BEGIN orderblocks -->
<h3>{orderblocks.BLOCK_DESCRIPTION}</h3>
<table align="center" border="1" cellpadding="0" cellspacing="1" style="width:100%">
<tbody>
<tr>
<td>Omschrijving</td>
<td>Aantal</td>
<td>Vanaf</td>
<td>Tot</td>
<td>Prijs</td>
</tr>
<!-- BEGIN detail -->
<tr>
<td>{orderblocks.detail.DESCRIPTION}</td>
<td>{orderblocks.detail.NUMBER_OF_PLACES}</td>
<td>{orderblocks.detail.FROM}</td>
<td>{orderblocks.detail.TILL}</td>
<td>{orderblocks.detail.PRICE}</td>
</tr>
<!-- END detail -->
<tr>
<td>{orderblocks.TOTAL_DESCRIPTION}</td>
<td>{orderblocks.TOTAL_NUMBER_OF_PLACES}</td>
<td> </td>
<td> </td>
<td>{orderblocks.TOTAL_TOTAL}</td>
</tr>
</tbody>
</table>
<!-- END orderblocks -->


