Changes

Jump to navigation Jump to search

Template Variables

19,319 bytes added, 13 April
no edit summary
[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')
[CHECKOUTEND] - check-out end time in 24hr format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-out end')
[CHECKINSTART12] - check-in start time in am/pm format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in start')
[CHECKINEND12] - check-in end time in am/pm format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in end')
[CHECKOUTEND12] - check-out end time in am/pm format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-out end')
[PROPERTYDESCRIPTION1] - Property Description 1 from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYDESCRIPTION2] - Property Description 2 from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYDESCBOOKPAGE1] - Property Description Booking Page 1 from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYDESCBOOKPAGE2] - Property Description Booking Page 1 from{{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYGUESTDETAILSHEADER] - Guest Details Header from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYGUESTENQUIRYHEADER] - Guest Enquiry Header from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYCONFIRMBOOKBUTTON] - Confirm Booking Button Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYROOMNOTAVAIL] - Room Not Available Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYROOMNOPRICE] - Room No Price Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYNOROOMSAVAIL] - No Rooms Available Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYGROUP] - shows the group keywords
[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 [ROOMTEMPLATE7BR] - ROOM Template 7 with linkbreak
[ROOMMETAAUXTEXTSROOMTEMPLATE8BR] - room meta text setting for all booked roomsROOM 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
[UNITSTATUS1] - the status if 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
[ROOMRACKRATENUMNUMROOMSAVAIL] - Rack Rate from {#fas:cog}} returns the number of available rooms (SETTINGS-1 if overbooked) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT, can be used to trigger an Auto Action
[ROOMCLEANINGFEENUMROOMRACKRATENUM] - Cleaning fee Rack Rate from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[ROOMSECURITYDEPOSITNUMROOMCLEANINGFEENUM] - Securty deposit Cleaning fee from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[ROOMTAXPERCENTNUMROOMSECURITYDEPOSITNUM] - Tax percentate from 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 ==
[RANDOM8] - a 8 digit random number seeded from the booking number
 
[VOUCHERPHRASE1] - Voucher Phrase - change the number to the voucher you want to print out.
 
[VOUCHERAMOUNT1] - Voucher Amount - change the number to the voucher you want to print out.
=== Content from "Info" tab ===
[BOOKINGINFOCODETEXT:infoCode] - the most recent Text value of the specified Booking Info Code, "infoCode" in this example
[BOOKINGINFOCODEDATE:infoCode]- the most recent date value of the specified Booking Info Code, "infoCode" in this example , supports custom date/time formats {%A, %e %B, %Y} after the infoCode
[INTERNALNOTES] - content from "Internal Notes" on the Info Tab
[GUESTMOBILENUM] - guests mobile number with all non-numeric characters removed
[PHONELAST1MOBILELAST1] - last digit of the guests phone mobile number , if guest phone mobile is empty it will use the guests mobile phone numberwill be used.
[PHONELAST2MOBILELAST2] - last 2 digits of the guests phone mobile number , if guest phone mobile is empty it will use the guests mobile phone numberwill be used.
[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 [PHONELAST2] - last 2 digits of the guests phone number if guest phone is empty it will use the guests mobile number [PHONELAST3] - last 3 digits of the guests phone number if guest phone is empty it will use the guests mobile number
[PHONELAST4] - last 4 digits of the guests phone number if guest phone is empty it will use the guests mobile number
[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
[BOOKINGIP] - ip address of booker's computer [APIMESSAGE] - api message sent by originating channel from the Channel Info setting [BOOKINGDATE] - booking datein 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
[GUESTSADDRESSSBR1INC] - address of the first guest on the "guests" tab of this booking group incl. cancelled
===Cancellation and Guest Login===[CANCELURLGUESTSAFULLADDRESSSBR1INC] - URL to view the first address including city, postcode, sate and cancel country from the guests tab of the booking including cancelled bookings in international format
[CANCELDATEGUESTSAFULLADDRESSSBR1] - date until when the first address including city, postcode, sate and country from the guests tab of the booking is cancellable displaying a phrasein International format
[CANCELDATEYYYY-MM-DDGUESTSBFULLADDRESSSBR1INC] - date until when the first address including city, postcode, sate and country from the guests tab of the booking is cancellable displaying a date. If the date is including cancelled bookings in the past 00-00-0000 will be shown European format
[DAYSTOCANCELGUESTSBFULLADDRESSSBR1] - number the first address including city, postcode, sate and country from the guests tab of days until the booking can be cancelled / Anzahl der Tage bis zu denen stroniert werden kannin European format
[GUESTLOGINGUESTSNUMBOOKINGS1] - URL to view the total number of bookingsmade by the first guest, a group booking counts as one booking.
==Date [GUESTSNUMSTAYS1] - the total number of bookings not cancelled and Time==not in the future made by the first guest, a group booking counts as one booking.
Many date template variables support PHP strftime format strings between {} brackets [GUESTSCUSTOMQ1S] - answer to create custom date formats. Information on PHP strftime strings is available at [http://php.net/manual/en/function.strftime.php http://php.net/manual/en/function.strftime.php]question 1 for all guests
[GUESTSCUSTOMQ1SINC] - answer to custom question 1 for all guests including cancelled bookings
[CURRENTDATEGUESTSCUSTOMQ2S] - current dateanswer to custom question 2 for all guests
[CURRENTDATEYYYY-MM-DDGUESTSCUSTOMQ2SINC] - current date answer to custom question 2 for all guests including cancelled bookings in YYYY-MM-DD format
[CURRENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ3S] - current dateanswer to custom question 3 for all guests
[CURRENTDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ3SINC] - 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 3 for all guests including cancelled bookings
[CURRENTTIMEGUESTSCUSTOMQ4S] - current time and the display can be any valid PHP strftime format string.answer to custom question 4 for all guests
[CURRENTTIME:+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
[DAYSTOCHECKINGUESTSCUSTOMQ5S] - number of days until check-inanswer to custom question 5 for all guests
[INADVANCEGUESTSCUSTOMQ5SINC] - number of days between booking and check-inanswer to custom question 5 for all guests including cancelled bookings
[DAYSBETWEEN:2019-11-01:2019-11-10GUESTSCUSTOMQ6S] - this template variable will calculate the number of days between the :: the dates need answer to be in yyyy-mm-dd format. Template variables can be used custom question 6 for calculation.all guests
Example: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}GUESTSCUSTOMQ6SINC]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today. answer to custom question 6 for all guests including cancelled bookings
[FIRSTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - first night bookedanswer to custom question 7 for all guests
[FIRSTNIGHT:+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
[LASTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - last night bookedanswer to custom question 8 for all guests
[LASTNIGHT:+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
[LEAVINGDAY:{%A, %e %B, %Y}GUESTSCUSTOMQ9S] - check-out answer to custom question 9 for all guests
[LEAVINGDAY:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ9SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 9 for all guests including cancelled bookings
[BOOKINGDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ10S] - booking dateanswer to custom question 10 for all guests
[BOOKINGDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ10SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 10 for all guests including cancelled bookings
===Cancellation, Management and Guest Login===[MODIFYDATE:{%A, %e %B, %Y}CANCELLEDTIME] - last booking modification date/time, when the display can be any valid PHP strftime format string.booking was cancelled
[PAYMENTDATECANCELLEDTIME:{%A, %e %B, %Y}] - most recent payment datewhen the booking was cancelled display can be any valid PHP strftime format string
[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000CANCELURL] - optional date offset URL to view 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 to show, 0 or missing means the most recent payment. The third parameter specifies the invoicee.cancel bookings
[FORMATDATE:[any template variable that creates a date]{%A, %e %B, %Y}CANCELDATE] - format the date in until when the strftime format. The date value could be included by inserting booking is cancellable displaying a different template variable containing a date.phrase
== Booking Group variables ===== Custom Booking Group Table ===create your own [CANCELDATEYYYY-MM-DD] - date until when the booking group list by specifying is cancellable displaying a date. If the columns date is in the order you want them to appear.past 00-00-0000 will be shown
for example: [BOOKGROUP:PROP_ROOM_BREF_NAMEDAYSTOCANCEL] - number of days until booking can be cancelled
column parameters[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
100% = 100% width[GUESTLOGIN] - URL to view bookings
ADDR = Booking address[TURNOVERDAYS] - days until next arrival into the same unit not considering black bookings
ADUL= [TURNOVERDAYSB] - days until next arrival into the number of adultssame unit considering black bookings
ARIV = Arrival date[VACANTDAYS] days from previous checkout to check in of current booking not considering black bookings
BOPR = Bold prices[VACANTDAYSB] days from previous checkout to check in of current booking considering black bookings
BREF = Booking number=Date and Time==
CITY = Booking city [CURRENTDATE] - current date
CHAC = Charges with currency symbol[CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format
CHAR = Charges[CURRENTDATE:{%A, %e %B, %Y}] - current date
CHIL = Number [CURRENTDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of childrendays and the display can be in a custom format.
COUN = Booking country [CURRENTTIME] - current time and the display can be any valid PHP strftime format string.
DEPT = Departure [CURRENTTIME:+1day{%A, %e %B, %Y}] - optional dateoffset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
EMAI = Booking Email [DAYSTOCHECKIN] - number of days until check-in
EXSP = extra space [INADVANCE] - number of days between rowsbooking and check-in
FLAG = Booking flag text[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.
FNAM = Booking first nameExample: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today.
GADD = Guest address[FIRSTNIGHT:{%A, %e %B, %Y}] - first night booked
GCIT = Guest city[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.
GCOM = Guest company[LASTNIGHT:{%A, %e %B, %Y}] - last night booked
GCOU = Guest country[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.
GFLA = Guest flag text[LEAVINGDAY:{%A, %e %B, %Y}] - check-out
GFNA = Guest first name [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.
GLNA = Guest last name[BOOKINGDATE:{%A, %e %B, %Y}] - booking date
GMOB = Guest mobile[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.
GNAM = Guest full name[MODIFYDATE:{%A, %e %B, %Y}] - last booking modification date/time, the display can be any valid PHP strftime format string.
GEMA = Guest Email[PAYMENTDATE:{%A, %e %B, %Y}] - most recent payment date
GNOT = Guest note[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.
GPOS = Guest postcode[AUTHORIZEUNTIL] - date until which a card is authorized, this is extracted from the most recent authorize booking info code.
GREF = Guest Id[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.
GSTA = Guest state[FORMATDATE:[any template variable that creates a date]{%A, %e %B, %Y}] - custom format the date. The date value could be included by inserting a different template variable containing a date.
GTEL = Guest phone
ICAN = Include cancelled bookingsThe following codes can be used in any order between the {} brackets to create custom time and date formats.
LNAM = Booking last %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 ("%")
MOBI = = Booking Group variables ===== Custom Booking mobileGroup Table ===create your own booking group list by specifying the columns in the order you want them to appear.
NAME = Booking full namefor example: [BOOKGROUP:PROP_ROOM_BREF_NAME]
NOHE = no headercolumn parameters
NOTE 100% = Booking note100% width
ONAM ADDR = Offer Name Booking address
ONLY ADUL= Just show the one bookingnumber of adults
PAIC ARIV = Payment amount with currency symbolArrival date
PAID BOPR = Paid amountBold prices
PEOP BREF = Number of guestsBooking number
PHON BRL1 = Booking phoneLast digit of booking number
POST BRL2 = Booking postcodeLast 2 digits of booking number
PROP BRL3 = Property nameLast 3 digits of booking number
RDE0 BRL4 = Room description from {#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTLast 4 digits of booking number
RDE1 BRL5 = Room description 1 from {#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUPLast 5 digits of booking number
RNAM BRL6 = Room Display Name ROOM = Room nameLast 6 digits of booking number
STAT CITY = Booking statecity
TOTA CHAC = Total priceCharges with currency symbol
UNI2 CHAR = Unit first additional information UNI3 = Unit second additional informationCharges
UNIT CHIL = Unit nameNumber of children
COUN = Booking country
Connect the parameters with an underscore. DEPT = Departure date
Examples: EMAI = Booking Email
[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.EXSP = extra space between rows
FLAG = Booking flag text
[BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest FNAM = Booking first name property name and room name in this order.
GADD === Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - create a table of guest names including room type for a group bookingGuest address
[BOOKGROUPROOMLISTTOTAL] - create a table of guest names including room type for a group booking with guest totalsGCIT = Guest city
[BOOKGROUPROOMLISTCHARGETOTAL] - create a table of guest names including room type and charge for a group booking with guest totalsGCOM = Guest company
[BOOKGROUPNAMELIST] - create a table of guest names including room type and unit for a group bookingGCOU = Guest country
[BOOKGROUPNAMELISTTOTAL] - create a table of guest names including room type and unit for a group booking with guest totalsGFLA = Guest flag text
[BOOKGROUPNAMELISTCHARGETOTAL] - create a table of guest names including room type and unit and charge for a group booking with guest totalsGFNA = Guest first name
[BOOKGROUPUNITLIST] - create a table of guest names including unit for a group bookingGLNA = Guest last name
[BOOKGROUPUNITLISTTOTAL] - create a table of guest names including unit for a group booking with guest totalsGMOB = Guest mobile
[BOOKGROUPUNITLISTCHARGETOTAL] - create a table of guest names including unit and charge for a group booking with guest totalsGNAM = Guest full name
GEMA == Invoice Variables ==[INVOICENUMBER] - invoice numberGuest Email
[INVOICENUMBERS] - invoice number if invoicees are involvedGNOT = Guest note
[INVOICEDATE] - invoice dateGPOS = Guest postcode
[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. GREF === Invoice Values ===These template variables will display a value form the invoice.Guest Id
GSTA ==== 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 state
CHA - chargesGTEL = Guest phone
CON - currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234 ICAN = Include cancelled bookings
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the languageLNAM = Booking last name
DP0 - no decimal placesMOBI = Booking mobile
DP1 - 1 decimal placeNAME = Booking full name
DP2 - 2 decimal placesNOHE = no header
DP3 - 3 decimal placesNOTE = Booking note
DP4 - 4 decimal places NUMN = Number of nights booked
DESsome description - sum of values with "some description"ONAM = Offer Name
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 ONLY = Just show all items from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the one booking
IT1 - item 1 in the invoicePAIC = Payment amount with currency symbol
IT2 - item 2 in the invoice PADD = Property Address
IT3 - item 3 in the invoicePAID = Paid amount
IT4 - item 4 in the invoicePCIT = Property City
IT5 - item 5 in the invoicePEOP = Number of guests
MUL - multiplier. Example: MUL1.2 will multiply all prices by 1.2 PHON = Booking phone
NUM - show with decimal place (for scripts)POST = Booking postcode
THO - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language PROP = Property name
UPS1 - upsell 1RDE0 = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
UPS2 - upsell 2RDE1 = Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUP
UPS3 - upsell 3RNAM = Room Display Name ROOM = Room name
UPS4 - upsell 4RQTY = shows the number of rooms for each booking and a total at the bottom
UPS5 - upsell 5STAT = Booking state
ONE - shows only items from the specified booking (not the booking group)STUS = Status
PAY - shows payments TEXT = Prints a plain text table instead of HTML
QTY - shows quantityTOTA = Total price
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.UNI2 = Unit first additional information UNI3 = Unit second additional information
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. UNIT = Unit name
VAT - VAT summary
Connect the parameters with an underscore.
Connect the variables with an underscore. Examples:
Examples[BOOKGROUP: PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.
[INVOICEVAL:PAY_THO] will show payments with a thousands separator
[INVOICEVALBOOKGROUP:UPS1_UPS1BREF_NAME_PROP_ROOM] will show display the sum of upsell 1 booking number, guest name property name and upsell 2 room name in this order.
==== Standard Invoice Values=Booking Group Table with fixed content===[INVOICEBALANCEBOOKGROUPROOMLIST] - invoice balancecreate a table of guest names including room type for a group booking
[INVOICEBALANCE:50%BOOKGROUPROOMLISTTOTAL] - percentage create a table of invoice balanceguest names including room type for a group booking with guest totals
[INVOICEBALANCE:-100BOOKGROUPROOMLISTCHARGETOTAL] - invoice balance create a table of guest names including room type and charge for a group booking with offset amountguest totals
[INVOICEBALANCENUMBOOKGROUPNAMELIST] - As per [INVOICEBALANCE] but the value is displayed with create a decimal point table of guest names including room type and no thousands separator (unit for calculation).a group booking
[INVOICEBALANCENUM:BOOKGROUPNAMELISTTOTAL] - As per [INVOICEBALANCE:] but the value is displayed with create a decimal point table of guest names including room type and no thousands separator (unit for calculation).a group booking with guest totals
[INVOICEPARTBALANCE:status1,status2,!status4:10%BOOKGROUPNAMELISTCHARGETOTAL] - Calculate the balance create a table of all invoice items with matching status guest names including room type and unit 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, charge for example !status1. The offset is optional and can be specified after a second colon (:) and it can be a percentage by ending the number group booking with the percent (%) symbol or a numeric value offset.guest totals
[INVOICEPARTBALANCENUM:status1,status2,status4:10%BOOKGROUPUNITLIST] - As per INVOICEPARTBALANCE but the value is displayed with create a decimal point and no thousands separator (table of guest names including unit for calculation).a group booking
[INVOICEBALANCE1BOOKGROUPUNITLISTTOTAL] - invoice balance create a table of one guest names including unit for a group booking only, not the booking groupwith guest totals
[INVOICEBALANCE1NUMBOOKGROUPUNITLISTCHARGETOTAL] - As per [INVOICEBALANCE1] 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 ==[INVOICECHARGESINVOICENUMBER] - invoice sum of all charges number
[INVOICECHARGES:50%INVOICENUMBERS] - invoice sum of all charges with percentage multipliernumber if invoicees are involved
[INVOICECHARGES:-100INVOICEDATE] - invoice sum of all charges with offset date
[INVOICECHARGESNUMINVOICEDATES] - As per [INVOICECHARGES] but the value is displayed with a decimal point and no thousands separator (for calculation)invoice date invoice number if invoicees are involved
[INVOICECHARGESNUMINVOICEDATE:+1day{%A, %e %B, %Y}] - As per [INVOICECHARGES:] but optional date offset and display format. The offset can be any plus or minus any number of days and the value is displayed with a decimal point and no thousands separator (for calculation)display can be any valid PHP strftime format string.
[INVOICEPARTCHARGESINVOICEDATES:status1+1day{%A,status2%e %B,!status4:10%Y}] - Calculate the balance of all invoice charges with matching status and apply optional multiplier or date offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation markand display format - invoice date invoice number if invoicees are involved, for example !status1. The offset optional and can be specified after a second colon (:) any plus or minus any number of days and it the display can be a percentage by ending the number with the percent (%) symbol or a numeric value offsetany valid PHP strftime format string.
[INVOICEPARTCHARGESNUM:status1,status2,status4:10%] - As per INVOICEPARTCHARGES but === Invoice Values ===These template variables will display a value form the value is displayed with a decimal point and no thousands separator (for calculation)invoice.
==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value from an invoice. [INVOICEPAYMENTS] - invoice sum INVOICEVAL with a selection of all payments the following variables specifies the calculation:
[INVOICEPAYMENTS:50%] CHA - invoice sum of all payments with percentage multiplier charges
[INVOICEPAYMENTSCON - currency conversion. Example:-100] - invoice sum of all payments with offset CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234
[INVOICEPAYMENTSNUM] DEC - As per [INVOICEPAYMENTS] but the value is displayed with 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
[INVOICEPAYMENTSNUM:50%] DP0 - As per [INVOICEPAYMENTS:50%] but the value is displayed with a no decimal point and no thousands separator.places
[INVOICEPARTPAYMENTS:status1,status2,!status4:10%] DP1 - 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.1 decimal place
[INVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] DP2 - As per INVOICEPARTCHARGES but the value is displayed with a 2 decimal point and no thousands separator (for calculation).places
[INVOICEPENDPAY] DP3 - all (auto and manual) pending payments including failed3 decimal places
[INVOICEPENDPAYNUM] DP4 - all (auto and manual) pending payments including failed but the value is displayed with a 4 decimal point and no thousands separator (for calculation).places
[INVOICEPENDPAY1234] DES - all (auto and manual) pending payments including failed for used as "DESsome description" - gives the sum of values containing the specified invoiceedescription "some description"
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[INVOICEPENDPAYNUM1234BOOKINGINVOICEEID]] - all (auto and manual) pending payments including failed for to add the specified invoicee but from the value is displayed with a decimal point and no thousands separator (for calculation).booking
[INVOICEPENDPAYAUTO] IT1 - auto pending payments before due date item 1 in the invoice
[INVOICEPENDPAYAUTONUM] IT2 - auto pending payments before due date but item 2 in the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEPENDPAYAUTO1234] IT3 - auto pending payments before due date for item 3 in the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation)invoice
[INVOICEPENDPAYAUTONUM1234] IT4 - auto pending payments before due date for item 4 in the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation)invoice
[INVOICEPENDPAYFAIL] IT5 - - failed pending payments (all also past)item 5 in the invoice
[INVOICEPENDPAYFAILNUM] MUL - failed pending payments (multiplier. Example: MUL1.2 will multiply all also past) but the value is displayed with a decimal point and no thousands separator (for calculation)prices by 1.2
[INVOICEPENDPAYFAIL234] NUM - failed pending payments show with decimal place (all also pastfor scripts) for the specified invoicee
[INVOICEPENDPAYFAILNUM234] THO - failed pending payments (all also past) for thousands separator. THO. will show a dot as thousand separator. If nothing is set the specified invoicee but system will use the value is displayed with a decimal point and no thousands separator (default for calculation)the language
[INVOICEPENDPAYRULE1] UPS1 - shows all pending payment for this rule (exchange upsell 1 for the rule number)
[INVOICEPENDPAYRULENUM1] UPS2 - shows all pending payment for this rule (exchange 1 for the rule number) displayed with a decimal point and no thousands separator (for calculation)upsell 2
[INVOICECREDITS] UPS3 - invoice sum of all credit items (negative items)upsell 3
[INVOICECREDITS:50%] UPS4 - invoice sum of all credit items with percentage multiplier upsell 4
[INVOICECREDITS:UPS5 -100] - invoice sum of all credit items with offset upsell 5
[INVOICECREDITSNUM] ONE - As per [INVOICECREDITS] but shows only items from the value is displayed with a decimal point and no thousands separator specified booking (for calculationnot the booking group)
[INVOICECREDITSNUM:] PAY - As per [INVOICECREDITS:] but the value is displayed with a decimal point and no thousands separator (for calculation)shows payments
[INVOICEDEBITS] QTY - invoice sum of all debit items (positive items)shows quantity
[INVOICEDEBITS:50%] SEX - invoice sum status excluded. Calculate the balance of all debit 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 percentage multiplierthis status.
[INVOICEDEBITS:-100] SIN - invoice sum status included. Calculate the balance of all debit invoice items with matching status, the status items can be a comma separated list. Example: SIN status1,status2,status4 will only show items with offsetthis status.
[INVOICEDEBITSNUM] VAT - As per [INVOICEDEBITS] but the value is displayed with a decimal point and no thousands separator (for calculations) (for calculations)VAT summary
[INVOICEDEBITSNUM:] - As per [INVOICEDEBITS:] but the value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICEVAT] - invoice sum of all vat valueConnect the variables with an underscore.
[INVOICEVATNUM] - invoice sum of all vat value for calculations)Examples:
[INVOICEFIRSTITEMINVOICEVAL:PAY_THO] - price of the item listed first in the invoicewill show payments with a thousands separator
[INVOICEFIRSTITEMNUMINVOICEVAL:UPS1_UPS2] - price will show the sum of the item listed first in the invoice but the value is displayed with a decimal point upsell 1 and no thousands separator (for calculations)upsell 2
==== Standard Invoice Values====[INVOICESECONDITEMINVOICEBALANCE] - price of the item listed second in the invoicebalance
[INVOICESECONDITEMNUMINVOICEBALANCE:50%] - price percentage of the item listed second in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)balance
[INVOICETHIRDITEMINVOICEBALANCE:-100] - price of the item listed third in the invoicebalance with offset amount
[INVOICETHIRDITEMNUMINVOICEBALANCENUM] - price of the item listed third in the invoice As per [INVOICEBALANCE] but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEUPSELL0INVOICEBALANCENUM:] - base price without upsell items or other charges added laterAs per [INVOICEBALANCE:] but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEUPSELLNUM0INVOICEPARTBALANCE:status1,status2,!status4:10%] - as per [INVOICEUPSELL1] but Calculate the value 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 displayed with optional and can be specified after a decimal point second colon (:) and no thousands separator it can be a percentage by ending the number with the percent (for calculations%)symbol or a numeric value offset.
[INVOICEUPSELL1INVOICEPARTBALANCENUM:status1,status2,status4:10%] - As per INVOICEPARTBALANCE but the value of upsell item 1 is displayed with a decimal point and no thousands separator (number can be between 0 to 20for calculation).
[INVOICEUPSELLNUM1INVOICEBALANCE1] - as per [INVOICEUPSELL1] but invoice balance of one booking only, not the value is displayed with a decimal point and no thousands separator (for calculations)booking group
[INVOICEUPSELLQTY1INVOICEBALANCE1NUM] - quantity of upsell item 1 As per [INVOICEBALANCE1] but the value is displayed with a decimal point and no thousands separator (number can be between 1 to 20for calculation)
[INVOICEUPSELLHEADLINE1INVOICECHARGES] - headline invoice sum of upsell item 1 (number can be between 1 to 20)all charges
[INVOICEUPSELLDESCRIPTION1INVOICECHARGES:50%] - description invoice sum of upsell item 1 (number can be between 1 to 20)all charges with percentage multiplier
[INVOICEEXTRAITEMDESC1INVOICECHARGES:-100] - Name invoice sum of extra invoice item 1 (number can be between 0 to 20)all charges with offset
[INVOICEEXTRAITEM1INVOICECHARGESNUM] - As per [INVOICECHARGES] but the value of extra invoice item 1 is displayed with a decimal point and no thousands separator (number can be between 0 to 20for calculation) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICEEXTRAITEM1INVOICECHARGESNUM:] - As per [INVOICECHARGES:] but the value of extra invoice item 1 is displayed with a decimal point and no thousands separator (number can be between 0 to 20for calculation) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICEEXTRAITEMNUM1INVOICEPARTCHARGES:status1,status2,!status4:10%] - as per [INVOICEEXTRAITEM1] but Calculate the value is displayed balance of all invoice charges with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a decimal point second colon (:) and no thousands separator it can be a percentage by ending the number with the percent (for calculations%)symbol or a numeric value offset.
[INVOICEEXTRAITEMQTY1INVOICEPARTCHARGESNUM:status1,status2,status4:10%] - quantity of extra invoice item 1 As per INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (number can be between 0 to 20for calculation) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICEGROSS:1INVOICEPAYMENTS] - gross amount invoice sum of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)all payments
INVOICEGROSSNUM[INVOICEPAYMENTS:150%] gross amount - invoice sum of the inserted VAT rate (number is the VAT rate)all payments with percentage multiplier
[INVOICENETINVOICEPAYMENTS:1-100] - net amount invoice sum of the inserted VAT rate (number is the VAT rate)all payments with offset
[INVOICENETNUM:1INVOICEPAYMENTSNUM] - net amount of the inserted VAT rate (number is As per [INVOICEPAYMENTS] but the VAT rate), value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEVATINVOICEPAYMENTSNUM:150%] - VAT amount of As per [INVOICEPAYMENTS:50%] but the inserted VAT rate (number value is the VAT rate)displayed with a decimal point and no thousands separator.
[INVOICEVATNUMINVOICEPARTPAYMENTS:1status1,status2,!status4:10%] VAT amount - 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 inserted VAT rate (number is with the VAT ratepercent (%), symbol or a numeric value is displayed with a decimal point and no thousands separator (for calculations)offset.
[INVOICEITEMBYDESCINVOICEPARTPAYMENTSNUM:Searchtermstatus1,status2,status4:10%] - searches As per INVOICEPARTCHARGES but the invoice for items value is displayed with this search term a decimal point and adds them upno thousands separator (for calculation).
[INVOICEITEMBYDESCNUM:SearchtermINVOICEPENDPAY] - searches the invoice for items with this search term all (auto and adds them up, value is displayed with a decimal point and no thousands separator (for calculationsmanual)pending payments including failed
[INVOICEPAYMENTBYDESC:SearchtermINVOICEPENDPAYNEXTDATE] - searches date of the payments for items with this search term and adds them upnext pending payment
[INVOICEPAYMENTBYDESCNUMINVOICEPENDPAYNEXTDATE:Searchterm] - searches date of the payments for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)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
=== Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[INVOICETABLEINVOICEPENDPAYNUM] - invoice tableall (auto and manual) pending payments including failed but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICETABLEVATINVOICEPENDPAY1234] - invoice table with vat information all (auto and vat summarymanual) pending payments including failed for the specified invoicee (-1 will include all items regardless of invoicee)
[INVOICETABLE:$1.1$INVOICEPENDPAYNUM1234] - invoice table all (auto and currency multiplier manual) pending payments including failed for the specified invoicee (-1 will include all items regardless of invoicee) The value is displayed with optional new currency symbol before or after pricea decimal point and no thousands separator (for calculation).
[INVOICETABLEPART:status1,status2,!status4INVOICEPENDPAYAUTO] - 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. auto pending payments before due date
[INVOICETABLE2INVOICEPENDPAYAUTONUM] - invoice table auto pending payments before due date but the value is displayed with status fielda decimal point and no thousands separator (for calculation).
[INVOICETABLE2:$1.1$INVOICEPENDPAYAUTO1234] - invoice table auto pending payments before due date for the specified invoicee but the value is displayed with status field a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculation) (-1 will include all items regardless of invoicee)
[INVOICETABLECHARGESINVOICEPENDPAYAUTONUM1234] auto pending payments before due date for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (- invoice table showing charges only1 will include all items regardless of invoicee)
[INVOICETABLECHARGESINVOICEE1234INVOICEPENDPAYFAIL] - invoice table showing charges only assigned to the specified invoicee, specify the invoicee Id number.failed pending payments (all also past)
[INVOICETABLENOTOTINVOICEPENDPAYFAILNUM] - invoice table without grand totalfailed pending payments (all also past) but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICETABLENOTOT:$1.1$INVOICEPENDPAYFAIL234] - invoice table without grand total 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)
[INVOICETABLENOTOT2INVOICEPENDPAYFAILNUM234] - invoice table failed pending payments (all also past) for the specified invoicee but the value is displayed with status field without grand totala decimal point and no thousands separator (for calculation) (-1 will include all items regardless of invoicee)
[INVOICETABLENOTOT2:$1.1$INVOICEPENDPAYRULE1] - invoice table with status field without grand total 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)
[INVOICETABLEVAT:$1.1$INVOICEPENDPAYRULENUM1] - invoice table shows all pending payment for this rule (exchange 1 for the rule number) displayed with vat information a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculation)
[INVOICETABLEVATCOMPACTINVOICEPENDPAYMANUAL] - compact version of invoice table with vat information and vat summary manual pending payments
[INVOICETABLEVATCOMPACT:$1.1$INVOICEPENDPAYMANUALNUM] - - compact version of invoice table manual pending payments but the value is displayed with vat information and vat summary a decimal point and currency multiplier with optional new currency symbol before or after priceno thousands separator (for calculation).
[INVOICETABLEVATCOMPACTNOSUMINVOICEPENDPAYMANUALNOTDUE] - compact version of invoice table with vat information without vat summarymanual pending payments before due date
[INVOICETABLEVATCOMPACTNOSUM:$1.1$INVOICEPENDPAYMANUALNOTDUENUM] manual - compact version of invoice table pending payments before due date 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 priceno thousands separator (for calculation).
[INVOICETABLEVATNOSUMINVOICEPENDPAYMANUALOVERDUE] manual - invoice table with vat information without vat summarypending payments after due date
[INVOICETABLEVATNOSUM:$1.1$INVOICEPENDPAYMANUALOVERDUENUM] - invoice table manual pending payments after due date 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)
[INVOICETABLEDATEVATNOSUMINVOICECREDITS] - invoice table with vat information and date without vat summarysum of all credit items (negative items)
[INVOICETABLEDATEVATNOSUMINVOICECREDITS:$1.1$50%] - invoice table sum of all credit items with vat information and date without vat summary and currency percentage multiplier with optional new currency symbol before or after price.
[INVOICETABLEVAT2INVOICECREDITS:-100] - invoice table sum of all credit items with vat information and status field and vat summaryoffset
[INVOICETABLEVAT2:$1.1$INVOICECREDITSNUM] - invoice table As per [INVOICECREDITS] but the value is displayed with vat information and status field and vat summary a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculation)
[INVOICETABLEVAT2NOSUMINVOICECREDITSNUM:] - invoice table As per [INVOICECREDITS:] but the value is displayed with vat information a decimal point and status field without vat summaryno thousands separator (for calculation)
[INVOICETABLEVAT2NOSUM:$1.1$INVOICEDEBITS] - invoice table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or after price.sum of all debit items (positive items)
[INVOICETABLEVATCHARGESINVOICEDEBITS:50%] - invoice table showing charges only sum of all debit items with vat information and vat summarypercentage multiplier
[INVOICETABLENOPRICEINVOICEDEBITS:-100] - invoice table sum of all debit items with no price informationoffset
[INVOICETABLEINVOICEEINVOICEDEBITSNUM] - invoice table excluding items assigned to an invoicee.As per [INVOICEDEBITS] but the value is displayed with a decimal point and no thousands separator (for calculations) (for calculations)
[INVOICETABLEINVOICEE1234INVOICEDEBITSNUM:] - invoice table As per [INVOICEDEBITS:] but the value is displayed with a decimal point and no thousands separator (for a specific invoicee, specify the invoicee Id number.calculations)
[UPSELLTABLEINVOICEVAT] - table with invoice sum of all upsell itemsvat value
[UPSELLTABLEVATINVOICEVATNUM] - table with invoice sum of all upsell items with vat information and vat summary value for calculations)
[UPSELLTABLENOREFUNDINVOICEFIRSTITEM] - table with all upsell items except refundable itemsprice of the item listed first in the invoice
==== Custom Invoice Table ====You have [INVOICEFIRSTITEMNUM] - price of the option to create item listed first in the invoice but the value is displayed with a custom invoice table. Available content variables are: decimal point and no thousands separator (for calculations)
AMO [INVOICESECONDITEM] - shows price of the net value (price x quantity)item listed second in the invoice
CEX [INVOICESECONDITEMNUM] - charges excluded price of the item listed second in the invoice but the value is displayed with a decimal point and no thousands separator (charges will not be shownfor calculations)
CON [INVOICETHIRDITEM] - currency conversion. Example: CONEURUSD will convert price of the first currency (Euros) to item listed third in the second currency (USD). CON1.234 would multiply the prices by 1.234invoice
CUA [INVOICETHIRDITEMNUM] - currency symbol showing after price of the numbers. Example: CUA€ will show € after item listed third in the figuresinvoice but the value is displayed with a decimal point and no thousands separator (for calculations)
CUB [INVOICEFOURTHITEM] - currency symbol showing before price of the numbers. Example: CUB€ will show € before item listed fourth in the figuresinvoice
DAT [INVOICEFOURTHITEMNUM] - adds price of the item listed fourth in the invoice but the value is displayed with a date columndecimal point and no thousands separator (for calculations)
DEC [INVOICEFIFTHITEM] - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set price of the system will use item listed fifth in the default for the languageinvoice
DP0 [INVOICEFIFTHITEMNUM] - price of the item listed fifth in the invoice but the value is displayed with a decimal point and no decimal placesthousands separator (for calculations)
DP1 [INVOICEUPSELL0] - 1 decimal placebase price without upsell items or other charges added later
DP2 [INVOICEUPSELLNUM0] - 2 as per [INVOICEUPSELL1] but the value is displayed with a decimal placespoint and no thousands separator (for calculations)
DP3 [INVOICEUPSELL1] - 3 decimal placesvalue of upsell item 1 (number can be between 0 to 20)
DP4 [INVOICEUPSELLNUM1] - 4 as per [INVOICEUPSELL1] but the value is displayed with a decimal placespoint and no thousands separator (for calculations)
GAT [INVOICEUPSELLQTY1] - sum for each columnquantity of upsell item 1 (number can be between 1 to 20)
GRP [INVOICEUPSELLNAME1] - Group Totals. Displays name of the same items as a total headline field of upsell item 1 (number can be between 1 to 20)
GRT [INVOICEUPSELLSTATUS1] - Grand Total stautus of the headline field of upsell item 1 (number can be between 1 to 20)
INV [INVOICEUPSELLHEADLINE1] - invoicee, add the invoicee headline (name and status if used of upsell item 1 (number at the end. Example: INV20 can be between 1 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)
LAN [INVOICEUPSELLDESCRIPTION1] - language. Example LANDE will force the language description of upsell item 1 (number can be between 1 to German20)
MUL [INVOICEUPSELLAMOUNTNUM1] - multiplier. Example: MUL1.2 will multiply all prices by amout of upsell item 1.2
NIN - do not show invoice number and invoice date on locked invoices
NOC - charges will not be displayed but their vat values are still calculated for the vat summary (VAT)
NOP - payments will not be displayed
ONE [INVOICEUPSELLTYPE1] - shows only items from the specified booking (not the booking group)type of upsell item 1
PAA [INVOICEUPSELLPER1] - shows a column with payment amountsper of upsell item 1
PAY [INVOICEUPSELLPERIOD1] - shows payments period of upsell item 1
PEN - shows pending payments description
PPA [INVOICEEXTRAITEMDESC1] - shows pending payments amount Name of extra invoice item 1 (number can be between 0 to 20)
PRI [INVOICEEXTRAITEM1] - shows prices value of extra invoice item 1 (number can be between 0 to 20) Note: the order goes by the order in a columnthe dropdown list not by the order the items are entered.
QTY [INVOICEEXTRAITEM1] - shows quantityvalue 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.
SEX [INVOICEEXTRAITEMNUM1] - status excluded. Calculate as per [INVOICEEXTRAITEM1] but the balance of all invoice items except for the ones value is displayed with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this statusdecimal point and no thousands separator (for calculations).
SIN [INVOICEEXTRAITEMQTY1] - status included. Calculate the balance quantity of all extra invoice items with matching status, the status items item 1 (number can be a comma separated between 0 to 20) Note: the order goes by the order in the dropdown list. Example: SIN status1,status2,status4 will only show not by the order the items with this statusare entered.
STA[INVOICEGROSS:1] - shows stausgross amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
THO - thousands separator. THO. will show a dot as thousand separator. If nothing INVOICEGROSSNUM:1] gross amount of the inserted VAT rate (number is set the system will use the default for the languageVAT rate)
TOT [INVOICENET:1] - shows total amountsnet amount of the inserted VAT rate (number is the VAT rate)
VAA [INVOICENETNUM:1] - shows net amount of the inserted VAT amountsrate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
VAP [INVOICEVAT:1] - shows VAT percentsamount of the inserted VAT rate (number is the VAT rate)
[INVOICEVATNUM:1] VAT - amount of the inserted VAT summaryrate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICEITEMBYDESC:Searchterm] - searches the invoice for items with this search term and adds them up
Connect [INVOICEITEMBYDESCNUM:Searchterm] - searches the variables invoice for items with an underscore. this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)
Examples[INVOICEPAYMENTBYDESC: Searchterm] - searches the payments for items with this search term and adds them up
[INVOICEINVOICEPAYMENTBYDESCNUM:PRI_QTY_CUA€Searchterm] will create an invoice table - searches the payments for items with price this search term and quantity in Euros.adds them up, value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICE:PAY_TOT_CEX] === Invoice Table ===These template varibles will create display an invoice table which will only show payments.==== Standard Invoice Tables ====[INVOICETABLE] - invoice table
[INVOICE:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAAINVOICETABLEVAT] will create an - invoice table with more vat information.and vat summary
== Invoicee Variables ==[INVOICEEBALANCEINVOICETABLE:$1.1$] - invoice balance for unassigned invoice itemstable and currency multiplier with optional new currency symbol before or after price.
[INVOICEEBALANCENUMINVOICETABLEPART:status1,status2,!status4] - invoice balance for unassigned invoice Invoice table showing only items displayed with matching status. The status items can be a decimal point and no thousands separatorcomma separated list. To exclude status items prefix them with an exclamation mark, for example !status1.
[INVOICEEBALANCE1234INVOICETABLE2] - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).table with status field
[INVOICEEBALANCENUM1234INVOICETABLE2:$1.1$] - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed table with a decimal point status field and no thousands separatorcurrency multiplier with optional new currency symbol before or after price.
[INVOICEECHARGESINVOICETABLECHARGES] - invoice table showing charges for unassigned invoice items.only
[INVOICEECHARGESNUMINVOICETABLECHARGESINVOICEE1234] - invoice table showing charges for unassigned invoice items displayed with a decimal point and no thousands separatoronly assigned to the specified invoicee, specify the invoicee Id number.
[INVOICEECHARGES1234INVOICETABLENOTOT] - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).table without grand total
[INVOICEECHARGESNUM1234INVOICETABLENOTOT:$1.1$] - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed table without grand total and currency multiplier with a decimal point and no thousands separatoroptional new currency symbol before or after price.
[INVOICEEPAYMENTSINVOICETABLENOTOT2] - invoice payments for unassigned invoice items.table with status field without grand total
[INVOICEEPAYMENTSNUMINVOICETABLENOTOT2:$1.1$] - invoice payments for unassigned invoice items displayed table with a decimal point status field without grand total and no thousands separatorcurrency multiplier with optional new currency symbol before or after price.
[INVOICEEPAYMENTS1234INVOICETABLEVAT:$1.1$] - invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)table with vat information and currency multiplier with optional new currency symbol before or after price.
[INVOICEEPAYMENTSNUM1234INVOICETABLEVATCOMPACT] - compact version of invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)table with vat information and vat summary
[INVOICEENAMEINVOICETABLEVATCOMPACT:$1.1$] - name compact version of the invoicee account the invoice is assigned to table with vat information and vat summary and currency multiplier with optional new currency symbol before or blankafter price.
[INVOICEECODEINVOICETABLEVATCOMPACTNOSUM] - code compact version of the invoicee account the invoice is assigned to or blanktable with vat information without vat summary
[INVOICEECURRENCYINVOICETABLEVATCOMPACTNOSUM:$1.1$] - currency compact version of the invoicee account the invoice is assigned to if it is not the property default table with vat information without vat summary and currency multiplier with optional new currency symbol before or blankafter price.
[INVOICEETEMPLATE1INVOICETABLEVATNOSUM] - template value 1 of the invoice account the invoice is assigned to or blanktable with vat information without vat summary
[INVOICEETEMPLATE2INVOICETABLEVATNOSUM:$1.1$] - template value 2 of the invoice account the invoice is assigned to table with vat information without vat summary and currency multiplier with optional new currency symbol before or blankafter price.
[INVOICEETEMPLATE3INVOICETABLEDATEVATNOSUM] - template value 3 of the invoice account the invoice is assigned to or blanktable with vat information and date without vat summary
[INVOICEETEMPLATE4INVOICETABLEDATEVATNOSUM:$1.1$] - template value 4 of the invoice account the invoice is assigned to table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or blankafter price.
[INVOICEETEMPLATE5INVOICETABLEVAT2] - template value 5 of the invoice account the invoice is assigned to or blanktable with vat information and status field and vat summary
[INVOICEETEMPLATE6INVOICETABLEVAT2:$1.1$] - template value 6 of the invoice account the invoice is assigned to table with vat information and status field and vat summary and currency multiplier with optional new currency symbol before or blankafter price.
[INVOICEETEMPLATE7INVOICETABLEVAT2NOSUM] - template value 7 of the invoice account the invoice is assigned to or blanktable with vat information and status field without vat summary
[INVOICEETEMPLATE8INVOICETABLEVAT2NOSUM:$1.1$] - template value 8 of the invoice account the invoice is assigned to table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or blankafter price.
== Guest Variables ==[GUESTIDSINVOICETABLEVATCHARGES] - comma separated list of guest Id's connected to the bookinginvoice table showing charges only with vat information and vat summary
[GUESTFLAGTEXTSINVOICETABLENOPRICE] - comma separated list of flag text values for each guest (when not empty) connected to the bookinginvoice table with no price information
== Payment Request Variables ==[PAYURLINVOICETABLEINVOICEE] - Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balanceinvoice table excluding items assigned to an invoicee.
[PAYURL:25%INVOICETABLEINVOICEE1234] - Creates a payment url for the payment request invoice table for a percentage of the outstanding balance. Use 100% to specific invoicee, specify the full outstanding balanceinvoicee Id number.
[PAYURL:200UPSELLTABLE] - Creates a payment url for the payment request url for a fixed amount. nt.table with all upsell items
[PAYLINKUPSELLTABLEVAT] - 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.table with all upsell items with vat information and vat summary
[PAYLINK:25%UPSELLTABLENOREFUND] -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.table with all upsell items except refundable items
[PAYLINK:200] - Creates a payment link (HTML A tag) for ==== Custom Invoice Table ====You have the payment request) for option to create a fixed amountcustom invoice table.Available content variables are:
[PAYBUTTON] AMO - Creates a payment button for shows the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.net value (price x quantity)
[PAYBUTTON:25%] CEX - 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.charges excluded (charges will not be shown)
[PAYBUTTONCON - currency conversion. Example:200] - Creates a payment button for CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the payment request for a fixed amountprices by 1. 234
[PAYPALURL] CUA - Creates a Paypal payment url for currency symbol showing after the amount in numbers. Example: CUA€ will show € after the booking deposit field if non zero, otherwise the outstanding balance.figures
[PAYPALURL:25%] CUB - Creates a Paypal payment url for a percentage of currency symbol showing before the outstanding balancenumbers. Use 100% to specify Example: CUB€ will show € before the full outstanding balance.figures
DAT - adds a date column - you have the option to control the format of the date using [PAYPALURL:200[Template_Variables#Date_and_Time|date and time variables] ] for example DAT{%d-%m- Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.%Y}
[PAYPALLINK] DEC - Creates Decimal points. Example: DEC, will show a Paypal payment link (HTML A tag) for comma as decimal point. If nothing is set the amount in system will use the booking deposit field if non zero, otherwise default for the outstanding balance.language
[PAYPALLINK:25%] DP0 - Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.no decimal places
[PAYPALLINK:200] DP1 - 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.1 decimal place
[PAYPALBUTTON] DP2 - Creates a Paypal payment button for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.2 decimal places
[PAYPALBUTTON:25%] DP3 - Creates a Paypal payment button for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.3 decimal places
[PAYPALBUTTON:200] DP4 - 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.4 decimal places
Add a H to exclude a gateway from displaying. Example: [PAYURL:200:HST] will hide StripeGAT - sum for each column
== Text Operators ==GRP - Group Totals. Displays the same items as a total
[REPLACE|searchForThisText|replaceWithThisText|textToSearch] GRT - replace "searchForThisText" with "replaceWithThisText" within the text "textToSearch"Grand Total
== iCal Links ==These template variables 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 create iCal links which allow show all items from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to be added to a calendar.add the invoicee from the booking
[ICALURL] LAN - Calendar linklanguage. Example LANDE will force the language to German
[ICALURLMUL - multiplier. Example:16] - Calendar link with check-in hourMUL1. Replace '16' with the hour check-in starts2 will multiply all prices by 1.2
[ICALURL::10] NIN - Calendar link with check-out hour. Replace '10' with the hour with the hour check-out ends.do not show invoice number and invoice date on locked invoices
[ICALURL:::summary text] NOC - Calendar link with a charges will not be displayed but their vat values are still calculated for the vat summary text(VAT)
[ICALURL::::description text] NOP - Calendar link with a descriptive textpayments will not be displayed
Example:ONE - shows only items from the specified booking (not the booking group)
Calendar link with checkORB -in time 16:00, check-out time 10:00order by booking, this keeps the summary text "Booking" and items for each booking (room) together in the description text "Sunny Hotel":table
[ICALURL:16:10:Booking:Sunny Hotel]PAA - shows a column with payment amounts
== Mathematical Operators ==PAY - shows payments
Place mathematical operators between two numbers <b>or between two template variables</b> that return a number.PEN - shows pending payments description
[+] PPA - Example: 2 [+] 3 = 5shows pending payments amount
[PRI -] - Example: 5 [-] 1 = 4shows prices in a column
[*] QTY - Example: 3 [*] 4 = 12shows 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: 15 [/] 5 = 3 SEX status1,status2,status4 will not show items with this status.
[MIN] SIN - status included. Calculate the balance of all invoice items with matching status, the status items can be a comma separated list. Example: 2 [MIN] 3 = 2 SIN status1,status2,status4 will only show items with this status.
[MAX] STA- Example: 2 [MAX] 3 = 3shows staus
Brackets are not supported THO - thousands separator. THO. will show a dot as a way to control processing order, thousand separator. If nothing is set the system will use the default for the processing order is fixed as *, /, +, -, MIN, MAXlanguage
TOT - shows total amounts
=== Rounding and controlling decimal places ===VAA - shows VAT amounts
==== Default ====VAP - shows VAT percents
2 [/] 3 = 0.66666666666667VAT - VAT summary
==== Rounding to the nearest integer ====
2 [/Connect the variables with an underscore.0] 3 = 1
==== Rounding to 1,2,3 or 4 decimal place(s) ====Examples:
2 [/.1INVOICE:PRI_QTY_CUA€] 3 = 0will create an invoice table with price and quantity in Euros.7
2 [/.2INVOICE:PAY_TOT_CEX] 3 = 0will create an invoice table which will only show payments.67
2 [/.3INVOICE:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] 3 = 0will create an invoice table with more information.667
2 [/.4INVOICE:SIN TRANSPORT] 3 will create an invoice table with the Invoice item description for any items with the Status = 0Transport.6667
== Invoicee Variables ==
[INVOICEEBALANCE] - invoice balance for unassigned invoice items.
<b>This works on all operators including [MININVOICEEBALANCENUM] - invoice balance for unassigned invoice items displayed with a decimal point and [MAX]</b>no thousands separator.
Note: Always use [INVOICEEBALANCE1234] - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the template variables ending with NUM. The math functions will only work with numbers with a decimal point (not a decimal commarequired Invoicee Id number) and no thousands separator and no currency symbol.
== Currency Conversion ==[INVOICEEBALANCENUM1234] - invoice 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.
[CONVERT:EUR-USDINVOICEECHARGES] - 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 usedinvoice charges for unassigned invoice items.
Example: [INVOICECHARGESNUMINVOICEECHARGESNUM] [*.2] [CONVERT:EUR-USD] will convert the invoice charge value from Euros to USD charges for unassigned invoice items displayed with two a decimal pointspoint and no thousands separator.
If you use the multiplier [INVOICEECHARGES1234] - invoice charges for invoice items assigned to convert currencies for channels: invoicee 1234 For example hotel id 123456 and a multiplier (change 1234 to convert USD to EUR at todays rate:the required Invoicee Id number).
123456*[CONVERT:USDINVOICEECHARGESNUM1234] -EUR]*invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a decimal point and no thousands separator.
or this to convert EUR to USD[INVOICEEPAYMENTS] - invoice payments for unassigned invoice items.
123456*[CONVERT:EURINVOICEEPAYMENTSNUM] -USD]invoice payments for unassigned invoice items displayed with a decimal point and no thousands separator.
123456*[CONVERT:USDINVOICEEPAYMENTS1234] -EUR][/]0.85 will convert invoice payments for invoice items assigned to invoicee 1234 (change 1234 to Euros and divides the price by 0.85 which raises it by circa 15%required Invoicee Id number)
==Account Variables [INVOICEEPAYMENTSNUM1234] - invoice payments for invoice items assigned to invoicee 1234 (account of change 1234 to the bookingrequired Invoicee Id number) ==
[ACCOUNTIDINVOICEENAME] - name of the invoicee account id of the booked propertyinvoice is assigned to or blank
[ACCOUNTTEMPLATE1INVOICEECODE] - Account Template 1code of the invoicee account the invoice is assigned to or blank
[ACCOUNTTEMPLATE2INVOICEECURRENCY] - Account Template 2currency of the invoicee account the invoice is assigned to if it is not the property default or blank
[ACCOUNTTEMPLATE3INVOICEENOTES] - Account Template 3value of the "Notes" field for the invoicee
[ACCOUNTTEMPLATE4INVOICEETEMPLATE1] - Account Template 4 template value 1 of the invoice account the invoice is assigned to or blank
[COMMISSIONLIMITINVOICEETEMPLATE2] - shows template value 2 of the available commission amount for the owner invoice account of the bookinginvoice is assigned to or blank
[MASTERACCOUNTTEMPLATE1INVOICEETEMPLATE3] - Account Template 1 from master template value 3 of the invoice accountthe invoice is assigned to or blank
[MASTERACCOUNTTEMPLATE2INVOICEETEMPLATE4] - Account Template 2 from master template value 4 of the invoice accountthe invoice is assigned to or blank
[MASTERACCOUNTTEMPLATE3INVOICEETEMPLATE5] - Account Template 3 from master template value 5 of the invoice accountthe invoice is assigned to or blank
[MASTERACCOUNTTEMPLATE4INVOICEETEMPLATE6] - Account Template 4 from master template value 6 of the invoice accountthe invoice is assigned to or blank
==Account Variables (logged in [INVOICEETEMPLATE7] - template value 7 of the invoice account, only for display in control panel , not for auto actions the invoice is assigned to or emails etc.) ==These variables can for example used by resellers who added a custom tab to the bookings. blank
[LOGGEDINACCOUNTIDINVOICEETEMPLATE8] - template value 8 of the invoice account id of the logged in userinvoice is assigned to or blank
[LOGGEDINACCOUNTTEMPLATE1INVOICEETEMPLATE1BR] - Account Template template value 1of the invoice account the invoice is assigned to or blank with linkebreak
[LOGGEDINACCOUNTTEMPLATE2INVOICEETEMPLATE2BR] - Account Template template value 2of the invoice account the invoice is assigned to or blank with linkebreak
[LOGGEDINACCOUNTTEMPLATE3INVOICEETEMPLATE3BR] - Account Template template value 3of the invoice account the invoice is assigned to or blank with linkebreak
[LOGGEDINACCOUNTTEMPLATE4INVOICEETEMPLATE4BR] - Account Template template value 4 of the invoice account the invoice is assigned to or blank with linkebreak
[LOGGEDINAPIKEYINVOICEETEMPLATE5BR] - apiKeytemplate value 5 of the invoice account the invoice is assigned to or blank with linkebreak
[MASTERLOGGEDINACCOUNTTEMPLATE1INVOICEETEMPLATE6BR] - Account Template 1 from master template value 6 of the invoice accountthe invoice is assigned to or blank with linkebreak
[MASTERLOGGEDINACCOUNTTEMPLATE2INVOICEETEMPLATE7BR] - Account Template 2 from master template value 7 of the invoice accountthe invoice is assigned to or blank with linkebreak
[MASTERLOGGEDINACCOUNTTEMPLATE3INVOICEETEMPLATE8BR] - Account Template 3 from master template value 8 of the invoice accountthe invoice is assigned to or blank with linkebreak
[MASTERLOGGEDINACCOUNTTEMPLATE4] - Account Template 4 from master account
== Smart Logic Template 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.
IF style template variables will compare two values and display [PAYURL:25%] - Creates a text if payment url for 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, payment request for a pipe | is used between percentage of the two textsoutstanding balance.Empty text is allowed if you do not want Use 100% to display anything for a conditionspecify the full outstanding balance.
[IF=PAYURL:if this:equals this:display this text|otherwise display this text200]- Creates a payment url for the payment request url for a fixed amount. nt.
[IFIN:PAYLINK] - Creates a payment link (HTML A tag) for the payment request for the amount in the booking deposit field if this:is contained in this:display this text|non zero, otherwise display this text]the outstanding balance.
[IFLIKEPAYLINK: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 thisnon zero, otherwise the outstanding balance. Not recommended for emails. [PAYBUTTON:is like this25%] - 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:display this text|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 display this textthe outstanding balance. [PAYPALURL:25%]- Creates a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
[IF>PAYPALURL:if this:is greater than this:display this text|otherwise display this text200]- Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.
[IF>=:PAYPALLINK] - Creates a Paypal payment link (HTML A tag) for the amount in the booking deposit field if this:is greater than or equal to this:display this text|non zero, otherwise display this text]the outstanding balance.
[IF<PAYPALLINK:if this:is less than this:display this text|otherwise display this text25%]- Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
[IF<=PAYPALLINK:if this:is less than or equal 200] - Creates a Paypal payment link (HTML A tag) for a fixed amount. A zero amount will cause paypal to provide a field to this:display this text|otherwise display this text]enter an amount.
[IFBETWEEN:if this:is between this:and this:display this text|if it is lower display this text|PAYPALBUTTON] - Creates a Paypal payment button for the amount in the booking deposit field if it is higher display this text]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.
You can use IF variables inside other IF variables [PAYPALBUTTON:200] - Creates a Paypal payment button for a fixed amount. A zero amount will cause paypal to create complex logic but the internal IF: must be processed before the external IFThey are processed in the following order from left provide a field to right so choose enter an internal one that is different and processed before the external one.i.eamount. all the [IF=: will be processed first, then all the [IFIN: etcNot 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 IF There are special versions of each IF constructed with ^ and ~ separators like [IF=^this^this^same~different] <span style="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span>Only one IF of each type can be used to create complex logic. The special versions are processed first so should be used as the internal IF so it's result can be processed by the outer if. The special versions can also be used if you expect : or | characters within your data.   IF's are processed in the following order.i.e. all the [IF=^ will be processed first, then all the [IFIN^ etc.  [IF=^[IFIN^[IFLIKE^[IF>^[IF>=^[IF<^[IF<=^[IFBETWEEN^[IF=:[IFIN:[IFLIKE:[IF>:[IF>=:[IF<:[IF<=:[IFBETWEEN:  === Examples === Template variables can be used inside this template variable as per the examples <span style="color: #019cde">comparison in blue</span>, <span style="color: #75d5ad">positive result in green</span>, <span style="color: #fe746c">negative result in red</span>: 1. [<span style="color: #019cde">IF=:[GUESTNAME]</span><span style="color: #75d5ad">:Miller</span><span style="color: #75d5ad"><span style="color: #75d5ad">:yes</span> <span style="color: #fe746c">|no</span>] If the guestname is Miller the text "yes" will display. If the guest name is not Miller the text "no" will display 2.[<span style="color: #019cde"> IF>:[NUMADULT]:2</span><span style="color: #75d5ad">:please contact us about you bedding requirements|</span>] If the number of adults is higher than 2 the text"please contact us about you bedding requirements" will display. If the number of adults is lower than or equal 2 nothing will display. 3. [<span style="color: #019cde">IF<:[NUMADULT]:3</span><span style="color: #75d5ad">:|linen for two adults is included free of charge</span>] If the number of adults is lower than 3 nothing will display. If the number of adults is not lower than 3 the text "linen for two adults is included free of charge" will display.  4. [<span style="color: #019cde">IF<=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>] 5. [<span style="color: #019cde">IF>=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>] 6. [<span style="color: #019cde">IFBETWEEN:[NUMADULT]:1:3</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|too low|too high</span>] 7. [<span style="color: #019cde">IFLIKE:[GUESTTITLE]</span><span style="color: #75d5ad">:Mr:Dear</span><span style="color: #fe746c">|Hi</span>] IFLIKE works like IF= except it is case insensitive and removes any spaces from the start and end of the words 8. [<span style="color: #019cde">IFIN:John:[GUESTFIRSTNAME]</span><span style="color: #75d5ad">:Hi John</span><span style="color: #fe746c">|Your name does not contain John?</span>] If the first word is contained in the second word the first option is displayed, otherwise the second option is displayed 9. [<span style="color: #019cde">IFIN:CHECKIN:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>] If the Booking Info Code CHECKIN has been added to the booking then you will see the value in the text (date/time) otherwise blank.
Using multiple IF statements to display special messages :-
Template variables can be used inside this template variable as per the examples 10. [<span style="color: #019cde">comparison in blue</span>, <span style="colorIFIN: #75d5ad">positive result in green</span>, <span style="colorDEPOSIT: #fe746c">negative result in red</span>[BOOKINGINFOCODES]1. |[<span style="color: #019cde">IF=:[GUESTNAMEGUESTCOUNTRY2]</span><span style="color: #75d5ad">:MillerAU</span><span style="color: #75d5ad"><span style="color: #75d5ad">:yesCredit card details are required </span> <span style="color: #fe746c">|noA deposit is required]|No deposit is required</span>]
If You want to display a special message to Australians if the guestname booking has a DEPOSIT info item code, if a deposit is Miller the text required from a non Australia they get "yesA deposit is required" will display. If the guest name and if no deposit is not Miller the text required they see "noNo deposit is required" will display
211.[<span style="color: #019cde"> IF><:[INADVANCE]:|[IFIN:TRANSFER:[NUMADULTBOOKINGINFOCODES]:23</span><span style="color: #75d5ad">:please contact us about you bedding requirementsPayment Due Date: ASAP </span><span style="color: #fe746c">|Payment Due Date: [FIRSTNIGHT:- 30days]]|</span>]
If the number of adults is higher than 2 the text"please contact us about you bedding requirements" will display. If the number of adults is lower than or equal 2 nothing will You want displaya special message to your guests 3 days before checkin with a Booking Info Code = TRANSFER.
312. [<span style="color: #019cde">IF<=:[NUMADULTSTATUS]:3Confirmed:PAID|[IF<^[INADVANCE]^30</span><span style="color: #75d5ad">^Payment Due Date:|linen for two adults is included free of chargeAs soon as possible</span><span style="color: #fe746c">~Payment Due Date: [FIRSTNIGHT:- 30 days]]</span>]
If You want to display a special message for your guests for any bookings with Status not = Confirmed, and if the number of adults checkin date is lower more than 3 nothing will display. If 30 days in advance, then send the number of adults is not lower than 3 message with "Payment Due Date : "or that the text "linen for two adults Payment is included free of chargedue As soon as possible" will display.
413. [<span style="color: #019cde">IF<=IFBETWEEN:[NUMADULTTURNOVERDAYS]:20:3:</span><span style="color: #75d5ad">:yes|</span><span style="color: #fe746c">|no</span>]
5You want to test if the days until next arrival into the same unit is between 0 and 3 days. Could be used for offering Late Checkouts or additional days to the guest where there is a gap between bookings. [<span style="color: #019cde">IF>=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>]
614. [<span style="color: #019cde">IFBETWEENIF>:[NUMADULTVACANTDAYS]:1:3</span><span style="color: #75d5ad">:yes|</span><span style="color: #fe746c">|too low|too highno</span>]
7You want to test if there is 1 day from the previous checkout to check in of current booking. Could be used for offering Early Checkouts or additional days to the guest where there is a gap between bookings. [<span style="color: #019cde">IFLIKE:[GUESTTITLE]</span><span style="color: #75d5ad">:Mr:Dear|Hi</span>]
IFLIKE works like 15. [<span style="color: #019cde">IF= except it is case insensitive and removes any spaces from the start and end of the words:[LEAVINGDAY:{%a}]:Sun:|[IF>=^[TURNOVERDAYS]^1</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">~no]</span>]
8You want to test if the leaving date is a Sunday and it there is a gap for 1 or more days between the current booking and the next booking. [<span style="color: #019cde">IFIN:John:[GUESTFIRSTNAME]</span><span style="color: #75d5ad">:Hi John</span><span style="color: #fe746c">|Your name does not contain John?</span>]
If the first word is contained in the second word the first option is displayed, otherwise the second option is displayed16. [<span style="color: #019cde">[IF=:[LEAVINGDAY:{%u}]:1:yes|[IF=^[LEAVINGDAY:{%u}]^3</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">]</span>]
9You want to test if the leaving date is a Monday or a Wednesday to send a specific message to the guest, for example a reminder that it is bin collection day. [<span style="color: #019cde">IFIN:CHECKIN:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>]
If the Booking Info Code CHECKIN has been added to the booking then you will see the value in the text (date17. [<span style="color: #019cde">[IF=:[LEAVINGDAY:{%u}]:1:yes|[IF=^[LEAVINGDAY:{%u}]^3^yes][IF=^[LEAVINGDAY:{%u}]^6</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">]</time) otherwise blank. span>]
You have different cleaning teams for different days of the week, and you want to send a message to the appropriate team if leaving date is a Monday, Wednesday or Saturday.
== Write out the number in Words. ==
[INWORDS] - writes out a number in words. This works in English only.
Expamles:
[INWORDS] 10 will write out then"ten"
[INWORDS] [INVOICEPAYMENTSNUM] will write out the invoice sum of all payments
[INWORDS] [INVOICEPAYMENTSNUM] [+] 10 will write out the invoice sum of all payments plus 10
 
Example: You want to display a special message to Australians if the booking has a DEPOSIT info item code, if a deposit is required from a non Australia they get "A deposit is required" and if no deposit is required they see "No deposit is required"
 
[<span style="color: #019cde">IFIN:DEPOSIT:[BOOKINGINFOCODES]:I[IF=:[GUESTCOUNTRY2]:AU</span><span style="color: #75d5ad">:Credit card details are required </span><span style="color: #fe746c">|A deposit is required]|No deposit is required</span>]
== Encoding Template Variables ==
Note<span style="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span> Always use the template variables ending with NUM if numbers are involved. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbol.

Navigation menu