Changes

Jump to navigation Jump to search

Template Variables

17,860 bytes added, 9 February
[PROPERTYTEMPLATE8] - Property Template 8
 
[PROPERTYTEMPLATE1BR] - Property Template 1 with line breaks
 
[PROPERTYTEMPLATE2BR] - Property Template 2 with line breaks
 
[PROPERTYTEMPLATE3BR] - Property Template 3 with line breaks
 
[PROPERTYTEMPLATE4BR] - Property Template 4 with line breaks
 
[PROPERTYTEMPLATE5BR] - Property Template 5 with line breaks
 
[PROPERTYTEMPLATE6BR] - Property Template 6 with line breaks
 
[PROPERTYTEMPLATE7BR] - Property Template 7 with line breaks
 
[PROPERTYTEMPLATE8BR] - Property Template 8 with line breaks
[BOOKINGCOMHOTELID] - booking.com hotel id
[ROOMNAMEOFFERBR] - room names of all booked rooms with offer name with line break
[ROOMNAMEOFFERINC] room names of all booked rooms with offer name inklincl. cancelled bookings
[ROOMNAMEOFFERINCBR] - room names of all booked rooms with offer name with line break
[ROOMTEMPLATE8] - ROOM Template 8
[ROOMTEMPLATE1BR] - ROOM Template 1 with linkbreak [ROOMTEMPLATE2BR] - ROOM Template 2 with linkbreak [ROOMTEMPLATE3BR] - ROOM Template 3 with linkbreak [ROOMTEMPLATE4BR] - ROOM Template 4 with linkbreak [ROOMTEMPLATE5BR] - ROOM Template 5 with linkbreak [ROOMTEMPLATE6BR] - ROOM Template 6 with linkbreak [ROOMTEMPLATE7BR] - ROOM Template 7 with linkbreak [ROOMTEMPLATE8BR] - ROOM Template 8 with linkbreak [ROOMMETAAUXTEXT] - room meta auxiliary text setting for first booked room{{#fas:cog}} (SETTINGS) PROPERTIES > ROOMS > SETUP > DISPLAY
[ROOMMETAAUXTEXTS] - room meta auxiliary text setting for all booked rooms
[ROOMMETAAUXTEXTSINC] - room auxiliary text setting for all booked rooms, incl. cancelled bookings
[INTERNALROOMNAME] - internal room name as used in the control panel, this is not the translated room name shown on the booking page
[OFFERID] - ID of the boked booked offer
[OFFERNAME] - booked offer name for all booked rooms
[OFFERNAME1] - offer name for this booked room only
[OFFERNAMEINC] - offer name for this booked room only inluding including cancelled bookings
[OFFERDESCRIPTION1] - offer description 1 for all booked rooms
[OFFERDESCRIPTION1INC] - offer description 1 for all booked rooms inklincl. cancelled
[OFFERDESCRIPTION2] - offer description 2 for all booked rooms
[OFFERDESCRIPTION2INC] - offer description 2 for all booked rooms inklincl. cancelled
[OFFERDESCRIPTION1-1] - offer description 1 for this booked room
[OFFERSUMMARYINC] - summary offers including cancelled bookings
 
[UNITID1] - ID of the unit (number) for this booking number (coming soon)
[UNITNAME] - unit names of all the assigned room types in the booking group (cancelled bookings are not shown)
[UNITNAMEINC] - unit names of all the assigned room types in the booking group including cancelled bookings
[UNITNAME:1] - additional information (first) about the unit for all the assigned room types in the booking group (cancelled bookings are not shown) [UNITNAME:2] - additional information (second) about the unit for all the assigned room types in the booking group (cancelled bookings are not shown)
[UNITNAME1] - unit name of the assigned room for this booking number
[UNITNAME1:1] - additional information about the assigned room for this booking number / add the additional information on each line after a | symbol where you set the unit names
[UNITSTATUS1] - the status if of the unit
[ROOMDESCRIPTION] - Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[LEAVINGDAYAVAIL] - returns yes or no, can be used to trigger an Auto Action
 
[NUMROOMSAVAIL] - returns the number of available rooms (-1 if overbooked), can be used to trigger an Auto Action
[ROOMRACKRATENUM] - Rack Rate from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[RANDOM8] - a 8 digit random number seeded from the booking number
 
[VOUCHERPHRASE1] - Voucher Phrase - change the number to the voucher you want to print out.
 
[VOUCHERAMOUNT1] - Voucher Amount - change the number to the voucher you want to print out.
=== Content from "Info" tab ===
[BOOKINGINFOCODETEXT:infoCode] - the most recent Text value of the specified Booking Info Code, "infoCode" in this example
[BOOKINGINFOCODEDATE:infoCode]- the most recent date value of the specified Booking Info Code, "infoCode" in this example , supports custom date/time formats {%A, %e %B, %Y} after the infoCode
[INTERNALNOTES] - content from "Internal Notes" on the Info Tab
[GUESTMOBILENUM] - guests mobile number with all non-numeric characters removed
[PHONELAST1MOBILELAST1] - last digit of the guests phone mobile number , if guest phone mobile is empty it will use the guests mobile phone numberwill be used.
[PHONELAST2MOBILELAST2] - last 2 digits of the guests phone mobile number , if guest phone mobile is empty it will use the guests mobile phone numberwill be used.
[PHONELAST3MOBILELAST3] - last 3 digits of the guests phone mobile number , if guest phone mobile is empty it will use the guests mobile phone numberwill be used.
[PHONELAST4MOBILELAST4] - last 4 digits of the guests phone mobile number , if guest phone mobile is empty it will use the guests mobile phone numberwill be used.
[MOBILELAST5] last 5 digits of the guests mobile number, if mobile is empty the guests phone number will be used. [MOBILELAST6] last 6 digits of the guests mobile number, if mobile is empty the guests phone number will be used. [PHONELAST1] - last digit of the guests phone number if guest phone is empty it will use the guests mobile number [PHONELAST2] - last 2 digits of the guests phone number if guest phone is empty it will use the guests mobile number [PHONELAST3] - last 3 digits of the guests phone number if guest phone is empty it will use the guests mobile number [PHONELAST4] - last 4 digits of the guests phone number if guest phone is empty it will use the guests mobile number [PHONELAST5] - last 5 digits of the guests phone number if guest phone is empty it will use the guests mobile number
[PHONELAST6] - last 6 digits of the guests phone number if guest phone is empty it will use the guests mobile number
 
[GUESTSMS:49] - attempt to convert the guest mobile number into a format suitable for SMS, if country code is missing add the one supplied in the template variable, if mobile number is empty use guest phone number instead.
[GUESTCOMPANY] - company name
[GUESTCUSTOMQ1] - answer to custom question 1
 
[GUESTCUSTOMQ1BR] - answer to custom question 1 with line breaks <BR>
[GUESTCUSTOMQ2] - answer to custom question 2
 
[GUESTCUSTOMQsBR] - answer to custom question 2 with line breaks <BR>
[GUESTCUSTOMQ3] - answer to custom question 3
 
[GUESTCUSTOMQ3BR] - answer to custom question 3 with line breaks <BR>
[GUESTCUSTOMQ4] - answer to custom question 4
 
[GUESTCUSTOMQ4BR] - answer to custom question 4 with line breaks <BR>
[GUESTCUSTOMQ5] - answer to custom question 5
 
[GUESTCUSTOMQ5BR] - answer to custom question 5 with line breaks <BR>
[GUESTCUSTOMQ6] - answer to custom question 6
 
[GUESTCUSTOMQ6BR] - answer to custom question 6 with line breaks <BR>
[GUESTCUSTOMQ7] - answer to custom question 7
 
[GUESTCUSTOMQ7BR] - answer to custom question 7 with line breaks <BR>
[GUESTCUSTOMQ8] - answer to custom question 8
 
[GUESTCUSTOMQ8BR] - answer to custom question 8 with line breaks <BR>
[GUESTCUSTOMQ9] - answer to custom question 9
 
[GUESTCUSTOMQ9BR] - answer to custom question 9 with line breaks <BR>
[GUESTCUSTOMQ10] - answer to custom question 10
 
[GUESTCUSTOMQ10BR] - answer to custom question 10 with line breaks <BR>
[REFERENCE] - content of the booking reference field
[APISOURCETEXT] - human readable name of the channel
[BOOKINGDATEBOOKINGIP] - booking dateip address of booker's computer
[BOOKINGTIMEDATEAPIMESSAGE] - booking date and timeapi message sent by originating channel
[BOOKINGDATEYYYY-MM-DDBOOKINGDATE] - booking date in YYYY-MM-DD formatguests language
[BOOKINGIPBOOKINGTIMEDATE] - ip address of booker's computerbooking date and time in guests language
[APIMESSAGEBOOKINGDATEYYYY-MM-DD] - api message sent by originating channelbooking date in YYYY-MM-DD format see date and time variables below for custom time formats.
=== Content from "Charges and Payments" tab (also see "Invoice/Invoicee/Room") ===
[COMMISSIONNUM] - As per [COMMISSION] but the value is displayed with a decimal point and no thousands separator and no currency symbols (for calculation)
[COMMISSIONGROUP] - Value of the commission of the complete group bookingwith currency symbol [COMMISSIONGROUPNUM] - As per [COMMISSIONGROUP] but the value is displayed with a decimal point and no thousands separator and no currency symbols (for calculation)
[GUESTVOUCHER] - voucher code used with booking
[GUESTSADDRESSSBR1INC] - address of the first guest on the "guests" tab of this booking group incl. cancelled
===Cancellation, Management and Guest Login===[CANCELURLGUESTSAFULLADDRESSSBR1INC] - URL to view the first address including city, postcode, sate and cancel country from the guests tab of the booking including cancelled bookings in international format
[CANCELDATEGUESTSAFULLADDRESSSBR1] - date until when the first address including city, postcode, sate and country from the guests tab of the booking is cancellable displaying a phrasein International format
[CANCELDATEYYYY-MM-DDGUESTSBFULLADDRESSSBR1INC] - date until when the first address including city, postcode, sate and country from the guests tab of the booking is cancellable displaying a date. If the date is including cancelled bookings in the past 00-00-0000 will be shown European format
[DAYSTOCANCELGUESTSBFULLADDRESSSBR1] - number the first address including city, postcode, sate and country from the guests tab of days until the booking can be cancelled / Anzahl der Tage bis zu denen stroniert werden kannin European format
[GUESTLOGINGUESTSNUMBOOKINGS1] - URL to view the total number of bookingsmade by the first guest, a group booking counts as one booking.
[TURNOVERDAYSGUESTSNUMSTAYS1] - days until next arrival into the same unittotal number of bookings not cancelled and not in the future made by the first guest, a group booking counts as one booking.
==Date and Time==[GUESTSCUSTOMQ1S] - answer to custom question 1 for all guests
Many date template variables support PHP strftime format strings between {} brackets [GUESTSCUSTOMQ1SINC] - answer to create custom date formats. Information on PHP strftime strings is available at [http://php.net/manual/en/function.strftime.php http://php.net/manual/en/function.strftime.php]question 1 for all guests including cancelled bookings
[GUESTSCUSTOMQ2S] - answer to custom question 2 for all guests
[CURRENTDATEGUESTSCUSTOMQ2SINC] - current dateanswer to custom question 2 for all guests including cancelled bookings
[CURRENTDATEYYYY-MM-DDGUESTSCUSTOMQ3S] - current date in YYYY-MM-DD formatanswer to custom question 3 for all guests
[CURRENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ3SINC] - current dateanswer to custom question 3 for all guests including cancelled bookings
[CURRENTDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ4S] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 4 for all guests
[CURRENTTIMEGUESTSCUSTOMQ4SINC] - current time and the display can be any valid PHP strftime format string.answer to custom question 4 for all guests including cancelled bookings
[CURRENTTIME:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ5S] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 5 for all guests
[DAYSTOCHECKINGUESTSCUSTOMQ5SINC] - number of days until check-inanswer to custom question 5 for all guests including cancelled bookings
[INADVANCEGUESTSCUSTOMQ6S] - number of days between booking and check-inanswer to custom question 6 for all guests
[DAYSBETWEEN:2019-11-01:2019-11-10GUESTSCUSTOMQ6SINC] - this template variable will calculate the number of days between the :: the dates need answer to be in yyyy-mm-dd format. Template variables can be used custom question 6 for calculation.all guests including cancelled bookings
Example: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}GUESTSCUSTOMQ7S]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check -in and today. answer to custom question 7 for all guests
[FIRSTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ7SINC] - answer to custom question 7 for all guests including cancelled bookings first night booked
[FIRSTNIGHT:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 8 for all guests
[LASTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ8SINC] - last night bookedanswer to custom question 8 for all guests including cancelled bookings
[LASTNIGHT:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ9S] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 9 for all guests
[LEAVINGDAY:{%A, %e %B, %Y}GUESTSCUSTOMQ9SINC] - answer to custom question 9 for all guests including cancelled bookings check-out
[LEAVINGDAY:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ10S] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 10 for all guests
[BOOKINGDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ10SINC] - booking dateanswer to custom question 10 for all guests including cancelled bookings
===Cancellation, Management and Guest Login===[BOOKINGDATE:+1day{%A, %e %B, %Y}CANCELLEDTIME] - optional date offset and display format. The offset can be any plus or minus any number of days and when the display can be any valid PHP strftime format string.booking was cancelled
[MODIFYDATECANCELLEDTIME:{%A, %e %B, %Y}] - last booking modification date/time, when the booking was cancelled display can be any valid PHP strftime format string.
[PAYMENTDATE:{%A, %e %B, %Y}CANCELURL] - most recent payment dateURL to view and cancel bookings
[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000CANCELDATE] - optional date offset and display format. The offset can be any plus or minus any number of days and until when the display can be any valid PHP strftime format string. The second parameter specifies the payment to show, 0 or missing means the most recent payment. The third parameter specifies the invoicee.booking is cancellable displaying a phrase
[FORMATDATE:[any template variable that creates CANCELDATEYYYY-MM-DD] - date until when the booking is cancellable displaying a date]{%A, %e %B, %Y}] - format . If the date is in the strftime format. The date value could past 00-00-0000 will be included by inserting a different template variable containing a date.shown
== Booking Group variables ===== Custom Booking Group Table ===create your own [DAYSTOCANCEL] - number of days until booking group list by specifying the columns in the order you want them to appear.can be cancelled
for example: [BOOKGROUP:PROP_ROOM_BREF_NAMECANCELUNTIL] - shows the number of days between check-in and the last day which can be cancelled. If guest can always cancel it shows 0, if guest can never cancel it shows 9999
column parameters[GUESTLOGIN] - URL to view bookings
100% = 100% width[TURNOVERDAYS] - days until next arrival into the same unit not considering black bookings
ADDR = Booking address[TURNOVERDAYSB] - days until next arrival into the same unit considering black bookings
ADUL= the number [VACANTDAYS] days from previous checkout to check in of adultscurrent booking not considering black bookings
ARIV = Arrival date[VACANTDAYSB] days from previous checkout to check in of current booking considering black bookings
BOPR = Bold prices=Date and Time==
BREF = Booking number[CURRENTDATE] - current date
CITY = Booking city [CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format
CHAC = Charges with currency symbol[CURRENTDATE:{%A, %e %B, %Y}] - current date
CHAR = Charges[CURRENTDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
CHIL = Number of children[CURRENTTIME] - current time and the display can be any valid PHP strftime format string.
COUN = Booking country [CURRENTTIME:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
DEPT = Departure date[DAYSTOCHECKIN] - number of days until check-in
EMAI = Booking Email [INADVANCE] - number of days between booking and check-in
EXSP = extra space [DAYSBETWEEN:2019-11-01:2019-11-10] - this template variable will calculate the number of days between rowsthe :: the dates need to be in yyyy-mm-dd format. Template variables can be used for calculation.
FLAG = Booking flag textExample: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today.
FNAM = Booking [FIRSTNIGHT:{%A, %e %B, %Y}] - first namenight booked
GADD = Guest address[FIRSTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
GCIT = Guest city[LASTNIGHT:{%A, %e %B, %Y}] - last night booked
GCOM = Guest company[LASTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
GCOU = Guest country[LEAVINGDAY:{%A, %e %B, %Y}] - check-out
GFLA = Guest flag text[LEAVINGDAY:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
GFNA = Guest first name [BOOKINGDATE:{%A, %e %B, %Y}] - booking date
GLNA = Guest last name[BOOKINGDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
GMOB = Guest mobile[MODIFYDATE:{%A, %e %B, %Y}] - last booking modification date/time, the display can be any valid PHP strftime format string.
GNAM = Guest full name[PAYMENTDATE:{%A, %e %B, %Y}] - most recent payment date
GEMA = Guest Email[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format. The second parameter specifies the payment to show, 0 or missing means the most recent payment. The third parameter specifies the invoicee.
GNOT = Guest note[AUTHORIZEUNTIL] - date until which a card is authorized, this is extracted from the most recent authorize booking info code.
GPOS = Guest postcode[AUTHORIZEUNTIL{%A, %e %B, %Y}] - custom format date until which a card is authorized, this is extracted from the most recent authorize booking info code.
GREF = Guest Id[FORMATDATE:[any template variable that creates a date]{%A, %e %B, %Y}] - custom format the date. The date value could be included by inserting a different template variable containing a date.
GSTA = Guest state
GTEL = Guest phoneThe following codes can be used in any order between the {} brackets to create custom time and date formats.
ICAN = Include cancelled bookings %a An abbreviated textual representation of the day Sun through Sat %A A full textual representation of the day Sunday through Saturday %d Two-digit day of the month (with leading zeros) 01 to 31 %e Day of the month, with a space preceding single digits. 1 to 31 %j Day of the year, 3 digits with leading zeros 001 to 366 %u ISO-8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday) %w Numeric representation of the day of the week 0 (for Sunday) through 6 (for Saturday) %U Week number of the given year, starting with the first Sunday as the first week 13 (for the 13th full week of the year) %V ISO-8601:1988 week number of the given year, starting with the first week of the year with at least 4 weekdays, with Monday being the start of the week 01 through 53 (where 53 accounts for an overlapping week) %W A numeric representation of the week of the year, starting with the first Monday as the first week 46 (for the 46th week of the year beginning with a Monday) %b Abbreviated month name, based on the locale Jan through Dec %B Full month name, based on the locale January through December %h Abbreviated month name, based on the locale (an alias of %b) Jan through Dec %m Two digit representation of the month 01 (for January) through 12 (for December) %C Two digit representation of the century (year divided by 100, truncated to an integer) 19 for the 20th Century %g Two digit representation of the year going by ISO-8601:1988 standards (see %V) Example: 09 for the week of January 6, 2009 %G The full four-digit version of %g Example: 2008 for the week of January 3, 2009 %y Two digit representation of the year Example: 09 for 2009, 79 for 1979 %Y Four digit representation for the year Example: 2038 %H Two digit representation of the hour in 24-hour format 00 through 23 %k Hour in 24-hour format, with a space preceding single digits 0 through 23 %I Two digit representation of the hour in 12-hour format 01 through 12 %l (lower-case 'L') Hour in 12-hour format, with a space preceding single digits 1 through 12 %M Two digit representation of the minute 00 through 59 %p UPPER-CASE 'AM' or 'PM' based on the given time Example: AM for 00:31, PM for 22:23 %P lower-case 'am' or 'pm' based on the given time Example: am for 00:31, pm for 22:23 %r Same as "%I:%M:%S %p" Example: 09:34:17 PM for 21:34:17 %R Same as "%H:%M" Example: 00:35 for 12:35 AM, 16:44 for 4:44 PM %S Two digit representation of the second 00 through 59 %T Same as "%H:%M:%S" Example: 21:34:17 for 09:34:17 PM %X Preferred time representation based on locale, without the date Example: 03:59:16 or 15:59:16 %z The time zone offset. Example: -0500 for US Eastern Time %Z The time zone abbreviation. Example: EST for Eastern Time %c Preferred date and time stamp based on locale Example: Tue Feb 5 00:45:10 2009 for February 5, 2009 at 12:45:10 AM %D Same as "%m/%d/%y" Example: 02/05/09 for February 5, 2009 %F Same as "%Y-%m-%d" (commonly used in database datestamps) Example: 2009-02-05 for February 5, 2009 %s Unix Epoch Time timestamp (same as the time() function) Example: 305815200 for September 10, 1979 08:40:00 AM %x Preferred date representation based on locale, without the time Example: 02/05/09 for February 5, 2009 %n A newline character ("\n") %t A Tab character ("\t") %% A literal percentage character ("%")
LNAM = = Booking Group variables ===== Custom Booking last nameGroup Table ===create your own booking group list by specifying the columns in the order you want them to appear.
MOBI = Booking mobilefor example: [BOOKGROUP:PROP_ROOM_BREF_NAME]
NAME = Booking full namecolumn parameters
NOHE 100% = no header100% width
NOTE ADDR = Booking noteaddress
ONAM ADUL= Offer Name the number of adults
ONLY ARIV = Just show the one bookingArrival date
PAIC BOPR = Payment amount with currency symbolBold prices
PAID BREF = Paid amountBooking number
PEOP BRL1 = Number Last digit of guestsbooking number
PHON BRL2 = Booking phoneLast 2 digits of booking number
POST BRL3 = Booking postcodeLast 3 digits of booking number
PROP BRL4 = Property nameLast 4 digits of booking number
RDE0 BRL5 = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTLast 5 digits of booking number
RDE1 BRL6 = Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUPLast 6 digits of booking number
RNAM CITY = Room Display Name ROOM = Room nameBooking city
STAT CHAC = Booking stateCharges with currency symbol
STUS CHAR = StatusCharges
TOTA CHIL = Total priceNumber of children
UNI2 COUN = Unit first additional information UNI3 = Unit second additional informationBooking country
UNIT DEPT = Unit nameDeparture date
EMAI = Booking Email
Connect the parameters with an underscore. EXSP = extra space between rows
Examples: FLAG = Booking flag text
[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property FNAM = Booking first name, room name, booking number and guest name in this order.
GADD = Guest address
[BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and room name in this order.GCIT = Guest city
GCOM === Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - create a table of guest names including room type for a group bookingGuest company
[BOOKGROUPROOMLISTTOTAL] - create a table of guest names including room type for a group booking with guest totalsGCOU = Guest country
[BOOKGROUPROOMLISTCHARGETOTAL] - create a table of guest names including room type and charge for a group booking with guest totalsGFLA = Guest flag text
[BOOKGROUPNAMELIST] - create a table of guest names including room type and unit for a group bookingGFNA = Guest first name
[BOOKGROUPNAMELISTTOTAL] - create a table of guest names including room type and unit for a group booking with guest totalsGLNA = Guest last name
[BOOKGROUPNAMELISTCHARGETOTAL] - create a table of guest names including room type and unit and charge for a group booking with guest totalsGMOB = Guest mobile
[BOOKGROUPUNITLIST] - create a table of guest names including unit for a group bookingGNAM = Guest full name
[BOOKGROUPUNITLISTTOTAL] - create a table of guest names including unit for a group booking with guest totalsGEMA = Guest Email
[BOOKGROUPUNITLISTCHARGETOTAL] - create a table of guest names including unit and charge for a group booking with guest totalsGNOT = Guest note
GPOS == Invoice Variables ==[INVOICENUMBER] - invoice numberGuest postcode
[INVOICENUMBERS] - invoice number if invoicees are involvedGREF = Guest Id
[INVOICEDATE] - invoice dateGSTA = Guest state
[INVOICEDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string. GTEL === Invoice Values ===These template variables will display a value form the invoice.Guest phone
ICAN ==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value from an invoice. Available content variables are: Include cancelled bookings
CHA - chargesLNAM = Booking last name
CON - currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234 MOBI = Booking mobile
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the languageNAME = Booking full name
DP0 - NOHE = no decimal placesheader
DP1 - 1 decimal placeNOTE = Booking note
DP2 - 2 decimal placesNUMN = Number of nights booked
DP3 - 3 decimal placesONAM = Offer Name
DP4 - 4 decimal places ONLY = Just show the one booking
DESsome description - sum of values PAIC = Payment amount with "some description"currency symbol
INV - invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV-1 will show all items from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking PADD = Property Address
IT1 - item 1 in the invoicePAID = Paid amount
IT2 - item 2 in the invoice PCIT = Property City
IT3 - item 3 in the invoicePEOP = Number of guests
IT4 - item 4 in the invoicePHON = Booking phone
IT5 - item 5 in the invoicePOST = Booking postcode
MUL - multiplier. Example: MUL1.2 will multiply all prices by 1.2 PROP = Property name
NUM - show with decimal place RDE0 = Room description from {{#fas:cog}} (for scriptsSETTINGS)CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
THO - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language RDE1 = Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUP
UPS1 - upsell 1RNAM = Room Display Name ROOM = Room name
UPS2 - upsell 2RQTY = shows the number of rooms for each booking and a total at the bottom
UPS3 - upsell 3STAT = Booking state
UPS4 - upsell 4STUS = Status
UPS5 - upsell 5TEXT = Prints a plain text table instead of HTML
ONE - shows only items from the specified booking (not the booking group)TOTA = Total price
PAY - shows payments UNI2 = Unit first additional information UNI3 = Unit second additional information
QTY - shows quantityUNIT = Unit name
SEX - status excluded. Calculate the balance of all invoice items except for the ones with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this status.
SIN - status included. Calculate Connect the balance of all invoice items parameters with matching status, the status items can be a comma separated list. Example: SIN status1,status2,status4 will only show items with this statusan underscore.
VAT - VAT summaryExamples:
[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.
Connect the variables with an underscore.
Examples[BOOKGROUP: BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and room name in this order.
=== Booking Group Table with fixed content===[INVOICEVAL:PAY_THOBOOKGROUPROOMLIST] will show payments with - create a table of guest names including room type for a thousands separatorgroup booking
[INVOICEVAL:UPS1_UPS1BOOKGROUPROOMLISTTOTAL] will show the sum - create a table of upsell 1 and upsell 2guest names including room type for a group booking with guest totals
==== Standard Invoice Values====[INVOICEBALANCEBOOKGROUPROOMLISTCHARGETOTAL] - invoice balancecreate a table of guest names including room type and charge for a group booking with guest totals
[INVOICEBALANCE:50%BOOKGROUPNAMELIST] - percentage create a table of invoice balanceguest names including room type and unit for a group booking
[INVOICEBALANCE:-100BOOKGROUPNAMELISTTOTAL] - invoice balance create a table of guest names including room type and unit for a group booking with offset amountguest totals
[INVOICEBALANCENUMBOOKGROUPNAMELISTCHARGETOTAL] - As per [INVOICEBALANCE] but the value is displayed with create a decimal point table of guest names including room type and no thousands separator (unit and charge for calculation).a group booking with guest totals
[INVOICEBALANCENUM:BOOKGROUPUNITLIST] - As per [INVOICEBALANCE:] but the value is displayed with create a decimal point and no thousands separator (table of guest names including unit for calculation).a group booking
[INVOICEPARTBALANCE:status1,status2,!status4:10%BOOKGROUPUNITLISTTOTAL] - Calculate the balance create a table of all invoice items with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, guest names including unit for example !status1. The offset is optional and can be specified after a second colon (:) and it can be a percentage by ending the number group booking with the percent (%) symbol or a numeric value offset.guest totals
[INVOICEPARTBALANCENUM:status1,status2,status4:10%BOOKGROUPUNITLISTCHARGETOTAL] - As per INVOICEPARTBALANCE but the value is displayed with create a decimal point table of guest names including unit and no thousands separator (charge for calculation).a group booking with guest totals
== Invoice Variables ==[INVOICEBALANCE1INVOICENUMBER] - invoice balance of one booking only, not the booking groupnumber
[INVOICEBALANCE1NUMINVOICENUMBERS] - As per [INVOICEBALANCE1] but the value is displayed with a decimal point and no thousands separator (for calculation)invoice number if invoicees are involved
[INVOICECHARGESINVOICEDATE] - invoice sum of all charges date
[INVOICECHARGES:50%INVOICEDATES] - invoice sum of all charges with percentage multiplierdate invoice number if invoicees are involved
[INVOICECHARGESINVOICEDATE:-100+1day{%A, %e %B, %Y}] - invoice sum optional date offset and display format. The offset can be any plus or minus any number of all charges with offset days and the display can be any valid PHP strftime format string.
[INVOICECHARGESNUMINVOICEDATES:+1day{%A, %e %B, %Y}] - As per [INVOICECHARGES] but optional date offset and display format - invoice date invoice number if invoicees are involved, The offset can be any plus or minus any number of days and the value is displayed with a decimal point and no thousands separator (for calculation)display can be any valid PHP strftime format string.
[INVOICECHARGESNUM:] - As per [INVOICECHARGES:] but === Invoice Values ===These template variables will display a value form the value is displayed with a decimal point and no thousands separator (for calculation)invoice.
[INVOICEPARTCHARGES:status1,status2,!status4:10%] - Calculate ==== Custom Invoice Values====You have the balance of all option to create a custom invoice charges with matching status and apply optional multiplier or offset. The status items can be variable to display a comma separated listvalue from an invoice. To exclude status items prefix them [INVOICEVAL with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (:) and it can be a percentage by ending selection of the number with following variables specifies the percent (%) symbol or a numeric value offset.calculation:
[INVOICEPARTCHARGESNUM:status1,status2,status4:10%] CHA - As per INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculation).charges
[INVOICEPAYMENTS] CON - invoice sum of all payments currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234
[INVOICEPAYMENTSDEC - Decimal points. Example:50%] - invoice sum of all payments with percentage multiplier DEC, will show a comma as decimal point. If nothing is set the system will use the default for the language
[INVOICEPAYMENTS:DP0 -100] - invoice sum of all payments with offset no decimal places
[INVOICEPAYMENTSNUM] DP1 - As per [INVOICEPAYMENTS] but the value is displayed with a 1 decimal point and no thousands separator (for calculation)place
[INVOICEPAYMENTSNUM:50%] DP2 - As per [INVOICEPAYMENTS:50%] but the value is displayed with a 2 decimal point and no thousands separator.places
[INVOICEPARTPAYMENTS:status1,status2,!status4:10%] DP3 - Calculate the balance of all invoice payments with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offset.3 decimal places
[INVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] DP4 - As per INVOICEPARTCHARGES but the value is displayed with a 4 decimal point and no thousands separator (for calculation).places
[INVOICEPENDPAY] DES - all (auto and manual) pending payments including failedused as "DESsome description" - gives the sum of values containing the description "some description"
[INVOICEPENDPAYNUM] INV - invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV- 1 will show all (auto and manual) pending payments including failed but items from the value is displayed with a decimal point and no thousands separator (for calculation)booking regardless of invoicee.You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking
[INVOICEPENDPAY1234] IT1 - all (auto and manual) pending payments including failed for item 1 in the specified invoicee (-1 will include all items regardless of invoicee)invoice
[INVOICEPENDPAYNUM1234] IT2 - all (auto and manual) pending payments including failed for item 2 in the specified invoicee (-1 will include all items regardless of invoicee) The value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEPENDPAYAUTO] IT3 - auto pending payments before due date item 3 in the invoice
[INVOICEPENDPAYAUTONUM] IT4 - auto pending payments before due date but item 4 in the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEPENDPAYAUTO1234] IT5 - auto pending payments before due date for item 5 in the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (-1 will include all items regardless of invoicee)invoice
[INVOICEPENDPAYAUTONUM1234] auto pending payments before due date for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (MUL -1 multiplier. Example: MUL1.2 will include multiply all items regardless of invoicee)prices by 1.2
[INVOICEPENDPAYFAIL] NUM - failed pending payments show with decimal place (all also pastfor scripts)
[INVOICEPENDPAYFAILNUM] THO - failed pending payments (all also past) but the value is displayed with thousands separator. THO. will show a decimal point and no thousands dot as thousand separator (. If nothing is set the system will use the default for calculation)the language
[INVOICEPENDPAYFAIL234] - failed pending payments (all also past) for the specified invoicee (UPS1 -upsell 1 will include all items regardless of invoicee)
[INVOICEPENDPAYFAILNUM234] UPS2 - failed pending payments (all also past) for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (-1 will include all items regardless of invoicee)upsell 2
[INVOICEPENDPAYRULE1] UPS3 - shows all pending payment for this rule (exchange 1 for the rule number)upsell 3
[INVOICEPENDPAYRULENUM1] UPS4 - shows all pending payment for this rule (exchange 1 for the rule number) displayed with a decimal point and no thousands separator (for calculation)upsell 4
[INVOICEPENDPAYMANUAL] UPS5 - manual pending payments upsell 5
[INVOICEPENDPAYMANUALNUM] ONE - manual pending payments but shows only items from the value is displayed with a decimal point and no thousands separator specified booking (for calculationnot the booking group).
[INVOICEPENDPAYMANUALNOTDUE] manual pending PAY - shows payments before due date
[INVOICEPENDPAYMANUALNOTDUENUM] manual pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).QTY - shows quantity
[INVOICEPENDPAYMANUALOVERDUE] manual pending payments after due date SEX - status excluded. Calculate the balance of all invoice items except for the ones with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this status.
[INVOICEPENDPAYMANUALOVERDUENUM] manual pending payments after due date but SIN - status included. Calculate the value is displayed balance of all invoice items with matching status, the status items can be a decimal point and no thousands separator (for calculation)comma separated list. Example: SIN status1,status2,status4 will only show items with this status.
[INVOICECREDITS] VAT - invoice sum of all credit items (negative items)VAT summary
[INVOICECREDITS:50%] - invoice sum of all credit items with percentage multiplier
[INVOICECREDITS:-100] - invoice sum of all credit items Connect the variables with offset an underscore.
[INVOICECREDITSNUM] - As per [INVOICECREDITS] but the value is displayed with a decimal point and no thousands separator (for calculation)Examples:
[INVOICECREDITSNUMINVOICEVAL:PAY_THO] - As per [INVOICECREDITS:] but the value is displayed will show payments with a decimal point and no thousands separator (for calculation)
[INVOICEDEBITSINVOICEVAL:UPS1_UPS2] - invoice will show the sum of all debit items (positive items)upsell 1 and upsell 2
==== Standard Invoice Values====[INVOICEDEBITS:50%INVOICEBALANCE] - invoice sum of all debit items with percentage multiplierbalance
[INVOICEDEBITSINVOICEBALANCE:-10050%] - percentage of invoice sum of all debit items with offsetbalance
[INVOICEDEBITSNUMINVOICEBALANCE:-100] - As per [INVOICEDEBITS] but the value is displayed invoice balance with a decimal point and no thousands separator (for calculations) (for calculations)offset amount
[INVOICEDEBITSNUM:INVOICEBALANCENUM] - As per [INVOICEDEBITS:INVOICEBALANCE] but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEVATINVOICEBALANCENUM:] - invoice sum of all vat As per [INVOICEBALANCE:] but the valueis displayed with a decimal point and no thousands separator (for calculation).
[INVOICEVATNUMINVOICEPARTBALANCE:status1,status2,!status4:10%] - invoice sum Calculate the balance of all vat value invoice items with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for calculationsexample !status1. The offset is optional and can be specified after a second colon (:)and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offset.
[INVOICEFIRSTITEMINVOICEPARTBALANCENUM:status1,status2,status4:10%] - price of As per INVOICEPARTBALANCE but the item listed first in the invoicevalue is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEFIRSTITEMNUMINVOICEBALANCE1] - price invoice balance of one booking only, not the item listed first in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)booking group
[INVOICESECONDITEMINVOICEBALANCE1NUM] - price of the item listed second in As per [INVOICEBALANCE1] but the invoicevalue is displayed with a decimal point and no thousands separator (for calculation)
[INVOICESECONDITEMNUMINVOICECHARGES] - price invoice sum of the item listed second in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)all charges
[INVOICETHIRDITEMINVOICECHARGES:50%] - price invoice sum of the item listed third in the invoiceall charges with percentage multiplier
[INVOICETHIRDITEMNUMINVOICECHARGES:-100] - price invoice sum of the item listed third in the invoice but the value is displayed all charges with a decimal point and no thousands separator (for calculations)offset
[INVOICEUPSELL0INVOICECHARGESNUM] - base price without upsell items or other charges added laterAs per [INVOICECHARGES] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEUPSELLNUM0INVOICECHARGESNUM:] - as As per [INVOICEUPSELL1INVOICECHARGES:] but the value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEUPSELL1INVOICEPARTCHARGES:status1,status2,!status4:10%] - value Calculate the balance of upsell item 1 all invoice charges with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (number :) and it can be between 0 to 20a percentage by ending the number with the percent (%)symbol or a numeric value offset.
[INVOICEUPSELLNUM1INVOICEPARTCHARGESNUM:status1,status2,status4:10%] - as As per [INVOICEUPSELL1] INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEUPSELLQTY1INVOICEPAYMENTS] - quantity invoice sum of upsell item 1 (number can be between 1 to 20)all payments
[INVOICEUPSELLHEADLINE1INVOICEPAYMENTS:50%] - headline invoice sum of upsell item 1 (number can be between 1 to 20)all payments with percentage multiplier
[INVOICEUPSELLDESCRIPTION1INVOICEPAYMENTS:-100] - description invoice sum of upsell item 1 (number can be between 1 to 20)all payments with offset
[INVOICEUPSELLAMOUNTNUM1INVOICEPAYMENTSNUM] - amout of upsell item 1 As per [INVOICEPAYMENTS] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEUPSELLTYPE1INVOICEPAYMENTSNUM:50%] - type of upsell item 1 As per [INVOICEPAYMENTS:50%] but the value is displayed with a decimal point and no thousands separator.
[INVOICEUPSELLPER1INVOICEPARTPAYMENTS:status1,status2,!status4:10%] - per Calculate the balance of upsell item 1 all invoice payments with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offset.
[INVOICEUPSELLPERIOD1INVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] - period of upsell item 1 As per INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAY] - all (auto and manual) pending payments including failed
[INVOICEEXTRAITEMDESC1INVOICEPENDPAYNEXTDATE] - Name date of extra invoice item 1 (number can be between 0 to 20)the next pending payment
[INVOICEEXTRAITEM1INVOICEPENDPAYNEXTDATE:] - value date of extra invoice item 1 (number the next pending payment display can be between 0 to 20) Noteany valid PHP strftime format string. Information about PHP strftime Strings can be find found here: the order goes by the order in the dropdown list not by the order the items are enteredhttp://php.net/manual/de/function.strftime. php
[INVOICEEXTRAITEM1INVOICEPENDPAYNUM] - all (auto and manual) pending payments including failed but the value of extra invoice item 1 is displayed with a decimal point and no thousands separator (number can be between 0 to 20for calculation) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICEEXTRAITEMNUM1INVOICEPENDPAY1234] - as per [INVOICEEXTRAITEM1] but all (auto and manual) pending payments including failed for the value is displayed with a decimal point and no thousands separator specified invoicee (for calculations-1 will include all items regardless of invoicee).
[INVOICEEXTRAITEMQTY1INVOICEPENDPAYNUM1234] - quantity of extra invoice item 1 all (number can be between 0 to 20auto and manual) Note: the order goes by the order in the dropdown list not by the order pending payments including failed for the specified invoicee (-1 will include all items are enteredregardless of invoicee) The value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEGROSS:1INVOICEPENDPAYAUTO] - gross amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations) auto pending payments before due date
INVOICEGROSSNUM:1[INVOICEPENDPAYAUTONUM] gross amount of - auto pending payments before due date but the inserted VAT rate value is displayed with a decimal point and no thousands separator (number is the VAT ratefor calculation).
[INVOICENET:1INVOICEPENDPAYAUTO1234] auto pending payments before due date for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (- net amount 1 will include all items regardless of the inserted VAT rate (number is the VAT rateinvoicee)
[INVOICENETNUM:1INVOICEPENDPAYAUTONUM1234] - net amount of auto pending payments before due date for the inserted VAT rate (number is specified invoicee but the VAT rate), value is displayed with a decimal point and no thousands separator (for calculationscalculation) (-1 will include all items regardless of invoicee)
[INVOICEVAT:1INVOICEPENDPAYFAIL] - VAT amount of the inserted VAT rate failed pending payments (number is the VAT rateall also past)
[INVOICEVATNUM:1INVOICEPENDPAYFAILNUM] VAT amount of the inserted VAT rate - failed pending payments (number is all also past) but the VAT rate), value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEITEMBYDESC:SearchtermINVOICEPENDPAYFAIL234] - failed pending payments (all also past) for the specified invoicee searches the invoice for (-1 will include all items with this search term and adds them upregardless of invoicee)
[INVOICEITEMBYDESCNUM:SearchtermINVOICEPENDPAYFAILNUM234] - searches failed pending payments (all also past) for the specified invoicee but the invoice for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculationscalculation) (-1 will include all items regardless of invoicee)
[INVOICEPAYMENTBYDESC:SearchtermINVOICEPENDPAYRULE1] - searches the payments shows all pending payment for items with this search term and adds them uprule (exchange 1 for the rule number)
[INVOICEPAYMENTBYDESCNUM:SearchtermINVOICEPENDPAYRULENUM1] - searches the payments shows all pending payment for items with this search term and adds them up, value is rule (exchange 1 for the rule number) displayed with a decimal point and no thousands separator (for calculationscalculation)
=== Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[INVOICETABLEINVOICEPENDPAYMANUAL] - invoice table manual pending payments
[INVOICETABLEVATINVOICEPENDPAYMANUALNUM] - invoice table manual pending payments but the value is displayed with vat information a decimal point and vat summaryno thousands separator (for calculation).
[INVOICETABLE:$1.1$INVOICEPENDPAYMANUALNOTDUE] - invoice table and currency multiplier with optional new currency symbol manual pending payments before or after price.due date
[INVOICETABLEPART:status1,status2,!status4INVOICEPENDPAYMANUALNOTDUENUM] - Invoice table showing only items manual pending payments before due date but the value is displayed with matching status. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, decimal point and no thousands separator (for example !status1calculation).
[INVOICETABLE2INVOICEPENDPAYMANUALOVERDUE] - invoice table with status fieldmanual pending payments after due date
[INVOICETABLE2:$1.1$INVOICEPENDPAYMANUALOVERDUENUM] - invoice table manual pending payments after due date but the value is displayed with status field a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculation)
[INVOICETABLECHARGESINVOICECREDITS] - invoice table showing charges onlysum of all credit items (negative items)
[INVOICETABLECHARGESINVOICEE1234INVOICECREDITS:50%] - invoice table showing charges only assigned to the specified invoicee, specify the invoicee Id number.sum of all credit items with percentage multiplier
[INVOICETABLENOTOTINVOICECREDITS:-100] - invoice table without grand totalsum of all credit items with offset
[INVOICETABLENOTOT:$1.1$INVOICECREDITSNUM] - invoice table without grand total As per [INVOICECREDITS] but the value is displayed with a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculation)
[INVOICETABLENOTOT2INVOICECREDITSNUM:] - invoice table As per [INVOICECREDITS:] but the value is displayed with status field without grand totala decimal point and no thousands separator (for calculation)
[INVOICETABLENOTOT2:$1.1$INVOICEDEBITS] - invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.sum of all debit items (positive items)
[INVOICETABLEVATINVOICEDEBITS:$1.1$50%] - invoice table sum of all debit items with vat information and currency percentage multiplier with optional new currency symbol before or after price.
[INVOICETABLEVATCOMPACTINVOICEDEBITS:-100] - compact version invoice sum of invoice table all debit items with vat information and vat summaryoffset
[INVOICETABLEVATCOMPACT:$1.1$INVOICEDEBITSNUM] - compact version of invoice table As per [INVOICEDEBITS] but the value is displayed with vat information a decimal point and vat summary and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculations) (for calculations)
[INVOICETABLEVATCOMPACTNOSUMINVOICEDEBITSNUM:] - compact version of invoice table As per [INVOICEDEBITS:] but the value is displayed with vat information without vat summarya decimal point and no thousands separator (for calculations)
[INVOICETABLEVATCOMPACTNOSUM:$1.1$INVOICEVAT] - compact version invoice sum of invoice table with vat information without all vat summary and currency multiplier with optional new currency symbol before or after price.value
[INVOICETABLEVATNOSUMINVOICEVATNUM] - invoice table with sum of all vat information without vat summaryvalue for calculations)
[INVOICETABLEVATNOSUM:$1.1$INVOICEFIRSTITEM] - price of the item listed first in the invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEDATEVATNOSUMINVOICEFIRSTITEMNUM] - price of the item listed first in the invoice table but the value is displayed with vat information a decimal point and date without vat summaryno thousands separator (for calculations)
[INVOICETABLEDATEVATNOSUM:$1.1$INVOICESECONDITEM] - price of the item listed second in the invoice table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVAT2INVOICESECONDITEMNUM] - price of the item listed second in the invoice table but the value is displayed with vat information a decimal point and status field and vat summaryno thousands separator (for calculations)
[INVOICETABLEVAT2:$1.1$INVOICETHIRDITEM] - price of the item listed third in the invoice table with vat information and status field and vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVAT2NOSUMINVOICETHIRDITEMNUM] - price of the item listed third in the invoice table but the value is displayed with vat information a decimal point and status field without vat summaryno thousands separator (for calculations)
[INVOICETABLEVAT2NOSUM:$1.1$INVOICEFOURTHITEM] - price of the item listed fourth in the invoice table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVATCHARGESINVOICEFOURTHITEMNUM] - price of the item listed fourth in the invoice table showing charges only but the value is displayed with vat information a decimal point and vat summaryno thousands separator (for calculations)
[INVOICETABLENOPRICEINVOICEFIFTHITEM] - price of the item listed fifth in the invoice table with no price information
[INVOICETABLEINVOICEEINVOICEFIFTHITEMNUM] - price of the item listed fifth in the invoice table excluding items assigned to an invoicee.but the value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICETABLEINVOICEE1234INVOICEUPSELL0] - invoice table for a specific invoicee, specify the invoicee Id number.base price without upsell items or other charges added later
[UPSELLTABLEINVOICEUPSELLNUM0] - table as per [INVOICEUPSELL1] but the value is displayed with all upsell itemsa decimal point and no thousands separator (for calculations)
[UPSELLTABLEVATINVOICEUPSELL1] - table with all value of upsell items with vat information and vat summary item 1 (number can be between 0 to 20)
[UPSELLTABLENOREFUNDINVOICEUPSELLNUM1] - table as per [INVOICEUPSELL1] but the value is displayed with all upsell items except refundable itemsa decimal point and no thousands separator (for calculations)
==== Custom Invoice Table ====You have the option [INVOICEUPSELLQTY1] - quantity of upsell item 1 (number can be between 1 to create a custom invoice table. Available content variables are: 20)
AMO [INVOICEUPSELLNAME1] - shows name of the net value headline field of upsell item 1 (price x quantitynumber can be between 1 to 20)
CEX [INVOICEUPSELLSTATUS1] - charges excluded stautus of the headline field of upsell item 1 (charges will not number can be shownbetween 1 to 20)
CON [INVOICEUPSELLHEADLINE1] - currency conversion. Example: CONEURUSD will convert the first currency headline (Euros) name and status if used of upsell item 1 (number can be between 1 to the second currency (USD20). CON1.234 would multiply the prices by 1.234
CUA [INVOICEUPSELLDESCRIPTION1] - currency symbol showing after the numbers. Example: CUA€ will show € after the figuresdescription of upsell item 1 (number can be between 1 to 20)
CUB [INVOICEUPSELLAMOUNTNUM1] - currency symbol showing before the numbers. Example: CUB€ will show € before the figuresamout of upsell item 1
DAT - adds a date column
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the language
DP0 - no decimal places
DP1 [INVOICEUPSELLTYPE1] - type of upsell item 1 decimal place
DP2 [INVOICEUPSELLPER1] - 2 decimal placesper of upsell item 1
DP3 [INVOICEUPSELLPERIOD1] - 3 decimal placesperiod of upsell item 1
DP4 - 4 decimal places
GAT [INVOICEEXTRAITEMDESC1] - sum for each columnName of extra invoice item 1 (number can be between 0 to 20)
GRP [INVOICEEXTRAITEM1] - Group Totals. Displays value of extra invoice item 1 (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the order the same items as a total are entered.
GRT [INVOICEEXTRAITEM1] - Grand Total value of extra invoice item 1 (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the order the items are entered.
INV - invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV[INVOICEEXTRAITEMNUM1] -1 will show all items from the booking regardless of invoicee. You can combine INVas per [BOOKINGINVOICEEIDINVOICEEXTRAITEM1]] to add but the invoicee from the bookingvalue is displayed with a decimal point and no thousands separator (for calculations).
LAN [INVOICEEXTRAITEMQTY1] - languagequantity of extra invoice item 1 (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the order the items are entered. Example LANDE will force the language to German
MUL - multiplier. Example[INVOICEGROSS: MUL1.2 will multiply all prices by 1.2] - gross amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
NIN - do not show invoice INVOICEGROSSNUM:1] gross amount of the inserted VAT rate (number and invoice date on locked invoicesis the VAT rate)
NOC [INVOICENET:1] - charges will not be displayed but their vat values are still calculated for net amount of the vat summary inserted VAT rate (number is the VATrate)
NOP [INVOICENETNUM:1] - payments will not be net amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
ONE [INVOICEVAT:1] - shows only items from VAT amount of the specified booking inserted VAT rate (not number is the booking groupVAT rate)
PAA - shows [INVOICEVATNUM:1] VAT amount of the inserted VAT rate (number is the VAT rate), value is displayed with a column with payment amountsdecimal point and no thousands separator (for calculations)
PAY [INVOICEITEMBYDESC:Searchterm] - shows payments searches the invoice for items with this search term and adds them up
PEN [INVOICEITEMBYDESCNUM:Searchterm] - shows pending payments description searches the invoice for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)
PPA [INVOICEPAYMENTBYDESC:Searchterm] - shows pending searches the payments amount for items with this search term and adds them up
PRI [INVOICEPAYMENTBYDESCNUM:Searchterm] - shows prices in searches the payments for items with this search term and adds them up, value is displayed with a columndecimal point and no thousands separator (for calculations)
QTY === Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[INVOICETABLE] - shows quantityinvoice table
SEX [INVOICETABLEVAT] - status excluded. Calculate the balance of all invoice items except for the ones table with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this status.vat information and vat summary
SIN [INVOICETABLE:$1.1$] - status included. Calculate the balance of all invoice items with matching status, the status items can be a comma separated list. Example: SIN status1,status2,status4 will only show items table and currency multiplier with this statusoptional new currency symbol before or after price.
STA[INVOICETABLEPART:status1,status2,!status4] - shows stausInvoice table showing only items with matching status. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1.
THO [INVOICETABLE2] - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the languageinvoice table with status field
TOT [INVOICETABLE2:$1.1$] - shows total amountsinvoice table with status field and currency multiplier with optional new currency symbol before or after price.
VAA [INVOICETABLECHARGES] - shows VAT amountsinvoice table showing charges only
VAP [INVOICETABLECHARGESINVOICEE1234] - shows VAT percentsinvoice table showing charges only assigned to the specified invoicee, specify the invoicee Id number.
VAT [INVOICETABLENOTOT] - VAT summaryinvoice table without grand total
[INVOICETABLENOTOT:$1.1$] - invoice table without grand total and currency multiplier with optional new currency symbol before or after price.
Connect the variables [INVOICETABLENOTOT2] - invoice table with an underscore. status field without grand total
Examples[INVOICETABLENOTOT2: $1.1$] - invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.
[INVOICEINVOICETABLEVAT:PRI_QTY_CUA€$1.1$] will create an - invoice table with vat information and currency multiplier with optional new currency symbol before or after price and quantity in Euros.
[INVOICE:PAY_TOT_CEXINVOICETABLEVATCOMPACT] will create an - compact version of invoice table which will only show payments.with vat information and vat summary
[INVOICEINVOICETABLEVATCOMPACT:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA$1.1$] will create an - compact version of invoice table with more vat informationand vat summary and currency multiplier with optional new currency symbol before or after price.
== Invoicee Variables ==[INVOICEEBALANCEINVOICETABLEVATCOMPACTNOSUM] - compact version of invoice balance for unassigned invoice items.table with vat information without vat summary
[INVOICEEBALANCENUMINVOICETABLEVATCOMPACTNOSUM:$1.1$] - compact version of invoice balance for unassigned invoice items displayed table with a decimal point vat information without vat summary and no thousands separatorcurrency multiplier with optional new currency symbol before or after price.
[INVOICEEBALANCE1234INVOICETABLEVATNOSUM] - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).table with vat information without vat summary
[INVOICEEBALANCENUM1234INVOICETABLEVATNOSUM:$1.1$] - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed table with a decimal point vat information without vat summary and no thousands separatorcurrency multiplier with optional new currency symbol before or after price.
[INVOICEECHARGESINVOICETABLEDATEVATNOSUM] - invoice charges for unassigned invoice items.table with vat information and date without vat summary
[INVOICEECHARGESNUMINVOICETABLEDATEVATNOSUM:$1.1$] - invoice charges for unassigned invoice items displayed table with a decimal point vat information and no thousands separatordate without vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICEECHARGES1234INVOICETABLEVAT2] - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).table with vat information and status field and vat summary
[INVOICEECHARGESNUM1234INVOICETABLEVAT2:$1.1$] - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed table with a decimal point vat information and status field and vat summary and no thousands separatorcurrency multiplier with optional new currency symbol before or after price.
[INVOICEEPAYMENTSINVOICETABLEVAT2NOSUM] - invoice payments for unassigned invoice items.table with vat information and status field without vat summary
[INVOICEEPAYMENTSNUMINVOICETABLEVAT2NOSUM:$1.1$] - invoice payments for unassigned invoice items displayed table with a decimal point vat information and no thousands separatorstatus field without vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICEEPAYMENTS1234INVOICETABLEVATCHARGES] - invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)table showing charges only with vat information and vat summary
[INVOICEEPAYMENTSNUM1234INVOICETABLENOPRICE] - invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)table with no price information
[INVOICEENAMEINVOICETABLEINVOICEE] - name of the invoicee account the invoice is table excluding items assigned to or blankan invoicee.
[INVOICEECODEINVOICETABLEINVOICEE1234] - code of invoice table for a specific invoicee, specify the invoicee account the invoice is assigned to or blankId number.
[INVOICEECURRENCYUPSELLTABLE] - currency of the invoicee account the invoice is assigned to if it is not the property default or blanktable with all upsell items
[INVOICEETEMPLATE1UPSELLTABLEVAT] - template value 1 of the invoice account the invoice is assigned to or blanktable with all upsell items with vat information and vat summary
[INVOICEETEMPLATE2UPSELLTABLENOREFUND] - template value 2 of the invoice account the invoice is assigned to or blanktable with all upsell items except refundable items
[INVOICEETEMPLATE3] - template value 3 of the invoice account ==== Custom Invoice Table ====You have the option to create a custom invoice is assigned to or blanktable. Available content variables are:
[INVOICEETEMPLATE4] AMO - template shows the net value 4 of the invoice account the invoice is assigned to or blank(price x quantity)
[INVOICEETEMPLATE5] CEX - template value 5 of the invoice account the invoice is assigned to or blankcharges excluded (charges will not be shown)
[INVOICEETEMPLATE6] CON - template value 6 of currency conversion. Example: CONEURUSD will convert the invoice account first currency (Euros) to the invoice is assigned to or blanksecond currency (USD). CON1.234 would multiply the prices by 1.234
[INVOICEETEMPLATE7] CUA - template value 7 of currency symbol showing after the invoice account numbers. Example: CUA€ will show € after the invoice is assigned to or blankfigures
[INVOICEETEMPLATE8] CUB - template value 8 of currency symbol showing before the invoice account numbers. Example: CUB€ will show € before the invoice is assigned to or blankfigures
== Guest Variables ==DAT - adds a date column - you have the option to control the format of the date using [GUESTIDS[Template_Variables#Date_and_Time|date and time variables] ] for example DAT{%d-%m- comma separated list of guest Id's connected to the booking%Y}
[GUESTFLAGTEXTS] DEC - Decimal points. Example: DEC, will show a comma separated list of flag text values as decimal point. If nothing is set the system will use the default for each guest (when not empty) connected to the bookinglanguage
== Payment Request Variables ==[PAYURL] DP0 - Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.no decimal places
[PAYURL:25%] DP1 - Creates a payment url for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.1 decimal place
[PAYURL:200] DP2 - Creates a payment url for the payment request url for a fixed amount. nt.2 decimal places
[PAYLINK] DP3 - Creates a payment link (HTML A tag) for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.3 decimal places
[PAYLINK:25%] DP4 -Creates a payment link (HTML A tag) for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.4 decimal places
[PAYLINK:200] GAT - Creates a payment link (HTML A tag) sum for the payment request) for a fixed amount.each column
[PAYBUTTON] GRP - Creates Group Totals. Displays the same items as a payment button for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.total
[PAYBUTTON:25%] GRT - Creates a payment button for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.Grand Total
[PAYBUTTONINV - invoicee, add the invoicee number at the end. Example:200] INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV- Creates a payment button for 1 will show all items from the payment request for a fixed amountbooking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking
[PAYPALURL] LAN - Creates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise language. Example LANDE will force the outstanding balance.language to German
[PAYPALURLMUL - multiplier. Example:25%] - Creates a Paypal payment url for a percentage of the outstanding balanceMUL1. Use 100% to specify the full outstanding balance2 will multiply all prices by 1.2
[PAYPALURL:200] NIN - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.do not show invoice number and invoice date on locked invoices
[PAYPALLINK] NOC - Creates a Paypal payment link charges will not be displayed but their vat values are still calculated for the vat summary (HTML A tagVAT) for the amount in the booking deposit field if non zero, otherwise the outstanding balance.
[PAYPALLINK:25%] NOP - Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.payments will not be displayed
[PAYPALLINK:200] ONE - Creates a Paypal payment link shows only items from the specified booking (HTML A tagnot the booking group) for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.
[PAYPALBUTTON] ORB - Creates a Paypal payment button for the amount in the order by booking deposit field if non zero, otherwise this keeps the outstanding balance. Not recommended items for emails.each booking (room) together in the table
[PAYPALBUTTON:25%] PAA - Creates shows a Paypal column with payment button for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.amounts
[PAYPALBUTTON:200] PAY - Creates a Paypal payment button for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount. Not recommended for emails.shows payments
Add a H to exclude a gateway from displaying. Example: [PAYURL:200:HST] will hide StripePEN - shows pending payments description
== Text Operators ==PPA - shows pending payments amount
[REPLACE|searchForThisText|replaceWithThisText|textToSearch] PRI - replace "searchForThisText" with "replaceWithThisText" within the text "textToSearch"shows prices in a column
== iCal Links ==These template variables will create iCal links which allow the booking to be added to a calendar.QTY - shows quantity
[ICALURL] SEX - Calendar linkstatus excluded. Calculate the balance of all invoice items except for the ones with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this status.
[ICALURL:16] SIN - Calendar link status included. Calculate the balance of all invoice items with check-in hourmatching status, the status items can be a comma separated list. Replace '16' Example: SIN status1,status2,status4 will only show items with the hour check-in startsthis status.
[ICALURL::10] STA- Calendar link with check-out hour. Replace '10' with the hour with the hour check-out ends.shows staus
[ICALURL:::summary text] THO - Calendar link with thousands separator. THO. will show a summary textdot as thousand separator. If nothing is set the system will use the default for the language
[ICALURL::::description text] TOT - Calendar link with a descriptive textshows total amounts
Example:VAA - shows VAT amounts
Calendar link with checkVAP -in time 16:00, check-out time 10:00, the summary text "Booking" and the description text "Sunny Hotel":shows VAT percents
[ICALURL:16:10:Booking:Sunny Hotel]VAT - VAT summary
== Mathematical Operators ==
Place mathematical operators between two numbers <b>or between two template Connect the variables</b> that return a numberwith an underscore.
[+] - ExampleExamples: 2 [+] 3 = 5
[-] - ExampleINVOICE: 5 [-PRI_QTY_CUA€] 1 = 4will create an invoice table with price and quantity in Euros.
[*] - ExampleINVOICE: 3 [*PAY_TOT_CEX] 4 = 12will create an invoice table which will only show payments.
[/] - ExampleINVOICE: 15 [/PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] 5 = 3will create an invoice table with more information.
[MIN] - ExampleINVOICE: 2 [MINSIN TRANSPORT] 3 will create an invoice table with the Invoice item description for any items with the Status = 2Transport.
== Invoicee Variables ==[MAXINVOICEEBALANCE] - Example: 2 [MAX] 3 = 3invoice balance for unassigned invoice items.
Brackets are not supported as [INVOICEEBALANCENUM] - invoice balance for unassigned invoice items displayed with a way to control processing order, the processing order is fixed as *, /, +, -, MIN, MAXdecimal point and no thousands separator.
[INVOICEEBALANCE1234] - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).
=== Rounding [INVOICEEBALANCENUM1234] - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a decimal point and controlling decimal places ===no thousands separator.
==== Default ====[INVOICEECHARGES] - invoice charges for unassigned invoice items.
2 [/INVOICEECHARGESNUM] 3 = 0- invoice charges for unassigned invoice items displayed with a decimal point and no thousands separator.66666666666667
==== Rounding [INVOICEECHARGES1234] - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the nearest integer ====required Invoicee Id number).
2 [/INVOICEECHARGESNUM1234] - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a decimal point and no thousands separator.0] 3 = 1
==== Rounding to 1,2,3 or 4 decimal place(s) ====[INVOICEEPAYMENTS] - invoice payments for unassigned invoice items.
2 [/.1INVOICEEPAYMENTSNUM] 3 = 0- invoice payments for unassigned invoice items displayed with a decimal point and no thousands separator.7
2 [/.2INVOICEEPAYMENTS1234] 3 = 0.67- invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
2 [/.3INVOICEEPAYMENTSNUM1234] 3 = 0.667- invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
2 [/.4INVOICEENAME] 3 = 0.6667- name of the invoicee account the invoice is assigned to or blank
[INVOICEECODE] - code of the invoicee account the invoice is assigned to or blank
<b>This works on all operators including [MININVOICEECURRENCY] and [MAX]</b>- currency of the invoicee account the invoice is assigned to if it is not the property default or blank
Note: Always use [INVOICEENOTES] - value of the template variables ending with NUM. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbol."Notes" field for the invoicee
== Currency Conversion ==[INVOICEETEMPLATE1] - template value 1 of the invoice account the invoice is assigned to or blank
[CONVERT:EUR-USDINVOICEETEMPLATE2] - get template value 2 of the actual conversion rate between two currencies, this can be used with math functions invoice account the invoice is assigned to show alternative currency values. All currencies supported by the booking page currency selector can be used.or blank
Example: [INVOICECHARGESNUMINVOICEETEMPLATE3] [*.2] [CONVERT:EUR-USD] will convert template value 3 of the invoice account the invoice charge value from Euros is assigned to USD with two decimal points.or blank
If you use [INVOICEETEMPLATE4] - template value 4 of the multiplier to convert currencies for channels: For example hotel id 123456 and a multiplier to convert USD invoice account the invoice is assigned to EUR at todays rate:or blank
123456*[CONVERT:USDINVOICEETEMPLATE5] -EUR]*template value 5 of the invoice account the invoice is assigned to or blank
[INVOICEETEMPLATE6] - template value 6 of the invoice account the invoice is assigned to or this to convert EUR to USDblank
123456*[CONVERT:EURINVOICEETEMPLATE7] -USD]template value 7 of the invoice account the invoice is assigned to or blank
123456*[CONVERT:USDINVOICEETEMPLATE8] -EUR][/]0.85 will convert template value 8 of the invoice account the invoice is assigned to Euros and divides the price by 0.85 which raises it by circa 15%or blank
==Account Variables ([INVOICEETEMPLATE1BR] - template value 1 of the invoice account of the booking) ==invoice is assigned to or blank with linkebreak
[ACCOUNTIDINVOICEETEMPLATE2BR] - template value 2 of the invoice account id of the booked propertyinvoice is assigned to or blank with linkebreak
[ACCOUNTTEMPLATE1INVOICEETEMPLATE3BR] - Account Template 1template value 3 of the invoice account the invoice is assigned to or blank with linkebreak
[ACCOUNTTEMPLATE2INVOICEETEMPLATE4BR] - Account Template 2template value 4 of the invoice account the invoice is assigned to or blank with linkebreak
[ACCOUNTTEMPLATE3INVOICEETEMPLATE5BR] - Account Template 3template value 5 of the invoice account the invoice is assigned to or blank with linkebreak
[ACCOUNTTEMPLATE4INVOICEETEMPLATE6BR] - Account Template 4 template value 6 of the invoice account the invoice is assigned to or blank with linkebreak
[COMMISSIONLIMITINVOICEETEMPLATE7BR] - shows template value 7 of the available commission amount for the owner invoice account of the bookinginvoice is assigned to or blank with linkebreak
[MASTERACCOUNTTEMPLATE1INVOICEETEMPLATE8BR] - Account Template 1 from master template value 8 of the invoice accountthe invoice is assigned to or blank with linkebreak
[MASTERACCOUNTTEMPLATE2] - Account Template 2 from master account
== Payment Request Variables ==[MASTERACCOUNTTEMPLATE3PAYURL] - Account Template 3 from master accountCreates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.
[MASTERACCOUNTTEMPLATE4PAYURL:25%] - Account Template 4 from master accountCreates a payment url for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
==Account Variables (logged in account, only [PAYURL:200] - Creates a payment url for display in control panel , not the payment request url for auto actions or emails etca fixed amount.) ==These variables can for example used by resellers who added a custom tab to the bookingsnt.
[LOGGEDINACCOUNTIDPAYLINK] - account id of Creates a payment link (HTML A tag) for the logged payment request for the amount in userthe booking deposit field if non zero, otherwise the outstanding balance.
[LOGGEDINACCOUNTTEMPLATE1PAYLINK:25%] - Account Template 1Creates a payment link (HTML A tag) for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
[LOGGEDINACCOUNTTEMPLATE2PAYLINK:200] - Account Template 2Creates a payment link (HTML A tag) for the payment request) for a fixed amount.
[LOGGEDINACCOUNTTEMPLATE3PAYBUTTON] - Account Template 3Creates a payment button for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.
[LOGGEDINACCOUNTTEMPLATE4PAYBUTTON:25%] - Account Template 4 Creates a payment button for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.
[LOGGEDINAPIKEYPAYBUTTON:200] - apiKeyCreates a payment button for the payment request for a fixed amount.
[MASTERLOGGEDINACCOUNTTEMPLATE1PAYPALURL] - Account Template 1 from master accountCreates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise the outstanding balance.
[MASTERLOGGEDINACCOUNTTEMPLATE2PAYPALURL:25%] - Account Template 2 from master accountCreates a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
[MASTERLOGGEDINACCOUNTTEMPLATE3PAYPALURL:200] - Account Template 3 from master accountCreates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.
[MASTERLOGGEDINACCOUNTTEMPLATE4PAYPALLINK] - Account Template 4 from master accountCreates a Paypal payment link (HTML A tag) for the amount in the booking deposit field if non zero, otherwise the outstanding balance.
== Smart Logic Template Variables ==[PAYPALLINK:25%] - Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
IF style template variables [PAYPALLINK:200] - Creates a Paypal payment link (HTML A tag) for a fixed amount. A zero amount will compare two values and display cause paypal to provide a text if field to enter an amount. [PAYPALBUTTON] - Creates a Paypal payment button for the amount in the comparison is true and an alternative text booking deposit field if non zero, otherwise the comparison is falseoutstanding balance. Not recommended for emails. Colons [PAYPALBUTTON: are used between 25%] - Creates a Paypal payment button for a percentage of the two comparison values and outstanding balance. Use 100% to specify the first text, full outstanding balance. Not recommended for emails. [PAYPALBUTTON:200] - Creates a Paypal payment button for a fixed amount. A zero amount will cause paypal to provide a pipe | is used between the two textsfield to enter an amount. Not recommended for emails.Empty text is allowed if you do not want Add a H to display anything for exclude a conditiongateway from displaying.Example: [PAYURL:200:HST] will hide Stripe == Text Operators == [REPLACE|searchForThisText|replaceWithThisText|textToSearch] - replace "searchForThisText" with "replaceWithThisText" within the text "textToSearch"
[IF=:if this:equals this:display this text|otherwise display this text]
[IFIN:if this:is contained in this:display this textSUBSTR|startCharacterNumber|numberOfCharacters|otherwise display this texttextToGetSubstringFrom]- get a sub string from "textToGetSubstringFrom" starting at character "startCharacterNumber" (integer, 0 is the first char) with a length of "numberOfCharacters" (integer)
[IFLIKE:if this:is like this:display this text|otherwise display this text]
1. [IF>:if this:is greater than this:display this textSUBSTR|otherwise display this text0|4|[GUESTPHONENUM]]
[IF>=:if this:is greater than or equal to this:display this text|otherwise display this text]This will test for the first 4 characters of the Guest phone number.
[IF<:if this:is less than this:display this text|otherwise display this text]
[IF<=:if this:is less than or equal TRIM| string to this:display this text|otherwise display this texttrim ]- remove whitespace from the start and end of " string to trim "
[IFBETWEEN:if this:is between this:and this:display this text|if it is lower display this text|if it is higher display this text]== iCal Links ==These template variables will create iCal links which allow the booking to be added to a calendar.
[ICALURL] - Calendar link
You can use IF variables inside other IF variables to create complex logic but the internal IF[ICALURL: must be processed before the external IFThey are processed 16] - Calendar link with check-in the following order from left to right so choose an internal one that is different and processed before the external onehour.i.e. all Replace '16' with the [IF=: will be processed first, then all the [IFIN: etchour check-in starts.
[ICALURL::10] - Calendar link with check-out hour. Replace '10' with the hour with the hour check-out ends. [ICALURL:::summary text] - Calendar link with a summary text [ICALURL::::description text] - Calendar link with a descriptive text Example: Calendar link with check-in time 16:00, check-out time 10:00, the summary text "Booking" and the description text "Sunny Hotel": [ICALURL:16:10:Booking:Sunny Hotel] == Mathematical Operators == Place mathematical operators between two numbers <b>or between two template variables</b> that return a number. [+] - Example: 2 [+] 3 = 5 [-] - Example: 5 [-] 1 = 4 [*] - Example: 3 [*] 4 = 12 [/] - Example: 15 [/] 5 = 3 [MIN] - Example: 2 [MIN] 3 = 2 [MAX] - Example: 2 [MAX] 3 = 3 Brackets are not supported as a way to control processing order, the processing order is fixed as *, /, +, -, MIN, MAX If you want to use * and - in the same calculation, for example you need 20% of the result, then you will need to use the calculation below as a * calculation will be calculated first.  [INVOICECHARGESNUM][*]0.2[-][INVOICESECONDITEMNUM][*]0.2[-][COMMISSIONNUM][*]0.2 <span style="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span> Property Template 1-8 and Room Template 1-8 can be used to set calculations. If using Room Templates to make a calculation, then use Room Template 8 before Room Template 7. If you want to see the value 10. Set Room template 6 = [ROOMTEMPLATE7][+][ROOMTEMPLATE8] and enter 4 in Room template 7 and 6 in Room template 8.  You can set a calculation in Room Templates to show in Property Templates, but not the other way around. So "Property Template1" could pull the calculation of [ROOMTEMPLATE6] and the result = 10.  === Rounding and controlling decimal places === ==== Default ==== 2 [/] 3 = 0.66666666666667 ==== Rounding to the nearest integer ==== 2 [/.0] 3 = 1 ==== Rounding to 1,2,3 or 4 decimal place(s) ==== 2 [/.1] 3 = 0.7 2 [/.2] 3 = 0.67 2 [/.3] 3 = 0.667 2 [/.4] 3 = 0.6667  <b>This works on all operators including [MIN] and [MAX]</b>  Note: Always use the template variables ending with NUM. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbol. == Currency Conversion == [CONVERT:EUR-USD] - get the actual conversion rate between two currencies, this can be used with math functions to show alternative currency values. All currencies supported by the booking page currency selector can be used. Example: [INVOICECHARGESNUM] [*.2] [CONVERT:EUR-USD] will convert the invoice charge value from Euros to USD with two decimal points. If you use the multiplier to convert currencies for channels: For example hotel id 123456 and a multiplier to convert USD to EUR at todays rate: 123456*[CONVERT:USD-EUR]* or this to convert EUR to USD 123456*[CONVERT:EUR-USD] 123456*[CONVERT:USD-EUR][/]0.85 will convert to Euros and divides the price by 0.85 which raises it by circa 15% ==Account Variables (account of the booking) == [ACCOUNTUSERNAME] - Username of the account owning the booking [LOGGEDINACCOUNTUSERNAME] - Username of the person logged in [ACCOUNTID] - account id of the booked property [ACCOUNTTEMPLATE1] - Account Template 1 [ACCOUNTTEMPLATE2] - Account Template 2 [ACCOUNTTEMPLATE3] - Account Template 3 [ACCOUNTTEMPLATE4] - Account Template 4  [COMMISSIONLIMIT] - shows the available commission amount for the owner account of the booking [MASTERACCOUNTTEMPLATE1] - Account Template 1 from master account [MASTERACCOUNTTEMPLATE2] - Account Template 2 from master account [MASTERACCOUNTTEMPLATE3] - Account Template 3 from master account [MASTERACCOUNTTEMPLATE4] - Account Template 4 from master account ==Account Variables (logged in account, only for display in control panel , not for auto actions or emails etc.) ==These variables can for example used by resellers who added a custom tab to the bookings.  [LOGGEDINACCOUNTID] - account id of the logged in user [LOGGEDINACCOUNTTEMPLATE1] - Account Template 1 [LOGGEDINACCOUNTTEMPLATE2] - Account Template 2 [LOGGEDINACCOUNTTEMPLATE3] - Account Template 3 [LOGGEDINACCOUNTTEMPLATE4] - Account Template 4  [LOGGEDINAPIKEY] - apiKey [MASTERLOGGEDINACCOUNTTEMPLATE1] - Account Template 1 from master account [MASTERLOGGEDINACCOUNTTEMPLATE2] - Account Template 2 from master account [MASTERLOGGEDINACCOUNTTEMPLATE3] - Account Template 3 from master account [MASTERLOGGEDINACCOUNTTEMPLATE4] - Account Template 4 from master account == Smart Logic Template Variables == IF style template variables will compare two values and display a text if the comparison is true and an alternative text if the comparison is false. Colons : are used between the two comparison values and the first text, a pipe | is used between the two texts.Empty text is allowed if you do not want to display anything for a condition. [IF=:if this:equals this:display this text|otherwise display this text] [IFIN:if this:is contained in this:display this text|otherwise display this text] [IFLIKE:if this:is like this:display this text|otherwise display this text] [IF>:if this:is greater than this:display this text|otherwise display this text] [IF>=:if this:is greater than or equal to this:display this text|otherwise display this text] [IF<:if this:is less than this:display this text|otherwise display this text] [IF<=:if this:is less than or equal to this:display this text|otherwise display this text] [IFBETWEEN:if this:is between this:and this:display this text|if it is lower display this text|if it is higher display this text]  You can use IF variables inside other IF variables to create complex logic but the internal IF: must be processed before the external IF There are special versions of each IF constructed with ^ and ~ separators like [IF=^this^this^same~different] <span style="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span>Only one IF of each type can be used to create complex logic. The special versions are processed first so should be used as the internal IF so it's result can be processed by the outer if. The special versions can also be used if you expect : or | characters within your data.   IF's are processed in the following order.i.e. all the [IF=^ will be processed first, then all the [IFIN^ etc.  [IF=^[IFIN^[IFLIKE^[IF>^[IF>=^[IF<^[IF<=^[IFBETWEEN^[IF=:[IFIN:[IFLIKE:[IF>:[IF>=:[IF<:[IF<=:[IFBETWEEN:  === Examples === Template variables can be used inside this template variable as per the examples <span style="color: #019cde">comparison in blue</span>, <span style="color: #75d5ad">positive result in green</span>, <span style="color: #fe746c">negative result in red</span>: 1. [<span style="color: #019cde">IF=:[GUESTNAME]</span><span style="color: #75d5ad">:Miller</span><span style="color: #75d5ad"><span style="color: #75d5ad">:yes</span> <span style="color: #fe746c">|no</span>] If the guestname is Miller the text "yes" will display. If the guest name is not Miller the text "no" will display 2.[<span style="color: #019cde"> IF>:[NUMADULT]:2</span><span style="color: #75d5ad">:please contact us about you bedding requirements|</span>] If the number of adults is higher than 2 the text"please contact us about you bedding requirements" will display. If the number of adults is lower than or equal 2 nothing will display. 3. [<span style="color: #019cde">IF<:[NUMADULT]:3</span><span style="color: #75d5ad">:|linen for two adults is included free of charge</span>] If the number of adults is lower than 3 nothing will display. If the number of adults is not lower than 3 the text "linen for two adults is included free of charge" will display.  4. [<span style="color: #019cde">IF<=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>] 5. [<span style="color: #019cde">IF>=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>] 6. [<span style="color: #019cde">IFBETWEEN:[NUMADULT]:1:3</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|too low|too high</span>] 7. [<span style="color: #019cde">IFLIKE:[GUESTTITLE]</span><span style="color: #75d5ad">:Mr:Dear</span><span style="color: #fe746c">|Hi</span>] IFLIKE works like IF= except it is case insensitive and removes any spaces from the start and end of the words 8. [<span style="color: #019cde">IFIN:John:[GUESTFIRSTNAME]</span><span style="color: #75d5ad">:Hi John</span><span style="color: #fe746c">|Your name does not contain John?</span>] If the first word is contained in the second word the first option is displayed, otherwise the second option is displayed 9. [<span style="color: #019cde">IFIN:CHECKIN:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>] If the Booking Info Code CHECKIN has been added to the booking then you will see the value in the text (date/time) otherwise blank.
Using multiple IF statements to display special messages :-
Template variables can be used inside this template variable as per the examples 10. [<span style="color: #019cde">comparison in blue</span>, <span style="colorIFIN: #75d5ad">positive result in green</span>, <span style="colorDEPOSIT: #fe746c">negative result in red</span>[BOOKINGINFOCODES]1. |[<span style="color: #019cde">IF=:[GUESTNAMEGUESTCOUNTRY2]</span><span style="color: #75d5ad">:MillerAU</span><span style="color: #75d5ad"><span style="color: #75d5ad">:yesCredit card details are required </span> <span style="color: #fe746c">|noA deposit is required]|No deposit is required</span>]
If You want to display a special message to Australians if the guestname booking has a DEPOSIT info item code, if a deposit is Miller the text required from a non Australia they get "yesA deposit is required" will display. If the guest name and if no deposit is not Miller the text required they see "noNo deposit is required" will display
211.[<span style="color: #019cde"> IF><:[INADVANCE]:|[IFIN:TRANSFER:[NUMADULTBOOKINGINFOCODES]:23</span><span style="color: #75d5ad">:please contact us about you bedding requirementsPayment Due Date: ASAP </span><span style="color: #fe746c">|Payment Due Date: [FIRSTNIGHT:- 30days]]|</span>]
If the number of adults is higher than 2 the text"please contact us about you bedding requirements" will display. If the number of adults is lower than or equal 2 nothing will You want displaya special message to your guests 3 days before checkin with a Booking Info Code = TRANSFER.
312. [<span style="color: #019cde">IF<=:[NUMADULTSTATUS]:3Confirmed:PAID|[IF<^[INADVANCE]^30</span><span style="color: #75d5ad">^Payment Due Date:|linen for two adults is included free of chargeAs soon as possible</span><span style="color: #fe746c">~Payment Due Date: [FIRSTNIGHT:- 30 days]]</span>]
If You want to display a special message for your guests for any bookings with Status not = Confirmed, and if the number of adults checkin date is lower more than 3 nothing will display. If 30 days in advance, then send the number of adults is not lower than 3 message with "Payment Due Date : "or that the text "linen for two adults Payment is included free of chargedue As soon as possible" will display.
413. [<span style="color: #019cde">IF<=IFBETWEEN:[NUMADULTTURNOVERDAYS]:20:3:</span><span style="color: #75d5ad">:yes|</span><span style="color: #fe746c">|no</span>]
5You want to test if the days until next arrival into the same unit is between 0 and 3 days. Could be used for offering Late Checkouts or additional days to the guest where there is a gap between bookings. [<span style="color: #019cde">IF>=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>]
614. [<span style="color: #019cde">IFBETWEENIF>:[NUMADULTVACANTDAYS]:1:3</span><span style="color: #75d5ad">:yes|</span><span style="color: #fe746c">|too low|too highno</span>]
7You want to test if there is 1 day from the previous checkout to check in of current booking. Could be used for offering Early Checkouts or additional days to the guest where there is a gap between bookings. [<span style="color: #019cde">IFLIKE:[GUESTTITLE]</span><span style="color: #75d5ad">:Mr:Dear|Hi</span>]
IFLIKE works like 15. [<span style="color: #019cde">IF= except it is case insensitive and removes any spaces from the start and end of the words:[LEAVINGDAY:{%a}]:Sun:|[IF>=^[TURNOVERDAYS]^1</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">~no]</span>]
8You want to test if the leaving date is a Sunday and it there is a gap for 1 or more days between the current booking and the next booking. [<span style="color: #019cde">IFIN:John:[GUESTFIRSTNAME]</span><span style="color: #75d5ad">:Hi John</span><span style="color: #fe746c">|Your name does not contain John?</span>]
If the first word is contained in the second word the first option is displayed, otherwise the second option is displayed16. [<span style="color: #019cde">[IF=:[LEAVINGDAY:{%u}]:1:yes|[IF=^[LEAVINGDAY:{%u}]^3</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">]</span>]
9You want to test if the leaving date is a Monday or a Wednesday to send a specific message to the guest, for example a reminder that it is bin collection day. [<span style="color: #019cde">IFIN:CHECKIN:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>]
If the Booking Info Code CHECKIN has been added to the booking then you will see the value in the text (date17. [<span style="color: #019cde">[IF=:[LEAVINGDAY:{%u}]:1:yes|[IF=^[LEAVINGDAY:{%u}]^3^yes][IF=^[LEAVINGDAY:{%u}]^6</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">]</time) otherwise blank. span>]
You have different cleaning teams for different days of the week, and you want to send a message to the appropriate team if leaving date is a Monday, Wednesday or Saturday.
== Write out the number in Words. ==
[INWORDS] - writes out a number in words. This works in English only.
Expamles:
[INWORDS] 10 will write out then"ten"
[INWORDS] [INVOICEPAYMENTSNUM] will write out the invoice sum of all payments
[INWORDS] [INVOICEPAYMENTSNUM] [+] 10 will write out the invoice sum of all payments plus 10
 
Example: You want to display a special message to Australians if the booking has a DEPOSIT info item code, if a deposit is required from a non Australia they get "A deposit is required" and if no deposit is required they see "No deposit is required"
 
[<span style="color: #019cde">IFIN:DEPOSIT:[BOOKINGINFOCODES]:I[IF=:[GUESTCOUNTRY2]:AU</span><span style="color: #75d5ad">:Credit card details are required </span><span style="color: #fe746c">|A deposit is required]|No deposit is required</span>]
== Encoding Template Variables ==
Note<span style="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span> Always use the template variables ending with NUM if numbers are involved. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbol.
2,868

edits

Navigation menu