Changes

Jump to navigation Jump to search

Template Variables

21,042 bytes added, 9 February
[PROPERTYLOCATIONDESCRIPTIONBR] - property location description with line break
[PROPERTYDIRECTIONS] - property directions from ({{#fas:cog}} (SETTINGS) CHANNEL MANNAGER > PROPERTY CONTENT)
[PROPERTYHEADLINE] - property headline
[PROPERTYCANCELPOLICYBR] - property cancellation policy with line breaks
[PROPERTYHOUSERULES] - property house rules ({{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT) [PROPERTYHOUSERULESBR] - property house rules ({{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT) with line break 
[PROPERTYTEMPLATE1] - Property Template 1
[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
[PERMITID] - the permit ID
[CHECKINSTART] - check-in start time in 24hr format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in start') [CHECKINEND] - check-in end time in 24hr format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in end')
[CHECKINENDCHECKOUTEND] - check-in out end time in 24hr format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in out end')
[CHECKOUTENDCHECKINSTART12] - check-out end in start time in 24hr am/pm format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-out endin start')
[CHECKINSTART12CHECKINEND12] - check-in start end time in am/pm format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in startend')
[CHECKINEND12CHECKOUTEND12] - check-in out end time in am/pm format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in out end')
[CHECKOUTEND12PROPERTYDESCRIPTION1] - check-out end time in am/pm format (From Property Description 1 from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT 'Check-out end')
[PROPERTYDESCRIPTION1PROPERTYDESCRIPTION2] - Property Description 1 2 from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYDESCRIPTION2PROPERTYDESCBOOKPAGE1] - Property Description 2 Booking Page 1 from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYDESCBOOKPAGE1PROPERTYDESCBOOKPAGE2] - Property Description Booking Page 1 from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYDESCBOOKPAGE2PROPERTYGUESTDETAILSHEADER] - Property Description Booking Page 1 Guest Details Header from{{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYGUESTDETAILSHEADERPROPERTYGUESTENQUIRYHEADER] - Guest Details Enquiry Header from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYGUESTENQUIRYHEADERPROPERTYCONFIRMBOOKBUTTON] - Guest Enquiry Header Confirm Booking Button Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYCONFIRMBOOKBUTTONPROPERTYROOMNOTAVAIL] - Confirm Booking Button Room Not Available Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYROOMNOTAVAILPROPERTYROOMNOPRICE] - Room Not Available No Price Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYROOMNOPRICEPROPERTYNOROOMSAVAIL] - Room No Price Rooms Available Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYNOROOMSAVAILPROPERTYGROUP] - No Rooms Available Message from {#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENTshows the group keywords
== Room Variables ==
[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
[ROOMMETAAUXTEXTROOMTEMPLATE1BR] - room meta text setting for first booked roomROOM 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
[ROOMMETAAUXTEXTSROOMTEMPLATE7BR] - room meta text setting for all booked roomsROOM Template 7 with linkbreak
[ROOMTEMPLATE8BR] - ROOM Template 8 with linkbreak [ROOMMETAAUXTEXT] - room auxiliary text setting for first booked room {{#fas:cog}} (SETTINGS) PROPERTIES > ROOMS > SETUP > DISPLAY [ROOMMETAAUXTEXTS] - room 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
[ROOMDESCRIPTIONUNITSTATUS1] - Room description from {#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTthe status of the unit
[ROOMDESCRIPTION] - Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT [ROOMDESCRIPTION1] - Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES > ROOMS > SETUP
[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
[ROOMCLEANINGFEENUM] - Cleaning fee from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[ROOMSECURITYDEPOSITNUM] - Securty deposit from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[ROOMTAXPERCENTNUM] - Tax percentate from from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[ROOMTAXPERSONNUM] - Tax per Person Night from from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
== Booking Variables ==
[BOOKIDLAST8] - Last 8 digits of booking number
 
[BEDDING] - displays bedding info codes
[RANDOM1] - a 1 digit random number seeded from the booking number
[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
[INTERNALNOTESBR] - content from "Internal Notes" on the Info Tab with line break
 
[INTERNALNOTESHR] - content from "Internal Notes" on the Info Tab with separating line
=== Content from "Summary" tab see also under "Room" and "Property" ===
[GUESTMOBILENUM] - guests mobile number with all non-numeric characters removed
 
[MOBILELAST1] last digit of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST2] last 2 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST3] last 3 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST4] last 4 digits of the guests mobile number, if mobile is empty the guests phone number will 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
[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
[APIMESSAGE] - api message sent by originating channel [BOOKINGDATE] - booking date in guests language [BOOKINGTIMEDATE] - booking date and timein guests language
[BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format
[BOOKINGIP] - ip address of booker's computer [APIMESSAGE] - api message sent by originating channelsee 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
[GUESTSNAMES] - name of all guests listed on the "guests" tab of the booking of the group booking
 
[GUESTSNAMESINC] - name of all guests listed on the "guests" tab of the booking of the group booking incl. cancelled
[GUESTSFIRSTNAMES] - first name of all guests listed on the "guests" tab of this booking last separated by an &
[GUESTSLASTNAMESINC] - last name of all guests listed on the "guests" tab of this booking incl. cancelled
[BOOKNAMELISTGUESTSADDRESSSBR1] - create a table with address of the first guest names and info for a on the "guests" tab of this booking / Tabelle mit Gastname und Informationen für diese Gruppenbuchunggroup
===Cancellation and Guest Login===[CANCELURLGUESTSADDRESSSBR1INC] - URL to view and cancel bookings address of the first guest on the "guests" tab of this booking group incl. cancelled
[CANCELDATEGUESTSAFULLADDRESSSBR1INC] - date until when the first address including city, postcode, sate and country from the guests tab of the booking is cancellable displaying a phraseincluding cancelled bookings in international format
[CANCELDATEYYYY-MM-DDGUESTSAFULLADDRESSSBR1] - 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 in the past 00-00-0000 will be shownInternational format
[GUESTLOGINGUESTSBFULLADDRESSSBR1INC] - URL to view the first address including city, postcode, sate and country from the guests tab of the booking including cancelled bookingsin European format
==Date and Time==[CURRENTDATEGUESTSBFULLADDRESSSBR1] - current datethe first address including city, postcode, sate and country from the guests tab of the booking in European format
[CURRENTDATEYYYY-MM-DDGUESTSNUMBOOKINGS1] - current date in YYYY-MM-DD formatthe total number of bookings made by the first guest, a group booking counts as one booking.
[CURRENTTIMEGUESTSNUMSTAYS1] - current timethe total number of bookings not cancelled and not in the future made by the first guest, a group booking counts as one booking.
[DAYSTOCHECKINGUESTSCUSTOMQ1S] - number of days until check-inanswer to custom question 1 for all guests
[INADVANCEGUESTSCUSTOMQ1SINC] - number of days between booking and check-inanswer to custom question 1 for all guests including cancelled bookings
[GUESTSCUSTOMQ2S] - answer to custom question 2 for all guests
You can use PHP strftime format strings [GUESTSCUSTOMQ2SINC] - answer to create custom time 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 2 for all guests including cancelled bookings
[DAYSBETWEEN:2019-11-01:2019-11-10GUESTSCUSTOMQ3S] - 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 3 for calculation.all guests
Example: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}GUESTSCUSTOMQ3SINC]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today. answer to custom question 3 for all guests including cancelled bookings
[FIRSTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ4S] - first night bookedanswer to custom question 4 for all guests
[FIRSTNIGHT:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ4SINC] - 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 including cancelled bookings
[LASTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ5S] - last night bookedanswer to custom question 5 for all guests
[LASTNIGHT:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ5SINC] - 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 including cancelled bookings
[LEAVINGDAY:{%A, %e %B, %Y}GUESTSCUSTOMQ6S] - check-out answer to custom question 6 for all guests
[LEAVINGDAY:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ6SINC] - 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 6 for all guests including cancelled bookings
[CURRENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - current dateanswer to custom question 7 for all guests
[CURRENTDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ7SINC] - 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 7 for all guests including cancelled bookings
[BOOKINGDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - booking dateanswer to custom question 8 for all guests
[BOOKINGDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ8SINC] - 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 including cancelled bookings
[MODIFYDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ9S] - last booking modification date/time, the display can be any valid PHP strftime format string.answer to custom question 9 for all guests
[PAYMENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ9SINC] - most recent payment dateanswer to custom question 9 for all guests including cancelled bookings
[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000GUESTSCUSTOMQ10S] - 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. The second parameter specifies the payment answer to show, 0 or missing means the most recent payment. The third parameter specifies the invoicee.custom question 10 for all guests
== Booking Group variables ===== Custom Booking Group Table ===create your own booking group list by specifying the columns in the order you want them [GUESTSCUSTOMQ10SINC] - answer to appear.custom question 10 for all guests including cancelled bookings
for example: ===Cancellation, Management and Guest Login===[BOOKGROUP:PROP_ROOM_BREF_NAMECANCELLEDTIME] - date when the booking was cancelled
column parameters[CANCELLEDTIME:{%A, %e %B, %Y}] - date when the booking was cancelled display can be any valid PHP strftime format string
ADDR = Booking address[CANCELURL] - URL to view and cancel bookings
ADUL= [CANCELDATE] - date until when the number of adultsbooking is cancellable displaying a phrase
ARIV = Arrival [CANCELDATEYYYY-MM-DD] - dateuntil when the booking is cancellable displaying a date. If the date is in the past 00-00-0000 will be shown
BREF = Booking [DAYSTOCANCEL] - numberof days until booking can be cancelled
CITY = Booking city [CANCELUNTIL] - 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
CHAR = Charges[GUESTLOGIN] - URL to view bookings
CHIL = [TURNOVERDAYS] - days until next arrival into the number of childrensame unit not considering black bookings
COUN = Booking country [TURNOVERDAYSB] - days until next arrival into the same unit considering black bookings
DEPT = Departure date[VACANTDAYS] days from previous checkout to check in of current booking not considering black bookings
EMAI = Booking Email [VACANTDAYSB] days from previous checkout to check in of current booking considering black bookings
FLAG = Booking flag text=Date and Time==
FNAM = Booking first name[CURRENTDATE] - current date
[CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format
GADD = Guest address[CURRENTDATE:{%A, %e %B, %Y}] - current date
GCIT = Guest city[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.
GCOM = Guest company[CURRENTTIME] - current time and the display can be any valid PHP strftime format string.
GCOU = Guest 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.
GFLA = Guest flag text[DAYSTOCHECKIN] - number of days until check-in
GFNA = Guest first name [INADVANCE] - number of days between booking and check-in
GLNA = Guest last name[DAYSBETWEEN:2019-11-01:2019-11-10] - this template variable will calculate the number of days between the :: the dates need to be in yyyy-mm-dd format. Template variables can be used for calculation.
GMOB = Guest mobileExample: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today.
GNAM = Guest full name[FIRSTNIGHT:{%A, %e %B, %Y}] - first night booked
GEMA = Guest Email[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.
GNOT = Guest note[LASTNIGHT:{%A, %e %B, %Y}] - last night booked
GPOS = Guest postcode[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.
GREF = Guest Id[LEAVINGDAY:{%A, %e %B, %Y}] - check-out
GSTA = Guest state[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.
GTEL = Guest phone[BOOKINGDATE:{%A, %e %B, %Y}] - booking date
ICAN = Include cancelled bookings[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.
LNAM = Booking [MODIFYDATE:{%A, %e %B, %Y}] - last namebooking modification date/time, the display can be any valid PHP strftime format string.
MOBI = Booking mobile[PAYMENTDATE:{%A, %e %B, %Y}] - most recent payment date
NAME = Booking full name[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.
NOTE = Booking note[AUTHORIZEUNTIL] - date until which a card is authorized, this is extracted from the most recent authorize booking info code.
ONAM = Offer Name [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.
ONLY = Just show [FORMATDATE:[any template variable that creates a date]{%A, %e %B, %Y}] - custom format the one bookingdate. The date value could be included by inserting a different template variable containing a date.
PAID = Paid amount
PEOP = The following codes can be used in any order between the number of guests{} brackets to create custom time and date formats.
PHON = Booking phone %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 ("%")
POST = = Booking Group variables ===== Custom Booking postcodeGroup Table ===create your own booking group list by specifying the columns in the order you want them to appear.
PROP = Property namefor example: [BOOKGROUP:PROP_ROOM_BREF_NAME]
RDE0 = Room description from {#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTcolumn parameters
RDE1 100% = Room description 1 from {#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUP100% width
RNAM ADDR = Room Display Name ROOM = Room nameBooking address
STAT ADUL= Booking statethe number of adults
TOTA ARIV = Total priceArrival date
UNI2 BOPR = Unit first additional information UNI3 = Unit second additional informationBold prices
UNIT BREF = Unit nameBooking number
BRL1 = Last digit of booking number
Connect the parameters with an underscore. BRL2 = Last 2 digits of booking number
Examples: BRL3 = Last 3 digits of booking number
[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, BRL4 = Last 4 digits of booking number and guest name in this order.
BRL5 = Last 5 digits of booking number
[BOOKGROUP:BREF_NAME_PROP_ROOM] will display the BRL6 = Last 6 digits of booking number, guest name property name and room name in this order.
==CITY = Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - create a table of guest names including room type for a group bookingcity
[BOOKGROUPROOMLISTTOTAL] - create a table of guest names including room type for a group booking CHAC = Charges with guest totalscurrency symbol
[BOOKGROUPROOMLISTCHARGETOTAL] - create a table of guest names including room type and charge for a group booking with guest totalsCHAR = Charges
[BOOKGROUPNAMELIST] - create a table CHIL = Number of guest names including room type and unit for a group bookingchildren
[BOOKGROUPNAMELISTTOTAL] - create a table of guest names including room type and unit for a group booking with guest totalsCOUN = Booking country
[BOOKGROUPNAMELISTCHARGETOTAL] - create a table of guest names including room type and unit and charge for a group booking with guest totalsDEPT = Departure date
[BOOKGROUPUNITLIST] - create a table of guest names including unit for a group bookingEMAI = Booking Email
[BOOKGROUPUNITLISTTOTAL] - create a table of guest names including unit for a group booking with guest totalsEXSP = extra space between rows
[BOOKGROUPUNITLISTCHARGETOTAL] - create a table of guest names including unit and charge for a group booking with guest totalsFLAG = Booking flag text
FNAM == Invoice Variables ==[INVOICENUMBER] - invoice numberBooking first name
[INVOICENUMBERS] - invoice number if invoicees are involvedGADD = Guest address
[INVOICEDATE] - invoice dateGCIT = Guest city
[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. GCOM === Invoice Values ===These template variables will display a value form the invoice.Guest company
GCOU ==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value from an invoice. Available content variables are: Guest country
CHA - chargesGFLA = Guest flag text
CON - currency conversion. Example: CONEURUSD will convert the GFNA = Guest first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234 name
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the languageGLNA = Guest last name
DP0 - no decimal placesGMOB = Guest mobile
DP1 - 1 decimal placeGNAM = Guest full name
DP2 - 2 decimal placesGEMA = Guest Email
DP3 - 3 decimal placesGNOT = Guest note
DP4 - 4 decimal places GPOS = Guest postcode
DESsome description - sum of values with "some description"GREF = Guest Id
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 GSTA = Guest state
IT1 - item 1 in the invoiceGTEL = Guest phone
IT2 - item 2 in the invoice ICAN = Include cancelled bookings
IT3 - item 3 in the invoiceLNAM = Booking last name
IT4 - item 4 in the invoiceMOBI = Booking mobile
IT5 - item 5 in the invoiceNAME = Booking full name
MUL - multiplier. Example: MUL1.2 will multiply all prices by 1.2 NOHE = no header
NUM - show with decimal place (for scripts)NOTE = Booking note
THO - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language NUMN = Number of nights booked
UPS1 - upsell 1ONAM = Offer Name
UPS2 - upsell 2ONLY = Just show the one booking
UPS3 - upsell 3PAIC = Payment amount with currency symbol
UPS4 - upsell 4PADD = Property Address
UPS5 - upsell 5PAID = Paid amount
ONE - shows only items from the specified booking (not the booking group)PCIT = Property City
PAY - shows payments PEOP = Number of guests
QTY - shows quantityPHON = Booking phone
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.POST = Booking postcode
SIN - 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 with this status. PROP = Property name
VAT - VAT summaryRDE0 = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
RDE1 = Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUP
Connect the variables with an underscore. RNAM = Room Display Name ROOM = Room name
Examples: RQTY = shows the number of rooms for each booking and a total at the bottom
[INVOICEVAL:PAY_THO] will show payments with a thousands separatorSTAT = Booking state
STUS ==== Standard Invoice Values====[INVOICEBALANCE] - invoice balanceStatus
[INVOICEBALANCE:50%] - percentage TEXT = Prints a plain text table instead of invoice balanceHTML
[INVOICEBALANCE:-100] - invoice balance with offset amountTOTA = Total price
[INVOICEBALANCENUM] - As per [INVOICEBALANCE] but the value is displayed with a decimal point and no thousands separator (for calculation).UNI2 = Unit first additional information UNI3 = Unit second additional information
[INVOICEBALANCENUM:] - As per [INVOICEBALANCE:] but the value is displayed with a decimal point and no thousands separator (for calculation).UNIT = Unit name
[INVOICEPARTBALANCE:status1,status2,!status4:10%] - Calculate the balance 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, 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 with the percent (%) symbol or a numeric value offset.
[INVOICEPARTBALANCENUM:status1,status2,status4:10%] - As per INVOICEPARTBALANCE but Connect the value is displayed parameters with a decimal point and no thousands separator (for calculation)an underscore.
[INVOICEBALANCE1] - invoice balance of one booking only, not the booking groupExamples:
[INVOICEBALANCE1NUMBOOKGROUP:PROP_ROOM_BREF_NAME] - As per [INVOICEBALANCE1] but will display the value is displayed with a decimal point property name, room name, booking number and no thousands separator (for calculation)guest name in this order.
[INVOICECHARGES] - invoice sum of all charges
[INVOICECHARGESBOOKGROUP:50%BREF_NAME_PROP_ROOM] - invoice sum of all charges with percentage multiplierwill display the booking number, guest name property name and room name in this order.
=== Booking Group Table with fixed content===[INVOICECHARGES:-100BOOKGROUPROOMLIST] - invoice sum create a table of all charges with offset guest names including room type for a group booking
[INVOICECHARGESNUMBOOKGROUPROOMLISTTOTAL] - As per [INVOICECHARGES] but the value is displayed with create a decimal point and no thousands separator (table of guest names including room type for calculation)a group booking with guest totals
[INVOICECHARGESNUM:BOOKGROUPROOMLISTCHARGETOTAL] - As per [INVOICECHARGES:] but the value is displayed with create a decimal point table of guest names including room type and no thousands separator (charge for calculation)a group booking with guest totals
[INVOICEPARTCHARGES:status1,status2,!status4:10%BOOKGROUPNAMELIST] - Calculate the balance create a table of all invoice charges with matching status guest names including room type 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, unit 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.group booking
[INVOICEPARTCHARGESNUM:status1,status2,status4:10%BOOKGROUPNAMELISTTOTAL] - As per INVOICEPARTCHARGES but the value is displayed with create a decimal point table of guest names including room type and no thousands separator (unit for calculation).a group booking with guest totals
[INVOICEPAYMENTSBOOKGROUPNAMELISTCHARGETOTAL] - invoice sum create a table of all payments guest names including room type and unit and charge for a group booking with guest totals
[INVOICEPAYMENTS:50%BOOKGROUPUNITLIST] - invoice sum create a table of all payments with percentage multiplier guest names including unit for a group booking
[INVOICEPAYMENTS:-100BOOKGROUPUNITLISTTOTAL] - invoice sum create a table of all payments guest names including unit for a group booking with offset guest totals
[INVOICEPAYMENTSNUMBOOKGROUPUNITLISTCHARGETOTAL] - As per [INVOICEPAYMENTS] 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 ==[INVOICEPAYMENTSNUM:50%INVOICENUMBER] - As per [INVOICEPAYMENTS:50%] but the value is displayed with a decimal point and no thousands separator.invoice number
[INVOICEPARTPAYMENTS:status1,status2,!status4:10%INVOICENUMBERS] - 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.if invoicees are involved
[INVOICEPARTPAYMENTSNUM:status1,status2,status4:10%INVOICEDATE] - As per INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculation).invoice date
[INVOICEPENDPAYINVOICEDATES] - all (auto and manual) pending payments including failedinvoice date invoice number if invoicees are involved
[INVOICEPENDPAYNUMINVOICEDATE:+1day{%A, %e %B, %Y}] - all (auto optional date offset and display format. The offset can be any plus or minus any number of days and manual) pending payments including failed but the value is displayed with a decimal point and no thousands separator (for calculation)display can be any valid PHP strftime format string.
[INVOICEPENDPAY1234INVOICEDATES:+1day{%A, %e %B, %Y}] - all (auto 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 manual) pending payments including failed for the specified invoiceedisplay can be any valid PHP strftime format string.
[INVOICEPENDPAYNUM1234] - all (auto and manual) pending payments including failed for === Invoice Values ===These template variables will display a value form the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation)invoice.
==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value from an invoice. [INVOICEPENDPAYAUTO] - auto pending payments before due date INVOICEVAL with a selection of the following variables specifies the calculation:
[INVOICEPENDPAYAUTONUM] CHA - auto pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).charges
[INVOICEPENDPAYAUTO1234] auto pending payments before due date for CON - currency conversion. Example: CONEURUSD will convert the specified invoicee but first currency (Euros) to the value is displayed with a decimal point and no thousands separator second currency (for calculationUSD). CON1.234 would multiply the prices by 1.234
[INVOICEPENDPAYAUTONUM1234] auto pending payments before due date for the specified invoicee but the value is displayed with DEC - Decimal points. Example: DEC, will show a comma as decimal point and no thousands separator (. If nothing is set the system will use the default for calculation)the language
[INVOICEPENDPAYFAIL] DP0 - failed pending payments (all also past)no decimal places
[INVOICEPENDPAYFAILNUM] DP1 - failed pending payments (all also past) but the value is displayed with a 1 decimal point and no thousands separator (for calculation)place
[INVOICEPENDPAYFAIL234] DP2 - failed pending payments (all also past) for the specified invoicee 2 decimal places
[INVOICEPENDPAYFAILNUM234] DP3 - failed pending payments (all also past) for the specified invoicee but the value is displayed with a 3 decimal point and no thousands separator (for calculation)places
[INVOICECREDITS] DP4 - invoice sum of all credit items (negative items)4 decimal places
[INVOICECREDITS:50%] DES - invoice used as "DESsome description" - gives the sum of all credit items with percentage multiplier values containing the description "some description"
[INVOICECREDITSINV - 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-100] - invoice sum of 1 will show all credit items with offset from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking
[INVOICECREDITSNUM] IT1 - As per [INVOICECREDITS] but item 1 in the value is displayed with a decimal point and no thousands separator (for calculation)invoice
[INVOICECREDITSNUM:] IT2 - As per [INVOICECREDITS:] but item 2 in the value is displayed with a decimal point and no thousands separator (for calculation)invoice
[INVOICEDEBITS] IT3 - item 3 in the invoice sum of all debit items (positive items)
[INVOICEDEBITS:50%] IT4 - item 4 in the invoice sum of all debit items with percentage multiplier
[INVOICEDEBITS:-100] IT5 - item 5 in the invoice sum of all debit items with offset
[INVOICEDEBITSNUM] MUL - As per [INVOICEDEBITS] but the value is displayed with a decimal point and no thousands separator (for calculations) (for calculations)multiplier. Example: MUL1.2 will multiply all prices by 1.2
[INVOICEDEBITSNUM:] NUM - As per [INVOICEDEBITS:] but the value is displayed show with a decimal point and no thousands separator place (for calculationsscripts)
[INVOICEVAT] THO - invoice sum of all vat valuethousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language
[INVOICEVATNUM] UPS1 - invoice sum of all vat value for calculations)upsell 1
[INVOICEFIRSTITEM] UPS2 - price of the item listed first in the invoiceupsell 2
[INVOICEFIRSTITEMNUM] UPS3 - price of the item listed first in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)upsell 3
[INVOICESECONDITEM] UPS4 - price of the item listed second in the invoiceupsell 4
[INVOICESECONDITEMNUM] UPS5 - price of the item listed second in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)upsell 5
[INVOICETHIRDITEM] ONE - price of shows only items from the item listed third in specified booking (not the invoicebooking group)
[INVOICETHIRDITEMNUM] PAY - price of the item listed third in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)shows payments
[INVOICEUPSELL0] QTY - base price without upsell items or other charges added latershows quantity
[INVOICEUPSELLNUM0] SEX - as per [INVOICEUPSELL1] but status excluded. Calculate the value is displayed balance of all invoice items except for the ones with these status, the status items can be a decimal point and no thousands separator (for calculations)comma separated list. Example: SEX status1,status2,status4 will not show items with this status.
[INVOICEUPSELL1] SIN - value status included. Calculate the balance of upsell item 1 (number all invoice items with matching status, the status items can be between 0 to 20)a comma separated list. Example: SIN status1,status2,status4 will only show items with this status.
[INVOICEUPSELLNUM1] VAT - as per [INVOICEUPSELL1] but the value is displayed with a decimal point and no thousands separator (for calculations)VAT summary
[INVOICEUPSELLQTY1] - quantity of upsell item 1 (number can be between 1 to 20)
[INVOICEUPSELLHEADLINE1] - headline of upsell item 1 (number can be between 1 to 20)Connect the variables with an underscore.
[INVOICEUPSELLDESCRIPTION1] - description of upsell item 1 (number can be between 1 to 20)Examples:
[INVOICEEXTRAITEMDESC1INVOICEVAL:PAY_THO] - Name of extra invoice item 1 (number can be between 0 to 20)will show payments with a thousands separator
[INVOICEEXTRAITEM1INVOICEVAL:UPS1_UPS2] - value will show the sum of extra invoice item upsell 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. and upsell 2
==== Standard Invoice Values====[INVOICEEXTRAITEM1INVOICEBALANCE] - 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. balance
[INVOICEEXTRAITEMNUM1INVOICEBALANCE:50%] - as per [INVOICEEXTRAITEM1] but the value is displayed with a decimal point and no thousands separator (for calculations).percentage of invoice balance
[INVOICEEXTRAITEMQTY1INVOICEBALANCE:-100] - quantity 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. balance with offset amount
[INVOICEGROSS:1INVOICEBALANCENUM] - gross amount of As per [INVOICEBALANCE] but the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculationscalculation).
INVOICEGROSSNUM[INVOICEBALANCENUM:1] gross amount of - As per [INVOICEBALANCE:] but the inserted VAT rate value is displayed with a decimal point and no thousands separator (number is the VAT ratefor calculation).
[INVOICENETINVOICEPARTBALANCE:1status1,status2,!status4:10%] - net amount Calculate the balance 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, for example !status1. The offset is optional and can be specified after a second colon (:) and it can be a percentage by ending the inserted VAT rate (number is with the VAT ratepercent (%)symbol or a numeric value offset.
[INVOICENETNUMINVOICEPARTBALANCENUM:1status1,status2,status4:10%] - net amount of the inserted VAT rate (number is As per INVOICEPARTBALANCE but the VAT rate), value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEVAT:1INVOICEBALANCE1] - VAT amount invoice balance of one booking only, not the inserted VAT rate (number is the VAT rate)booking group
[INVOICEVATNUM:1INVOICEBALANCE1NUM] VAT amount of the inserted VAT rate (number is - As per [INVOICEBALANCE1] but the VAT rate), value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEITEMBYDESC:SearchtermINVOICECHARGES] - searches the invoice for items with this search term and adds them upsum of all charges
[INVOICEITEMBYDESCNUMINVOICECHARGES:Searchterm50%] - searches the invoice for items sum of all charges with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)percentage multiplier
[INVOICEPAYMENTBYDESCINVOICECHARGES:Searchterm-100] - searches the payments for items invoice sum of all charges with this search term and adds them upoffset
[INVOICEPAYMENTBYDESCNUM:SearchtermINVOICECHARGESNUM] - searches As per [INVOICECHARGES] but the payments for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculationscalculation)
=== Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[INVOICETABLEINVOICECHARGESNUM:] - invoice tableAs per [INVOICECHARGES:] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICETABLEVATINVOICEPARTCHARGES:status1,status2,!status4:10%] - Calculate the balance of all invoice table charges with vat information matching status and vat summaryapply 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.
[INVOICETABLEINVOICEPARTCHARGESNUM:$1.1$status1,status2,status4:10%] - invoice table As per INVOICEPARTCHARGES but the value is displayed with a decimal point and currency multiplier with optional new currency symbol before or after priceno thousands separator (for calculation).
[INVOICETABLEPART:status1,status2,!status4INVOICEPAYMENTS] - Invoice 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. invoice sum of all payments
[INVOICETABLE2INVOICEPAYMENTS:50%] - invoice table sum of all payments with status fieldpercentage multiplier
[INVOICETABLE2INVOICEPAYMENTS:$1.1$-100] - invoice table with status field and currency multiplier sum of all payments with optional new currency symbol before or after price.offset
[INVOICETABLECHARGESINVOICEPAYMENTSNUM] - invoice table showing charges onlyAs per [INVOICEPAYMENTS] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICETABLECHARGESINVOICEE1234INVOICEPAYMENTSNUM:50%] - invoice table showing charges only assigned to the specified invoicee, specify As per [INVOICEPAYMENTS:50%] but the invoicee Id numbervalue is displayed with a decimal point and no thousands separator.
[INVOICETABLENOTOTINVOICEPARTPAYMENTS:status1,status2,!status4:10%] - Calculate the balance of all invoice table without grand totalpayments 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.
[INVOICETABLENOTOTINVOICEPARTPAYMENTSNUM:$1.1$status1,status2,status4:10%] - invoice table without grand total As per INVOICEPARTCHARGES but the value is displayed with a decimal point and currency multiplier with optional new currency symbol before or after priceno thousands separator (for calculation).
[INVOICETABLENOTOT2INVOICEPENDPAY] - invoice table with status field without grand totalall (auto and manual) pending payments including failed
[INVOICETABLENOTOT2:$1.1$INVOICEPENDPAYNEXTDATE] - invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.date of the next pending payment
[INVOICETABLEVATINVOICEPENDPAYNEXTDATE:$1.1$] - invoice table with vat information and currency multiplier with optional new currency symbol before or after pricedate of the next pending payment display can be any valid PHP strftime format string. Information about PHP strftime Strings can be find found here: http://php.net/manual/de/function.strftime.php
[INVOICETABLEVATCOMPACTINVOICEPENDPAYNUM] - compact version of invoice table all (auto and manual) pending payments including failed but the value is displayed with vat information a decimal point and vat summaryno thousands separator (for calculation).
[INVOICETABLEVATCOMPACT:$1.1$INVOICEPENDPAY1234] - all (auto and manual) pending payments including failed for the specified invoicee (- compact version 1 will include all items regardless of invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price.invoicee)
[INVOICETABLEVATCOMPACTNOSUMINVOICEPENDPAYNUM1234] - all (auto and manual) pending payments including failed for the specified invoicee (- compact version 1 will include all items regardless of invoice table invoicee) The value is displayed with vat information without vat summarya decimal point and no thousands separator (for calculation).
[INVOICETABLEVATCOMPACTNOSUM:$1.1$INVOICEPENDPAYAUTO] - compact version of invoice table with vat information without vat summary auto and currency multiplier with optional new currency symbol pending payments before or after price.due date
[INVOICETABLEVATNOSUMINVOICEPENDPAYAUTONUM] - auto - invoice table pending payments before due date but the value is displayed with vat information without vat summarya decimal point and no thousands separator (for calculation).
[INVOICETABLEVATNOSUM:$1.1$INVOICEPENDPAYAUTO1234] - invoice table auto pending payments before due date for the specified invoicee but the value is displayed with vat information without vat summary a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculation) (-1 will include all items regardless of invoicee)
[INVOICETABLEDATEVATNOSUMINVOICEPENDPAYAUTONUM1234] - invoice table auto pending payments before due date for the specified invoicee but the value is displayed with vat information a decimal point and date without vat summaryno thousands separator (for calculation) (-1 will include all items regardless of invoicee)
[INVOICETABLEDATEVATNOSUM:$1.1$INVOICEPENDPAYFAIL] - invoice table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.failed pending payments (all also past)
[INVOICETABLEVAT2INVOICEPENDPAYFAILNUM] - invoice table failed pending payments (all also past) but the value is displayed with vat information a decimal point and status field and vat summaryno thousands separator (for calculation)
[INVOICETABLEVAT2:$1.1$INVOICEPENDPAYFAIL234] - invoice table with vat information and status field and vat summary and currency multiplier with optional new currency symbol before or after price.failed pending payments (all also past) for the specified invoicee (-1 will include all items regardless of invoicee)
[INVOICETABLEVAT2NOSUMINVOICEPENDPAYFAILNUM234] - invoice table failed pending payments (all also past) for the specified invoicee but the value is displayed with vat information a decimal point and status field without vat summaryno thousands separator (for calculation) (-1 will include all items regardless of invoicee)
[INVOICETABLEVAT2NOSUM:$1.1$INVOICEPENDPAYRULE1] - invoice table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or after price.shows all pending payment for this rule (exchange 1 for the rule number)
[INVOICETABLEVATCHARGESINVOICEPENDPAYRULENUM1] - invoice table showing charges only shows all pending payment for this rule (exchange 1 for the rule number) displayed with vat information a decimal point and vat summaryno thousands separator (for calculation)
[INVOICETABLENOPRICEINVOICEPENDPAYMANUAL] - invoice table with no price information manual pending payments
[INVOICETABLEINVOICEEINVOICEPENDPAYMANUALNUM] - invoice table excluding items assigned to an invoicee manual pending payments but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICETABLEINVOICEE1234INVOICEPENDPAYMANUALNOTDUE] - invoice table for a specific invoicee, specify the invoicee Id number.manual pending payments before due date
[UPSELLTABLEINVOICEPENDPAYMANUALNOTDUENUM] - table manual pending payments before due date but the value is displayed with all upsell itemsa decimal point and no thousands separator (for calculation).
[UPSELLTABLEVATINVOICEPENDPAYMANUALOVERDUE] - table with all upsell items with vat information and vat summary manual pending payments after due date
[UPSELLTABLENOREFUNDINVOICEPENDPAYMANUALOVERDUENUM] - table manual pending payments after due date but the value is displayed with all upsell items except refundable itemsa decimal point and no thousands separator (for calculation)
==== Custom Invoice Table ====You have the option to create a custom [INVOICECREDITS] - invoice table. Available content variables are: sum of all credit items (negative items)
AMO [INVOICECREDITS:50%] - shows the net value (price x quantity)invoice sum of all credit items with percentage multiplier
CEX [INVOICECREDITS:- charges excluded (charges will not be shown)100] - invoice sum of all credit items with offset
CON [INVOICECREDITSNUM] - currency conversion. Example: CONEURUSD will convert As per [INVOICECREDITS] but the first currency value is displayed with a decimal point and no thousands separator (Eurosfor calculation) to the second currency (USD). CON1.234 would multiply the prices by 1.234
CUA [INVOICECREDITSNUM:] - currency symbol showing after the numbers. ExampleAs per [INVOICECREDITS: CUA€ will show € after ] but the figuresvalue is displayed with a decimal point and no thousands separator (for calculation)
CUB [INVOICEDEBITS] - currency symbol showing before the numbers. Example: CUB€ will show € before the figuresinvoice sum of all debit items (positive items)
DAT [INVOICEDEBITS:50%] - adds a date columninvoice sum of all debit items with percentage multiplier
DEC [INVOICEDEBITS:- Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the language100] - invoice sum of all debit items with offset
DP0 [INVOICEDEBITSNUM] - As per [INVOICEDEBITS] but the value is displayed with a decimal point and no decimal placesthousands separator (for calculations) (for calculations)
DP1 [INVOICEDEBITSNUM:] - 1 As per [INVOICEDEBITS:] but the value is displayed with a decimal placepoint and no thousands separator (for calculations)
DP2 [INVOICEVAT] - 2 decimal placesinvoice sum of all vat value
DP3 [INVOICEVATNUM] - 3 decimal placesinvoice sum of all vat value for calculations)
DP4 [INVOICEFIRSTITEM] - 4 decimal placesprice of the item listed first in the invoice
GRP [INVOICEFIRSTITEMNUM] - Group Totals. Displays price of the same items as item listed first in the invoice but the value is displayed with a totaldecimal point and no thousands separator (for calculations)
GRT [INVOICESECONDITEM] - Grand Totalprice of the item listed second in the invoice
INV [INVOICESECONDITEMNUM] - 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 price of the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add item listed second in the invoicee from invoice but the bookingvalue is displayed with a decimal point and no thousands separator (for calculations)
LAN [INVOICETHIRDITEM] - language. Example LANDE will force price of the language to Germanitem listed third in the invoice
MUL [INVOICETHIRDITEMNUM] - multiplier. Example: MUL1.2 will multiply all prices by 1.2price of the item listed third in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)
NIN [INVOICEFOURTHITEM] - do not show price of the item listed fourth in the invoice number and invoice date on locked invoices
NOC [INVOICEFOURTHITEMNUM] - charges will not be displayed price of the item listed fourth in the invoice but their vat values are still calculated for the vat summary value is displayed with a decimal point and no thousands separator (VATfor calculations)
NOP [INVOICEFIFTHITEM] - payments will not be displayed price of the item listed fifth in the invoice
ONE [INVOICEFIFTHITEMNUM] - shows only items from price of the specified booking item listed fifth in the invoice but the value is displayed with a decimal point and no thousands separator (not the booking groupfor calculations)
PAA [INVOICEUPSELL0] - shows a column with payment amountsbase price without upsell items or other charges added later
PAY [INVOICEUPSELLNUM0] - shows payments as per [INVOICEUPSELL1] but the value is displayed with a decimal point and no thousands separator (for calculations)
PEN [INVOICEUPSELL1] - shows pending payments descriptionvalue of upsell item 1 (number can be between 0 to 20)
PPA [INVOICEUPSELLNUM1] - shows pending payments amount as per [INVOICEUPSELL1] but the value is displayed with a decimal point and no thousands separator (for calculations)
PRI [INVOICEUPSELLQTY1] - shows prices in a columnquantity of upsell item 1 (number can be between 1 to 20)
QTY [INVOICEUPSELLNAME1] - shows quantityname of the headline field of upsell item 1 (number can be between 1 to 20)
SEX [INVOICEUPSELLSTATUS1] - status excluded. Calculate stautus of the balance headline field of all invoice items except for the ones with these status, the status items upsell item 1 (number can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this status.between 1 to 20)
SIN [INVOICEUPSELLHEADLINE1] - headline (name and status included. Calculate the balance if used of all invoice items with matching status, the status items upsell item 1 (number can be a comma separated list. Example: SIN status1,status2,status4 will only show items with this status.between 1 to 20)
STA[INVOICEUPSELLDESCRIPTION1] - shows stausdescription of upsell item 1 (number can be between 1 to 20)
THO [INVOICEUPSELLAMOUNTNUM1] - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the languageamout of upsell item 1
TOT - shows total amounts
VAA - shows VAT amounts
VAP - shows VAT percents
VAT [INVOICEUPSELLTYPE1] - VAT summarytype of upsell item 1
[INVOICEUPSELLPER1] - per of upsell item 1
Connect the variables with an underscore. [INVOICEUPSELLPERIOD1] - period of upsell item 1
Examples:
[INVOICE:PRI_QTY_CUA€INVOICEEXTRAITEMDESC1] will create an - Name of extra invoice table with price and quantity in Euros.item 1 (number can be between 0 to 20)
[INVOICE:PAY_TOT_CEXINVOICEEXTRAITEM1] will create an - value of extra invoice table which will only show paymentsitem 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.
== Invoicee Variables ==[INVOICEEBALANCEINVOICEEXTRAITEM1] - value of extra invoice balance for unassigned 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 itemsare entered.
[INVOICEEBALANCENUMINVOICEEXTRAITEMNUM1] - invoice balance for unassigned invoice items as per [INVOICEEXTRAITEM1] but the value is displayed with a decimal point and no thousands separator(for calculations).
[INVOICEEBALANCE1234INVOICEEXTRAITEMQTY1] - quantity of extra invoice balance for invoice items assigned to invoicee 1234 item 1 (change 1234 number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the order the required Invoicee Id number)items are entered.
[INVOICEEBALANCENUM1234INVOICEGROSS:1] - invoice balance for invoice items assigned to invoicee 1234 gross amount of the inserted VAT rate (change 1234 to number is the required Invoicee Id numberVAT rate) , value is displayed with a decimal point and no thousands separator.(for calculations)
[INVOICEECHARGESINVOICEGROSSNUM:1] - invoice charges for unassigned invoice items.gross amount of the inserted VAT rate (number is the VAT rate)
[INVOICEECHARGESNUMINVOICENET:1] - invoice charges for unassigned invoice items displayed with a decimal point and no thousands separator.net amount of the inserted VAT rate (number is the VAT rate)
[INVOICEECHARGES1234INVOICENETNUM:1] - invoice charges for invoice items assigned to invoicee 1234 net amount of the inserted VAT rate (change 1234 to number is the required Invoicee Id numberVAT rate), value is displayed with a decimal point and no thousands separator (for calculations).
[INVOICEECHARGESNUM1234INVOICEVAT:1] - invoice charges for invoice items assigned to invoicee 1234 VAT amount of the inserted VAT rate (change 1234 to number is the required Invoicee Id numberVAT rate) displayed with a decimal point and no thousands separator.
[INVOICEEPAYMENTSINVOICEVATNUM:1] - invoice payments VAT amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for unassigned invoice items.calculations)
[INVOICEEPAYMENTSNUMINVOICEITEMBYDESC:Searchterm] - searches the invoice payments for unassigned invoice items displayed with a decimal point this search term and no thousands separator.adds them up
[INVOICEEPAYMENTS1234INVOICEITEMBYDESCNUM:Searchterm] - searches the invoice payments for invoice items assigned to invoicee 1234 with this search term and adds them up, value is displayed with a decimal point and no thousands separator (change 1234 to the required Invoicee Id numberfor calculations)
[INVOICEEPAYMENTSNUM1234INVOICEPAYMENTBYDESC:Searchterm] - invoice searches the payments for invoice items assigned to invoicee 1234 with (change 1234 to the required Invoicee Id number)this search term and adds them up
[INVOICEENAMEINVOICEPAYMENTBYDESCNUM:Searchterm] - name of searches the invoicee account the invoice payments for items with this search term and adds them up, value is assigned to or blankdisplayed with a decimal point and no thousands separator (for calculations)
=== Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[INVOICEECODEINVOICETABLE] - code of the invoicee account the invoice is assigned to or blanktable
[INVOICEECURRENCYINVOICETABLEVAT] - currency of the invoicee account the invoice is assigned to if it is not the property default or blanktable with vat information and vat summary
[INVOICEETEMPLATE1INVOICETABLE:$1.1$] - template value 1 of the invoice account the invoice is assigned to table and currency multiplier with optional new currency symbol before or blankafter price.
[INVOICEETEMPLATE2INVOICETABLEPART:status1,status2,!status4] - template value 2 of the invoice account the invoice is assigned to or blankInvoice 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.
[INVOICEETEMPLATE3INVOICETABLE2] - template value 3 of the invoice account the invoice is assigned to or blanktable with status field
[INVOICEETEMPLATE4INVOICETABLE2:$1.1$] - template value 4 of the invoice account the invoice is assigned to table with status field and currency multiplier with optional new currency symbol before or blankafter price.
[INVOICEETEMPLATE5INVOICETABLECHARGES] - template value 5 of the invoice account the invoice is assigned to or blanktable showing charges only
[INVOICEETEMPLATE6INVOICETABLECHARGESINVOICEE1234] - template value 6 of the invoice account the invoice is table showing charges only assigned to or blankthe specified invoicee, specify the invoicee Id number.
[INVOICEETEMPLATE7INVOICETABLENOTOT] - template value 7 of the invoice account the invoice is assigned to or blanktable without grand total
[INVOICEETEMPLATE8INVOICETABLENOTOT:$1.1$] - template value 8 of the invoice account the invoice is assigned to table without grand total and currency multiplier with optional new currency symbol before or blankafter price.
== Guest Variables ==[GUESTIDSINVOICETABLENOTOT2] - comma separated list of guest Id's connected to the bookinginvoice table with status field without grand total
[GUESTFLAGTEXTSINVOICETABLENOTOT2:$1.1$] - comma separated list of flag text values for each guest (when not empty) connected to the bookinginvoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.
== Payment Request Variables ==[PAYURLINVOICETABLEVAT:$1.1$] - Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balanceinvoice table with vat information and currency multiplier with optional new currency symbol before or after price.
[PAYURL:25%INVOICETABLEVATCOMPACT] - Creates a payment url for the payment request for a percentage compact version of the outstanding balance. Use 100% to specify the full outstanding balance.invoice table with vat information and vat summary
[PAYURLINVOICETABLEVATCOMPACT:200$1.1$] - Creates a payment url for the payment request url for a fixed amount. ntcompact version of invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price.
[PAYLINKINVOICETABLEVATCOMPACTNOSUM] - 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.compact version of invoice table with vat information without vat summary
[PAYLINKINVOICETABLEVATCOMPACTNOSUM:25%$1.1$] -Creates a compact version of invoice table with vat information without vat summary payment link (HTML A tag) for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balanceand currency multiplier with optional new currency symbol before or after price.
[PAYLINK:200INVOICETABLEVATNOSUM] - Creates a payment link (HTML A tag) for the payment request) for a fixed amount.invoice table with vat information without vat summary
[PAYBUTTONINVOICETABLEVATNOSUM:$1.1$] - Creates 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 emailsinvoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
[PAYBUTTON:25%INVOICETABLEDATEVATNOSUM] - 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.invoice table with vat information and date without vat summary
[PAYBUTTONINVOICETABLEDATEVATNOSUM:200$1.1$] - Creates a payment button for the payment request for a fixed amountinvoice table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVAT2] - invoice table with vat information and status field and vat summary
[PAYPALURLINVOICETABLEVAT2:$1.1$] - Creates a Paypal payment url for the amount in the booking deposit invoice table with vat information and status field if non zero, otherwise the outstanding balanceand vat summary and currency multiplier with optional new currency symbol before or after price.
[PAYPALURL:25%INVOICETABLEVAT2NOSUM] - Creates a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.invoice table with vat information and status field without vat summary
[PAYPALURLINVOICETABLEVAT2NOSUM:200$1.1$] - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a invoice table with vat information and status field to enter an amountwithout vat summary and currency multiplier with optional new currency symbol before or after price.
[PAYPALLINKINVOICETABLEVATCHARGES] - Creates a Paypal payment link (HTML A tag) for the amount in the booking deposit field if non zero, otherwise the outstanding balance.invoice table showing charges only with vat information and vat summary
[PAYPALLINK:25%INVOICETABLENOPRICE] - Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.invoice table with no price information
[PAYPALLINK:200INVOICETABLEINVOICEE] - Creates a Paypal payment link (HTML A tag) for a fixed amount. A zero amount will cause paypal invoice table excluding items assigned to provide a field to enter an amountinvoicee.
[PAYPALBUTTONINVOICETABLEINVOICEE1234] - Creates invoice table for a Paypal payment button for the amount in the booking deposit field if non zerospecific invoicee, otherwise specify the outstanding balance. Not recommended for emailsinvoicee Id number.
[PAYPALBUTTON:25%UPSELLTABLE] - Creates a Paypal payment button for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.table with all upsell items
[PAYPALBUTTON:200UPSELLTABLEVAT] - 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.table with all upsell items with vat information and vat summary
== Text Operators ==[UPSELLTABLENOREFUND] - table with all upsell items except refundable items
[REPLACE|searchForThisText|replaceWithThisText|textToSearch] - replace "searchForThisText" with "replaceWithThisText" within ==== Custom Invoice Table ====You have the text "textToSearch"option to create a custom invoice table. Available content variables are:
== iCal Links ==These template variables will create iCal links which allow AMO - shows the booking to be added to a calendar.net value (price x quantity)
[ICALURL] CEX - Calendar linkcharges excluded (charges will not be shown)
[ICALURLCON - currency conversion. Example:16] - Calendar link with check-in hourCONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1. Replace '16' with 234 would multiply the hour check-in startsprices by 1.234
[ICALURL::10] CUA - Calendar link with check-out hourcurrency symbol showing after the numbers. Replace '10' with the hour with Example: CUA€ will show € after the hour check-out ends.figures
[ICALURL::CUB - currency symbol showing before the numbers. Example:summary text] - Calendar link with a summary textCUB€ will show € before the figures
DAT - adds a date column - you have the option to control the format of the date using [ICALURL::::description text[Template_Variables#Date_and_Time|date and time variables] ] for example DAT{%d- Calendar link with a descriptive text%m-%Y}
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
Calendar link with checkDP0 -in time 16:00, check-out time 10:00, the summary text "Booking" and the description text "Sunny Hotel":no decimal places
[ICALURL:16:10:Booking:Sunny Hotel]DP1 - 1 decimal place
== Mathematical Operators ==DP2 - 2 decimal places
Place mathematical operators between two numbers <b>or between two template variables</b> that return a number.DP3 - 3 decimal places
[+] DP4 - Example: 2 [+] 3 = 54 decimal places
[GAT -] - Example: 5 [-] 1 = 4 sum for each column
[*] GRP - Example: 3 [*] 4 = 12 Group Totals. Displays the same items as a total
[/] GRT - Example: 15 [/] 5 = 3Grand Total
[MIN] INV - invoicee, add the invoicee number at the end. Example: 2 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[MINBOOKINGINVOICEEID]] 3 = 2to add the invoicee from the booking
[MAX] LAN - language. Example: 2 [MAX] 3 = 3LANDE will force the language to German
Brackets are not supported as a way to control processing order, the processing order is fixed as *, /, +, MUL -, MIN, MAXmultiplier. Example: MUL1.2 will multiply all prices by 1.2
NIN - do not show invoice number and invoice date on locked invoices
=== Rounding and controlling decimal places ===NOC - charges will not be displayed but their vat values are still calculated for the vat summary (VAT)
==== Default ====NOP - payments will not be displayed
2 [/] 3 = 0.66666666666667ONE - shows only items from the specified booking (not the booking group)
==== Rounding to ORB - order by booking, this keeps the nearest integer ====items for each booking (room) together in the table
2 [/.0] 3 = 1PAA - shows a column with payment amounts
==== Rounding to 1,2,3 or 4 decimal place(s) ====PAY - shows payments
2 [/.1] 3 = 0.7PEN - shows pending payments description
2 [/.2] 3 = 0.67PPA - shows pending payments amount
2 [/.3] 3 = 0.667PRI - shows prices in a column
2 [/.4] 3 = 0.6667QTY - shows quantity
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.
<b>This works on SIN - status included. Calculate the balance of all operators including [MIN] and [MAX]</b>invoice items with matching status, the status items can be a comma separated list. Example: SIN status1,status2,status4 will only show items with this status.
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.STA- shows staus
== Currency Conversion ==THO - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language
[CONVERT:EURTOT -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.shows total amounts
Example: [INVOICECHARGESNUM] [*.2] [CONVERT:EURVAA -USD] will convert the invoice charge value from Euros to USD with two decimal points.shows VAT amounts
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:VAP - shows VAT percents
123456*[CONVERT:USDVAT -EUR]*VAT summary
or this to convert EUR to USD
123456*[CONVERT:EUR-USD]Connect the variables with an underscore.
123456*[CONVERTExamples: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) ==[INVOICE:PRI_QTY_CUA€] will create an invoice table with price and quantity in Euros.
[ACCOUNTIDINVOICE:PAY_TOT_CEX] - account id of the booked propertywill create an invoice table which will only show payments.
[ACCOUNTTEMPLATE1INVOICE:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] - Account Template 1will create an invoice table with more information.
[ACCOUNTTEMPLATE2INVOICE:SIN TRANSPORT] - Account Template 2will create an invoice table with the Invoice item description for any items with the Status = Transport.
== Invoicee Variables ==[ACCOUNTTEMPLATE3INVOICEEBALANCE] - Account Template 3invoice balance for unassigned invoice items.
[ACCOUNTTEMPLATE4INVOICEEBALANCENUM] - Account Template 4 invoice balance for unassigned invoice items displayed with a decimal point and no thousands separator.
[COMMISSIONLIMITINVOICEEBALANCE1234] - shows the available commission amount invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the owner account of the bookingrequired Invoicee Id number).
[MASTERACCOUNTTEMPLATE1INVOICEEBALANCENUM1234] - Account Template 1 from master accountinvoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a decimal point and no thousands separator.
[MASTERACCOUNTTEMPLATE2INVOICEECHARGES] - Account Template 2 from master accountinvoice charges for unassigned invoice items.
[MASTERACCOUNTTEMPLATE3INVOICEECHARGESNUM] - Account Template 3 from master accountinvoice charges for unassigned invoice items displayed with a decimal point and no thousands separator.
[MASTERACCOUNTTEMPLATE4INVOICEECHARGES1234] - Account Template 4 from master accountinvoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).
==Account Variables [INVOICEECHARGESNUM1234] - invoice charges for invoice items assigned to invoicee 1234 (logged in account, only for display in control panel , not for auto actions or emails etc.change 1234 to the required Invoicee Id number) ==These variables can for example used by resellers who added displayed with a custom tab to the bookingsdecimal point and no thousands separator.
[LOGGEDINACCOUNTIDINVOICEEPAYMENTS] - account id of the logged in userinvoice payments for unassigned invoice items.
[LOGGEDINACCOUNTTEMPLATE1INVOICEEPAYMENTSNUM] - Account Template 1invoice payments for unassigned invoice items displayed with a decimal point and no thousands separator.
[LOGGEDINACCOUNTTEMPLATE2INVOICEEPAYMENTS1234] - Account Template 2invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
[LOGGEDINACCOUNTTEMPLATE3INVOICEEPAYMENTSNUM1234] - Account Template 3invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
[LOGGEDINACCOUNTTEMPLATE4INVOICEENAME] - Account Template 4 name of the invoicee account the invoice is assigned to or blank
[LOGGEDINAPIKEYINVOICEECODE] - apiKeycode of the invoicee account the invoice is assigned to or blank
[MASTERLOGGEDINACCOUNTTEMPLATE1INVOICEECURRENCY] - Account Template 1 from master currency of the invoicee accountthe invoice is assigned to if it is not the property default or blank
[MASTERLOGGEDINACCOUNTTEMPLATE2INVOICEENOTES] - Account Template 2 from master accountvalue of the "Notes" field for the invoicee
[MASTERLOGGEDINACCOUNTTEMPLATE3INVOICEETEMPLATE1] - Account Template template value 1 of the invoice account the invoice is assigned to or blank [INVOICEETEMPLATE2] - template value 2 of the invoice account the invoice is assigned to or blank [INVOICEETEMPLATE3] - template value 3 from master of the invoice account the invoice is assigned to or blank [INVOICEETEMPLATE4] - template value 4 of the invoice account the invoice is assigned to or blank [INVOICEETEMPLATE5] - template value 5 of the invoice accountthe invoice is assigned to or blank
[MASTERLOGGEDINACCOUNTTEMPLATE4INVOICEETEMPLATE6] - Account Template 4 from master template value 6 of the invoice accountthe invoice is assigned to or blank
== Smart Logic Template Variables ==[INVOICEETEMPLATE7] - template value 7 of the invoice account the invoice is assigned to or blank
IF style [INVOICEETEMPLATE8] - template variables will compare two values and display a text if value 8 of 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 invoice account the two texts.Empty text invoice is allowed if you do not want assigned to display anything for a condition.or blank
[IF=:if this:equals this:display this text|otherwise display this textINVOICEETEMPLATE1BR]- template value 1 of the invoice account the invoice is assigned to or blank with linkebreak
[IFIN:if this:INVOICEETEMPLATE2BR] - template value 2 of the invoice account the invoice is contained in this:display this text|otherwise display this text]assigned to or blank with linkebreak
[IFLIKE:if this:INVOICEETEMPLATE3BR] - template value 3 of the invoice account the invoice is like this:display this text|otherwise display this text]assigned to or blank with linkebreak
[IF>:if this:INVOICEETEMPLATE4BR] - template value 4 of the invoice account the invoice is greater than this:display this text|otherwise display this text]assigned to or blank with linkebreak
[IF>=:if this:INVOICEETEMPLATE5BR] - template value 5 of the invoice account the invoice is greater than assigned to or equal to this:display this text|otherwise display this text]blank with linkebreak
[IF<:if this:INVOICEETEMPLATE6BR] - template value 6 of the invoice account the invoice is less than this:display this text|otherwise display this text]assigned to or blank with linkebreak
[IF<=:if this:INVOICEETEMPLATE7BR] - template value 7 of the invoice account the invoice is less than assigned to or equal to this:display this text|otherwise display this text]blank with linkebreak
[IFBETWEEN:if this:is between this:and this:display this text|if it is lower display this text|if it INVOICEETEMPLATE8BR] - template value 8 of the invoice account the invoice is higher display this text]assigned to or blank with linkebreak
== Payment Request Variables ==[PAYURL] - Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance. [PAYURL:25%] - Creates a payment url for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. [PAYURL:200] - Creates a payment url for the payment request url for a fixed amount. nt. [PAYLINK] - 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. [PAYLINK:25%] -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. [PAYLINK:200] - Creates a payment link (HTML A tag) for the payment request) for a fixed amount. [PAYBUTTON] - Creates 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. [PAYBUTTON:25%] - 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. [PAYBUTTON:200] - Creates a payment button for the payment request for a fixed amount.  [PAYPALURL] - Creates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise the outstanding balance. [PAYPALURL:25%] - Creates a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. [PAYPALURL:200] - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount. [PAYPALLINK] - Creates a Paypal payment link (HTML A tag) for the amount in the booking deposit field if non zero, otherwise the outstanding balance. [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. [PAYPALLINK:200] - Creates a Paypal payment link (HTML A tag) for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount. [PAYPALBUTTON] - Creates a Paypal payment button for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails. [PAYPALBUTTON:25%] - Creates a Paypal payment button for a percentage of the outstanding balance. Use 100% to specify the 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 field to enter an amount. Not recommended for emails. Add a H to exclude a gateway from displaying. Example: [PAYURL:200:HST] will hide Stripe == Text Operators == [REPLACE|searchForThisText|replaceWithThisText|textToSearch] - replace "searchForThisText" with "replaceWithThisText" within the text "textToSearch"  [SUBSTR|startCharacterNumber|numberOfCharacters|textToGetSubstringFrom] - get a sub string from "textToGetSubstringFrom" starting at character "startCharacterNumber" (integer, 0 is the first char) with a length of "numberOfCharacters" (integer)  1. [SUBSTR|0|4|[GUESTPHONENUM]] This will test for the first 4 characters of the Guest phone number.  [TRIM| string to trim ] - remove whitespace from the start and end of " string to trim " == iCal Links ==These template variables will create iCal links which allow the booking to be added to a calendar. [ICALURL] - Calendar link [ICALURL:16] - Calendar link with check-in hour. Replace '16' with the hour 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 IFThey 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 from left to right so choose an internal one that is different and processed before the external one.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: etc#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=:[IFIN:[IFLIKE:[IF>:[IF>=:[IF<:[IF<=:[IFBETWEENstatements to display special messages :-
10. [<span style="color: #019cde">IFIN:DEPOSIT:[BOOKINGINFOCODES]:|[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>]
Template variables can be used inside this template variable as per You want to display a special message to Australians if the examples <span style="color: #019cde">comparison in blue</span>booking has a DEPOSIT info item code, <span style=if a deposit is required from a non Australia they get "color: #75d5adA deposit is required">positive result in green</span>, <span style=and if no deposit is required they see "color: #fe746cNo deposit is required">negative result in red</span>:
111. [<span style="color: #019cde">IF=<:[GUESTNAMEINADVANCE]</span><span style="color: #75d5ad">|[IFIN:TRANSFER:[BOOKINGINFOCODES]:Miller3</span><span style="color: #75d5ad"><span style="color: #75d5ad">Payment Due Date:yesASAP </span> <span style="color: #fe746c">|noPayment Due Date: [FIRSTNIGHT:- 30days]]|</span>]
If the guestname is Miller the text "yes" will You want displaya special message to your guests 3 days before checkin with a Booking Info Code = TRANSFER. If the guest name is not Miller the text "no" will display
212.[<span style="color: #019cde"> IF>=:[NUMADULTSTATUS]:2Confirmed:PAID|[IF<^[INADVANCE]^30</span><span style="color: #75d5ad">^Payment Due Date:please contact us about you bedding requirements|As 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 higher more than 2 30 days in advance, then send the textmessage with "please contact us about you bedding requirementsPayment Due Date : " will display. If or that the number of adults "Payment is lower than or equal 2 nothing will displaydue As soon as possible".
313. [<span style="color: #019cde">IF<IFBETWEEN:[NUMADULTTURNOVERDAYS]:0:3:</span><span style="color: #75d5ad">yes|</span><span style="color:|linen for two adults is included free of charge#fe746c">no</span>]
If You want to test if the number of adults days until next arrival into the same unit is lower than between 0 and 3 nothing will displaydays. If the number of adults is not lower than 3 Could be used for offering Late Checkouts or additional days to the text "linen for two adults guest where there is included free of charge" will displaya gap between bookings.
414. [<span style="color: #019cde">IF<=>:[NUMADULTVACANTDAYS]:21:</span><span style="color: #75d5ad">:yes|</span><span style="color: #fe746c">|no</span>]
5You 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">IF>=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>]
615. [<span style="color: #019cde">IFBETWEENIF=:[NUMADULTLEAVINGDAY:{%a}]:Sun:|[IF>=^[TURNOVERDAYS]^1:3</span><span style="color: #75d5ad">:^yes</span><span style="color: #fe746c">|too low|too high~no]</span>]
7You 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">IFLIKE:[GUESTTITLE]</span><span style="color: #75d5ad">:Mr:Dear|Hi</span>]
IFLIKE works like 16. [<span style="color: #019cde">[IF= except it is case insensitive and removes any spaces from the start and end of the words:[LEAVINGDAY:{%u}]:1:yes|[IF=^[LEAVINGDAY:{%u}]^3</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">]</span>]
8You 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: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 displayed17. [<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">]</span>]
9You 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. [<span style="color: #019cde">IFIN:CHECKIN:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>]
If == Write out the Booking Info Code CHECKIN has been added to the booking then you will see the value number in the text (date/time) otherwise blankWords. ==
[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,873

edits

Navigation menu