Changes

Jump to navigation Jump to search

Template Variables

2,584 bytes added, 12:14, 31 May 2020
[[Category:Booking Page]]
[[Category:Guest_Management]]
[[Category:Messaging]]
<div class="heading">Template variables</div>
On this page you find a list of template variables and inormation information on how they are used.
These variables (short codes) will be replaced by the relevant information from each booking. They can be used in every text settings that allows their use . Copy them exactly as shown, including the square brackets and upper case.
[AVPRICE:15] - Average Nightly Price with offset amount
 
[BASEPRICE] - Lodging Price
 
[BASEPRICENUM] - same as [BASEPRICE] with a decimal point and no thousands separator and no currency symbols (for calculation)
 
[BASEGROUPPRICE] - Lodging Price for Group
 
[BASEGROUPPRICENUM] - same as BASEGROUPPRICE] with a decimal point and no thousands separator and no currency symbols (for calculation)
 
[BASEVAT] - Lodging Price vat amount
 
[BASEVATNUM] - same as [BASEVAT] with a decimal point and no thousands separator and no currency symbols (for calculation)
 
[BASEGROUPVAT] - Lodging Price vat amount for Group
 
[BASEGROUPVATNUM] - same as BASEGROUPVAT] with a decimal point and no thousands separator and no currency symbols (for calculation)
 
[AVBASEPRICE] - Average Nightly Lodging Price
 
[AVBASEPRICENUM] - same as [AVBASEPRICE] with a decimal point and no thousands separator and no currency symbols (for calculation)
 
[AVBASEGROUPPRICE] Average Nightly Lodging Price for Group
 
[AVBASEGROUPPRICENUM] - same as [AVBASEGROUPPRICE] with a decimal point and no thousands separator and no currency symbols (for calculation)
[DEPOSIT] - Value in deposit field with currency symbol
[GUESTNAMES] - name of all guests in the booking
 
[GUESTSFIRSTNAMES] - first name of all guests in the booking
 
[GUESTSLASTNAMES] - last name of all guests in the booking
[GUESTSNAMES] - name of all guests listed on the "guests" tab of the booking of the group booking
[REFERENCE] - content of the booking reference field
[STATUS] - status of booking (Values: 0=Cancelled, 1=Confirmed, 2=New, 3=Request, 4=Black) [SUBSTATUS] - sub status of the booking
[FLAG] - Flag
[BOOKINGINFOCODEDATE:infoCode]- the most recent date value of the specified Booking Info Code, "infoCode" in this example
 
[BOOKINGINVOICEEID] - invoicee id assigned to this booking, this comes from the booking invoicee setting, not from the bookings invoice items
 
[BOOKINGINVOICEENAME] - invoicee name assigned to this booking, this comes from the booking invoicee setting, not from the bookings invoice items
[CARDLASTFOUR] - last 4 digits of card
== Booking Group variables ==
=== Custom Booking Group Table ===
create your own booking group list by specifying the columns in the order you want them to appear.
 
for example: [BOOKGROUP:PROP_ROOM_BREF_NAME]
 
column parameters
 
ADDR = Booking address
 
ADUL= the number of adults
BREF = Booking number
 
CITY = Booking city
CHAR = Charges
CHIL = the number of children
 
COUN = Booking country
DEPT = Departure date
 
EMAI = Booking Email
 
FLAG = Booking flag text
 
FNAM = Booking first name
 
 
GADD = Guest address
 
GCIT = Guest city
 
GCOM = Guest company
 
GCOU = Guest country
 
GFLA = Guest flag text
 
GFNA = Guest first name
 
GLNA = Guest last name
 
GMOB = Guest mobile
 
GNAM = Guest full name
 
GEMA = Guest Email
 
GNOT = Guest note
 
GPOS = Guest postcode
 
GREF = Guest Id
 
GSTA = Guest state
 
GTEL = Guest phone
ICAN = Include cancelled bookings
LNAM = Booking last name MOBI = Booking mobile NAME = Guest Booking full name NOTE = Booking note
ONAM = Offer Name
PEOP = the number of guests
 
PHON = Booking phone
 
POST = Booking postcode
PROP = Property name
ROOM = Room name
 
STAT = Booking state
TOTA = Total price
Connect the variables parameters with an underscore.
Examples:
[INWORDS] [INVOICEPAYMENTSNUM] [+] 10 will write out the invoice sum of all payments plus 10
 
 
These template variables are processed in the following order from left to right through the text.
i.e. all the [IF=: will be processed first, then all the [IFIN: etc.
You can use the processing order to construct logic where certain items should be processed before other items.
 
[IF=:
[IFIN:
[IFLIKE:
[IF>:
[IF>=:
[IF<:
[IF<=:
[IFBETWEEN:
== Encoding Template Variables ==

Navigation menu