Changes

Jump to navigation Jump to search

Template Variables

20,113 bytes added, 11:56, 28 October 2022
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')
[CHECKINENDCHECKOUTEND] - check-in out end time in 24hr format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in out end')
[CHECKOUTENDCHECKINSTART12] - check-out end in start time in 24hr am/pm format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-out endin start')
[CHECKINSTART12CHECKINEND12] - check-in start end time in am/pm format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in startend')
[CHECKINEND12CHECKOUTEND12] - check-in out end time in am/pm format (From {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT 'Check-in out end')
[CHECKOUTEND12PROPERTYDESCRIPTION1] - check-out end time in am/pm format (From Property Description 1 from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT 'Check-out end')
[PROPERTYDESCRIPTION1PROPERTYDESCRIPTION2] - Property Description 1 2 from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYDESCRIPTION2PROPERTYDESCBOOKPAGE1] - Property Description 2 Booking Page 1 from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYDESCBOOKPAGE1PROPERTYDESCBOOKPAGE2] - Property Description Booking Page 1 from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYDESCBOOKPAGE2PROPERTYGUESTDETAILSHEADER] - Property Description Booking Page 1 Guest Details Header from{{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYGUESTDETAILSHEADERPROPERTYGUESTENQUIRYHEADER] - Guest Details Enquiry Header from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYGUESTENQUIRYHEADERPROPERTYCONFIRMBOOKBUTTON] - Guest Enquiry Header Confirm Booking Button Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYCONFIRMBOOKBUTTONPROPERTYROOMNOTAVAIL] - Confirm Booking Button Room Not Available Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYROOMNOTAVAILPROPERTYROOMNOPRICE] - Room Not Available No Price Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYROOMNOPRICEPROPERTYNOROOMSAVAIL] - Room No Price Rooms Available Message from {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENT
[PROPERTYNOROOMSAVAILPROPERTYGROUP] - No Rooms Available Message from {#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > CONTENTshows the group keywords
== Room Variables ==
[ROOMNAMEOFFERBR] - room names of all booked rooms with offer name with line break
[ROOMNAMEOFFERINC] room names of all booked rooms with offer name inklincl. cancelled bookings
[ROOMNAMEOFFERINCBR] - room names of all booked rooms with offer name with line break
[ROOMTEMPLATE8] - ROOM Template 8
 
[ROOMTEMPLATE1BR] - ROOM Template 1 with linkbreak
 
[ROOMTEMPLATE2BR] - ROOM Template 2 with linkbreak
 
[ROOMTEMPLATE3BR] - ROOM Template 3 with linkbreak
 
[ROOMTEMPLATE4BR] - ROOM Template 4 with linkbreak
 
[ROOMTEMPLATE5BR] - ROOM Template 5 with linkbreak
 
[ROOMTEMPLATE6BR] - ROOM Template 6 with linkbreak
 
[ROOMTEMPLATE7BR] - ROOM Template 7 with linkbreak
 
[ROOMTEMPLATE8BR] - ROOM Template 8 with linkbreak
[ROOMMETAAUXTEXT] - room meta text setting for first booked room
[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
 
[UNITID] - ID of the unit (number)
[UNITNAME] - unit names of all the assigned room types in the booking group (cancelled bookings are not shown)
[UNITNAMEINC] - unit names of all the assigned room types in the booking group including cancelled bookings
[UNITNAME:1] - additional information (first) about the unit for all the assigned room types in the booking group (cancelled bookings are not shown) [UNITNAME:2] - additional information (second) about the unit for all the assigned room types in the booking group (cancelled bookings are not shown)
[UNITNAME1] - unit name of the assigned room for this booking number
[UNITNAME1:1] - additional information about the assigned room for this booking number / add the additional information on each line after a | symbol where you set the unit names
[ROOMDESCRIPTIONUNITSTATUS1] - Room description from {#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTthe status of the unit
[ROOMDESCRIPTION] - Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT [ROOMDESCRIPTION1] - Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES > ROOMS > SETUP
[LEAVINGDAYAVAIL] - returns yes or no, can be used to trigger an Auto Action
[NUMROOMSAVAIL] - returns the number of available rooms (-1 if overbooked), can be used to trigger an Auto Action [ROOMRACKRATENUM] - Rack Rate from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[ROOMCLEANINGFEENUM] - Cleaning fee from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[ROOMSECURITYDEPOSITNUM] - Securty deposit from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[ROOMTAXPERCENTNUM] - Tax percentate from from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[ROOMTAXPERSONNUM] - Tax per Person Night from from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
== Booking Variables ==
[BOOKIDLAST8] - Last 8 digits of booking number
 
[BEDDING] - displays bedding info codes
[RANDOM1] - a 1 digit random number seeded from the booking number
[RANDOM8] - a 8 digit random number seeded from the booking number
 
[VOUCHERPHRASE1] - Voucher Phrase - change the nubmer to the voucher you want to print out.
 
[VOUCHERAMOUNT1] - Voucher Amount - change the nubmer to the voucher you want to print out.
=== Content from "Info" tab ===
[BOOKINGINFOCODETEXT:infoCode] - the most recent Text value of the specified Booking Info Code, "infoCode" in this example
[BOOKINGINFOCODEDATE:infoCode]- the most recent date value of the specified Booking Info Code, "infoCode" in this example , supports custom date/time formats {%A, %e %B, %Y} after the infoCode
[INTERNALNOTES] - content from "Internal Notes" on the Info Tab
[INTERNALNOTESBR] - content from "Internal Notes" on the Info Tab with line break
 
[INTERNALNOTESHR] - content from "Internal Notes" on the Info Tab with separating line
=== Content from "Summary" tab see also under "Room" and "Property" ===
[GUESTMOBILENUM] - guests mobile number with all non-numeric characters removed
 
[MOBILELAST1] last digit of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST2] last 2 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST3] last 3 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST4] last 4 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST5] last 5 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST6] last 6 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
[PHONELAST1] - last digit of the guests phone number if guest phone is empty it will use the guests mobile number
[PHONELAST6] - last 6 digits of the guests phone number if guest phone is empty it will use the guests mobile number
 
[GUESTSMS:49] - attempt to convert the guest mobile number into a format suitable for SMS, if country code is missing add the one supplied in the template variable, if mobile number is empty use guest phone number instead.
[GUESTCOMPANY] - company name
[GUESTCUSTOMQ1] - answer to custom question 1
 
[GUESTCUSTOMQ1BR] - answer to custom question 1 with line breaks <BR>
[GUESTCUSTOMQ2] - answer to custom question 2
 
[GUESTCUSTOMQsBR] - answer to custom question 2 with line breaks <BR>
[GUESTCUSTOMQ3] - answer to custom question 3
 
[GUESTCUSTOMQ3BR] - answer to custom question 3 with line breaks <BR>
[GUESTCUSTOMQ4] - answer to custom question 4
 
[GUESTCUSTOMQ4BR] - answer to custom question 4 with line breaks <BR>
[GUESTCUSTOMQ5] - answer to custom question 5
 
[GUESTCUSTOMQ5BR] - answer to custom question 5 with line breaks <BR>
[GUESTCUSTOMQ6] - answer to custom question 6
 
[GUESTCUSTOMQ6BR] - answer to custom question 6 with line breaks <BR>
[GUESTCUSTOMQ7] - answer to custom question 7
 
[GUESTCUSTOMQ7BR] - answer to custom question 7 with line breaks <BR>
[GUESTCUSTOMQ8] - answer to custom question 8
 
[GUESTCUSTOMQ8BR] - answer to custom question 8 with line breaks <BR>
[GUESTCUSTOMQ9] - answer to custom question 9
 
[GUESTCUSTOMQ9BR] - answer to custom question 9 with line breaks <BR>
[GUESTCUSTOMQ10] - answer to custom question 10
 
[GUESTCUSTOMQ10BR] - answer to custom question 10 with line breaks <BR>
[REFERENCE] - content of the booking reference field
[APISOURCETEXT] - human readable name of the channel
[BOOKINGDATEBOOKINGIP] - booking dateip address of booker's computer
[APIMESSAGE] - api message sent by originating channel [BOOKINGDATE] - booking date in guests language [BOOKINGTIMEDATE] - booking date and timein guests language
[BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format
[BOOKINGIP] - ip address of booker's computer [APIMESSAGE] - api message sent by originating channelsee date and time variables below for custom time formats.
=== Content from "Charges and Payments" tab (also see "Invoice/Invoicee/Room") ===
[GUESTSNAMES] - name of all guests listed on the "guests" tab of the booking of the group booking
 
[GUESTSNAMESINC] - name of all guests listed on the "guests" tab of the booking of the group booking incl. cancelled
[GUESTSFIRSTNAMES] - first name of all guests listed on the "guests" tab of this booking last separated by an &
[GUESTSLASTNAMESINC] - last name of all guests listed on the "guests" tab of this booking incl. cancelled
[BOOKNAMELISTGUESTSADDRESSSBR1] - create a table with address of the first guest names and info for a on the "guests" tab of this booking / Tabelle mit Gastname und Informationen für diese Gruppenbuchunggroup
===Cancellation and Guest Login===[CANCELURLGUESTSADDRESSSBR1INC] - URL to view and cancel bookings address of the first guest on the "guests" tab of this booking group incl. cancelled
[CANCELDATEGUESTSAFULLADDRESSSBR1INC] - date until when the first address including city, postcode, sate and country from the guests tab of the booking is cancellable displaying a phraseincluding cancelled bookings in international format
[CANCELDATEYYYY-MM-DDGUESTSAFULLADDRESSSBR1] - date until when the first address including city, postcode, sate and country from the guests tab of the booking is cancellable displaying a date. If the date is in the past 00-00-0000 will be shownInternational format
[GUESTLOGINGUESTSBFULLADDRESSSBR1INC] - URL to view the first address including city, postcode, sate and country from the guests tab of the booking including cancelled bookingsin European format
==Date and Time==[CURRENTDATEGUESTSBFULLADDRESSSBR1] - current datethe first address including city, postcode, sate and country from the guests tab of the booking in European format
[CURRENTDATEYYYY-MM-DDGUESTSNUMBOOKINGS1] - current date in YYYY-MM-DD formatthe total number of bookings made by the first guest, a group booking counts as one booking.
[CURRENTTIMEGUESTSNUMSTAYS1] - current timethe total number of bookings not cancelled and not in the future made by the first guest, a group booking counts as one booking.
[DAYSTOCHECKINGUESTSCUSTOMQ1S] - number of days until check-inanswer to custom question 1 for all guests
[INADVANCEGUESTSCUSTOMQ1SINC] - number of days between booking and check-inanswer to custom question 1 for all guests including cancelled bookings
[GUESTSCUSTOMQ2S] - answer to custom question 2 for all guests
You can use PHP strftime format strings [GUESTSCUSTOMQ2SINC] - answer to create custom time formats. Information on PHP strftime strings is available at [http://php.net/manual/en/function.strftime.php http://php.net/manual/en/function.strftime.php]question 2 for all guests including cancelled bookings
[DAYSBETWEEN:2019-11-01:2019-11-10GUESTSCUSTOMQ3S] - this template variable will calculate the number of days between the :: the dates need answer to be in yyyy-mm-dd format. Template variables can be used custom question 3 for calculation.all guests
Example: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}GUESTSCUSTOMQ3SINC]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today. answer to custom question 3 for all guests including cancelled bookings
[FIRSTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ4S] - first night bookedanswer to custom question 4 for all guests
[FIRSTNIGHT:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ4SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 4 for all guests including cancelled bookings
[LASTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ5S] - last night bookedanswer to custom question 5 for all guests
[LASTNIGHT:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ5SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 5 for all guests including cancelled bookings
[LEAVINGDAY:{%A, %e %B, %Y}GUESTSCUSTOMQ6S] - check-out answer to custom question 6 for all guests
[LEAVINGDAY:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ6SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 6 for all guests including cancelled bookings
[CURRENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - current dateanswer to custom question 7 for all guests
[CURRENTDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ7SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 7 for all guests including cancelled bookings
[BOOKINGDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - booking dateanswer to custom question 8 for all guests
[BOOKINGDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ8SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 8 for all guests including cancelled bookings
[MODIFYDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ9S] - last booking modification date/time, the display can be any valid PHP strftime format string.answer to custom question 9 for all guests
[PAYMENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ9SINC] - most recent payment dateanswer to custom question 9 for all guests including cancelled bookings
[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000GUESTSCUSTOMQ10S] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string. The second parameter specifies the payment answer to show, 0 or missing means the most recent payment. The third parameter specifies the invoicee.custom question 10 for all guests
== Booking Group variables ===== Custom Booking Group Table ===create your own booking group list by specifying the columns in the order you want them [GUESTSCUSTOMQ10SINC] - answer to appear.custom question 10 for all guests including cancelled bookings
for example: ===Cancellation, Management and Guest Login===[BOOKGROUP:PROP_ROOM_BREF_NAMECANCELLEDTIME] - date when the booking was cancelled
column parameters[CANCELLEDTIME:] - date when the booking was cancelled display can be any valid PHP strftime format string
ADDR = Booking address[CANCELURL] - URL to view and cancel bookings
ADUL= [CANCELDATE] - date until when the number of adultsbooking is cancellable displaying a phrase
ARIV = Arrival [CANCELDATEYYYY-MM-DD] - dateuntil when the booking is cancellable displaying a date. If the date is in the past 00-00-0000 will be shown
BREF = Booking [DAYSTOCANCEL] - numberof days until booking can be cancelled
CITY = Booking city [CANCELUNTIL] - shows the number of days between check-in and the last day which can be cancelled. If guest can always cancel it shows 0, if guest can never cancel it shows 9999
CHAR = Charges[GUESTLOGIN] - URL to view bookings
CHIL = [TURNOVERDAYS] - days until next arrival into the number of childrensame unit
COUN = Booking country [VACANTDAYS] days from previous checkout to check in of current booking
DEPT = Departure date=Date and Time==
EMAI = Booking Email [CURRENTDATE] - current date
FLAG = Booking flag text[CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format
FNAM = Booking first name[CURRENTDATE:{%A, %e %B, %Y}] - current date
[CURRENTDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
GADD = Guest address[CURRENTTIME] - current time and the display can be any valid PHP strftime format string.
GCIT = Guest city[CURRENTTIME:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
GCOM = Guest company[DAYSTOCHECKIN] - number of days until check-in
GCOU = Guest country[INADVANCE] - number of days between booking and check-in
GFLA = Guest 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.
GFNA = Guest first name Example: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today.
GLNA = Guest last name[FIRSTNIGHT:{%A, %e %B, %Y}] - first night booked
GMOB = Guest mobile[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.
GNAM = Guest full name[LASTNIGHT:{%A, %e %B, %Y}] - last night booked
GEMA = Guest Email[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.
GNOT = Guest note[LEAVINGDAY:{%A, %e %B, %Y}] - check-out
GPOS = Guest postcode[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.
GREF = Guest Id[BOOKINGDATE:{%A, %e %B, %Y}] - booking date
GSTA = Guest state[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.
GTEL = Guest phone[MODIFYDATE:{%A, %e %B, %Y}] - last booking modification date/time, the display can be any valid PHP strftime format string.
ICAN = Include cancelled bookings[PAYMENTDATE:{%A, %e %B, %Y}] - most recent payment date
LNAM = Booking last name[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format. The second parameter specifies the payment to show, 0 or missing means the most recent payment. The third parameter specifies the invoicee.
MOBI = Booking mobile[AUTHORIZEUNTIL] - date until which a card is authorized, this is extracted from the most recent authorize booking info code.
NAME = Booking full name[AUTHORIZEUNTIL{%A, %e %B, %Y}] - custom format date until which a card is authorized, this is extracted from the most recent authorize booking info code.
NOTE = Booking note[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.
ONAM = Offer Name
ONLY = Just show The following codes can be used in any order between the one booking{} brackets to create custom time and date formats.
PAID = Paid amount %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 ("%")
PEOP = = Booking Group variables ===== Custom Booking Group Table ===create your own booking group list by specifying the columns in the number of guestsorder you want them to appear.
PHON = Booking phonefor example: [BOOKGROUP:PROP_ROOM_BREF_NAME]
POST = Booking postcodecolumn parameters
PROP 100% = Property name100% width
RDE0 ADDR = Room description from {#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTBooking address
RDE1 ADUL= Room description 1 from {#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUPthe number of adults
RNAM ARIV = Room Display Name ROOM = Room nameArrival date
STAT BOPR = Booking stateBold prices
TOTA BREF = Total priceBooking number
UNI2 CITY = Unit first additional information UNI3 = Unit second additional informationBooking city
UNIT CHAC = Unit nameCharges with currency symbol
CHAR = Charges
Connect the parameters with an underscore. CHIL = Number of children
Examples: COUN = Booking country
[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.DEPT = Departure date
EMAI = Booking Email
[BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and room name in this order.EXSP = extra space between rows
==FLAG = Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - create a table of guest names including room type for a group bookingflag text
[BOOKGROUPROOMLISTTOTAL] - create a table of guest names including room type for a group booking with guest totalsFNAM = Booking first name
[BOOKGROUPROOMLISTCHARGETOTAL] - create a table of guest names including room type and charge for a group booking with guest totalsGADD = Guest address
[BOOKGROUPNAMELIST] - create a table of guest names including room type and unit for a group bookingGCIT = Guest city
[BOOKGROUPNAMELISTTOTAL] - create a table of guest names including room type and unit for a group booking with guest totalsGCOM = Guest company
[BOOKGROUPNAMELISTCHARGETOTAL] - create a table of guest names including room type and unit and charge for a group booking with guest totalsGCOU = Guest country
[BOOKGROUPUNITLIST] - create a table of guest names including unit for a group bookingGFLA = Guest flag text
[BOOKGROUPUNITLISTTOTAL] - create a table of guest names including unit for a group booking with guest totalsGFNA = Guest first name
[BOOKGROUPUNITLISTCHARGETOTAL] - create a table of guest names including unit and charge for a group booking with guest totalsGLNA = Guest last name
GMOB == Invoice Variables ==[INVOICENUMBER] - invoice numberGuest mobile
[INVOICENUMBERS] - invoice number if invoicees are involvedGNAM = Guest full name
[INVOICEDATE] - invoice dateGEMA = Guest Email
[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. GNOT = Guest note
GPOS == Custom Invoice Variables ==You have the option to create a custom invoice variable. Available content variables are: Guest postcode
CHA - chargesGREF = Guest Id
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 GSTA = Guest state
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the languageGTEL = Guest phone
DP0 - no decimal placesICAN = Include cancelled bookings
DP1 - 1 decimal placeLNAM = Booking last name
DP2 - 2 decimal placesMOBI = Booking mobile
DP3 - 3 decimal placesNAME = Booking full name
DP4 - 4 decimal places NOHE = no header
DESsome description - sum of values with "some description"NOTE = Booking note
INV - invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV-1 will show all items from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking ONAM = Offer Name
IT1 - item 1 in ONLY = Just show the invoiceone booking
IT2 - item 2 in the invoice PAIC = Payment amount with currency symbol
IT3 - item 3 in the invoicePAID = Paid amount
IT4 - item 4 in the invoicePEOP = Number of guests
IT5 - item 5 in the invoicePHON = Booking phone
MUL - multiplier. Example: MUL1.2 will multiply all prices by 1.2 POST = Booking postcode
NUM - show with decimal place (for scripts)PROP = Property name
THO - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language RDE0 = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
UPS1 - upsell RDE1 = Room description 1from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUP
UPS2 - upsell 2RNAM = Room Display Name ROOM = Room name
UPS3 - upsell 3RQTY = shows the number of rooms for each booking and a total at the bottom
UPS4 - upsell 4STAT = Booking state
UPS5 - upsell 5STUS = Status
ONE - shows only items from the specified booking (not the booking group)TOTA = Total price
PAY - shows payments UNI2 = Unit first additional information UNI3 = Unit second additional information
QTY - shows quantityUNIT = Unit name
SEX - status excluded. Calculate the balance of all invoice items except for the ones with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this status.
SIN - status included. Calculate Connect the balance of all invoice items parameters with matching status, the status items can be a comma separated list. Example: SIN status1,status2,status4 will only show items with this statusan underscore.
VAT - VAT summaryExamples:
[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.
Connect the variables with an underscore.
Examples[BOOKGROUP: BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and room name in this order.
=== Booking Group Table with fixed content===[INVOICEVAL:PAY_THOBOOKGROUPROOMLIST] wil show payments with - create a table of guest names including room type for a thousands separatorgroup booking
[BOOKGROUPROOMLISTTOTAL] ---create a table of guest names including room type for a group booking with guest totals
[BOOKGROUPROOMLISTCHARGETOTAL] - create a table of guest names including room type and charge for a group booking with guest totals
[INVOICEBALANCEBOOKGROUPNAMELIST] - invoice balancecreate a table of guest names including room type and unit for a group booking
[INVOICEBALANCE:50%BOOKGROUPNAMELISTTOTAL] - percentage create a table of invoice balanceguest names including room type and unit for a group booking with guest totals
[INVOICEBALANCE:-100BOOKGROUPNAMELISTCHARGETOTAL] - invoice balance create a table of guest names including room type and unit and charge for a group booking with offset amountguest totals
[INVOICEBALANCENUMBOOKGROUPUNITLIST] - As per [INVOICEBALANCE] but the value is displayed with create a decimal point and no thousands separator (table of guest names including unit for calculation).a group booking
[INVOICEBALANCENUM:BOOKGROUPUNITLISTTOTAL] - As per [INVOICEBALANCE:] but the value is displayed with create a decimal point and no thousands separator (table of guest names including unit for calculation).a group booking with guest totals
[INVOICEPARTBALANCE:status1,status2,!status4:10%BOOKGROUPUNITLISTCHARGETOTAL] - Calculate the balance create a table of all invoice items with matching status guest names including 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
== Invoice Variables ==[INVOICEPARTBALANCENUM:status1,status2,status4:10%INVOICENUMBER] - As per INVOICEPARTBALANCE but the value is displayed with a decimal point and no thousands separator (for calculation).invoice number
[INVOICEBALANCE1INVOICENUMBERS] - invoice balance of one booking only, not the booking groupnumber if invoicees are involved
[INVOICEBALANCE1NUMINVOICEDATE] - As per [INVOICEBALANCE1] but the value is displayed with a decimal point and no thousands separator (for calculation)invoice date
[INVOICECHARGESINVOICEDATES] - invoice sum of all charges date invoice number if invoicees are involved
[INVOICECHARGESINVOICEDATE:50+1day{%A, %e %B, %Y}] - invoice sum optional date offset and display format. The offset can be any plus or minus any number of all charges with percentage multiplierdays and the display can be any valid PHP strftime format string.
[INVOICECHARGESINVOICEDATES:+1day{%A, %e %B, %Y}] -100] optional date offset and display format - invoice sum date invoice number if invoicees are involved, The offset can be any plus or minus any number of all charges with offset days and the display can be any valid PHP strftime format string.
[INVOICECHARGESNUM] - As per [INVOICECHARGES] but === Invoice Values ===These template variables will display a value form the value is displayed with a decimal point and no thousands separator (for calculation)invoice.
[INVOICECHARGESNUM:] - As per [INVOICECHARGES:] but ==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value is displayed from an invoice. [INVOICEVAL with a decimal point and no thousands separator (for selection of the following variables specifies the calculation):
[INVOICEPARTCHARGES:status1,status2,!status4:10%] CHA - Calculate the 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 second colon (:) and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offset.
[INVOICEPARTCHARGESNUMCON - currency conversion. Example:status1,status2,status4:10%] - As per INVOICEPARTCHARGES but CONEURUSD will convert the first currency (Euros) to the value is displayed with a decimal point and no thousands separator second currency (for calculationUSD).CON1.234 would multiply the prices by 1.234
[INVOICEPAYMENTS] DEC - invoice sum of all payments Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the language
[INVOICEPAYMENTS:50%] DP0 - invoice sum of all payments with percentage multiplier no decimal places
[INVOICEPAYMENTS:DP1 -100] - invoice sum of all payments with offset 1 decimal place
[INVOICEPAYMENTSNUM] DP2 - As per [INVOICEPAYMENTS] but the value is displayed with a 2 decimal point and no thousands separator (for calculation)places
[INVOICEPAYMENTSNUM:50%] DP3 - As per [INVOICEPAYMENTS:50%] but the value is displayed with a 3 decimal point and no thousands separator.places
[INVOICEPARTPAYMENTS:status1,status2,!status4:10%] DP4 - 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.4 decimal places
[INVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] DES - As per INVOICEPARTCHARGES but used as "DESsome description" - gives the sum of values containing the value is displayed with a decimal point and no thousands separator (for calculation).description "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[INVOICEPENDPAYBOOKINGINVOICEEID]] - all (auto and manual) pending payments including failedto add the invoicee from the booking
[INVOICEPENDPAYNUM] IT1 - all (auto and manual) pending payments including failed but item 1 in the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEPENDPAY1234] IT2 - all (auto and manual) pending payments including failed for item 2 in the specified invoiceeinvoice
[INVOICEPENDPAYNUM1234] IT3 - all (auto and manual) pending payments including failed for item 3 in the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEPENDPAYAUTO] IT4 - auto pending payments before due date item 4 in the invoice
[INVOICEPENDPAYAUTONUM] IT5 - auto pending payments before due date but item 5 in the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEPENDPAYAUTO1234] auto pending payments before due date for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation)MUL - multiplier. Example: MUL1.2 will multiply all prices by 1.2
[INVOICEPENDPAYAUTONUM1234] auto pending payments before due date for the specified invoicee but the value is displayed NUM - show with a decimal point and no thousands separator place (for calculationscripts)
[INVOICEPENDPAYFAIL] THO - failed pending payments (all also past)thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language
[INVOICEPENDPAYFAILNUM] UPS1 - failed pending payments (all also past) but the value is displayed with a decimal point and no thousands separator (for calculation)upsell 1
[INVOICEPENDPAYFAIL234] UPS2 - failed pending payments (all also past) for the specified invoicee upsell 2
[INVOICEPENDPAYFAILNUM234] UPS3 - failed pending payments (all also past) for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation)upsell 3
[INVOICECREDITS] UPS4 - invoice sum of all credit items (negative items)upsell 4
[INVOICECREDITS:50%] UPS5 - invoice sum of all credit items with percentage multiplier upsell 5
[INVOICECREDITS:ONE -100] - invoice sum of all credit shows only items with offset from the specified booking (not 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
[INVOICECREDITSNUM:] QTY - As per [INVOICECREDITS:] but the value is displayed with a decimal point and no thousands separator (for calculation)shows quantity
[INVOICEDEBITS] SEX - invoice sum status excluded. Calculate the balance of all debit invoice items except for the ones with these status, the status items (positive can be a comma separated list. Example: SEX status1,status2,status4 will not show items)with this status.
[INVOICEDEBITS:50%] 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 percentage multiplierthis status.
[INVOICEDEBITS:VAT -100] - invoice sum of all debit items with offsetVAT summary
[INVOICEDEBITSNUM] - As per [INVOICEDEBITS] but the value is displayed with a decimal point and no thousands separator (for calculations) (for calculations)
[INVOICEDEBITSNUM:] - As per [INVOICEDEBITS:] but Connect the value is displayed variables with a decimal point and no thousands separator (for calculations)an underscore.
[INVOICEVAT] - invoice sum of all vat valueExamples:
[INVOICEVATNUMINVOICEVAL:PAY_THO] - invoice sum of all vat value for calculations)will show payments with a thousands separator
[INVOICEFIRSTITEMINVOICEVAL:UPS1_UPS2] - price will show the sum of the item listed first in the invoiceupsell 1 and upsell 2
==== Standard Invoice Values====[INVOICEFIRSTITEMNUMINVOICEBALANCE] - price of the item listed first in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)balance
[INVOICESECONDITEMINVOICEBALANCE:50%] - price percentage of the item listed second in the invoicebalance
[INVOICESECONDITEMNUMINVOICEBALANCE:-100] - price of the item listed second in the invoice but the value is displayed balance with a decimal point and no thousands separator (for calculations)offset amount
[INVOICETHIRDITEMINVOICEBALANCENUM] - price of the item listed third in As per [INVOICEBALANCE] but the invoicevalue is displayed with a decimal point and no thousands separator (for calculation).
[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).
[INVOICEUPSELL0INVOICEPARTBALANCE:status1,status2,!status4:10%] - base price without upsell Calculate the balance of all invoice items with matching status and apply optional multiplier or other charges added lateroffset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset is optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offset.
[INVOICEUPSELLNUM0INVOICEPARTBALANCENUM:status1,status2,status4:10%] - as As per [INVOICEUPSELL1] INVOICEPARTBALANCE but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEUPSELL1INVOICEBALANCE1] - value invoice balance of upsell item 1 (number can be between 0 to 20)one booking only, not the booking group
[INVOICEUPSELLNUM1INVOICEBALANCE1NUM] - as As per [INVOICEUPSELL1INVOICEBALANCE1] but the value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEUPSELLQTY1INVOICECHARGES] - quantity invoice sum of upsell item 1 (number can be between 1 to 20)all charges
[INVOICEUPSELLHEADLINE1INVOICECHARGES:50%] - headline invoice sum of upsell item 1 (number can be between 1 to 20)all charges with percentage multiplier
[INVOICEUPSELLDESCRIPTION1INVOICECHARGES:-100] - description invoice sum of upsell item 1 (number can be between 1 to 20)all charges with offset
[INVOICEEXTRAITEMDESC1INVOICECHARGESNUM] - Name of extra invoice item 1 As per [INVOICECHARGES] but the value is displayed with a decimal point and no thousands separator (number can be between 0 to 20for calculation)
[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.
[INVOICEEXTRAITEM1INVOICEPARTCHARGES:status1,status2,!status4:10%] - value Calculate the balance of extra all invoice item 1 charges with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (number :) and it can be between 0 to 20) Note: the order goes a percentage by ending the order in number with the dropdown list not by the order the items are enteredpercent (%) symbol or a numeric value offset.
[INVOICEEXTRAITEMNUM1INVOICEPARTCHARGESNUM:status1,status2,status4:10%] - as As per [INVOICEEXTRAITEM1] INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEEXTRAITEMQTY1INVOICEPAYMENTS] - quantity invoice sum 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. all payments
[INVOICEGROSSINVOICEPAYMENTS:150%] - gross amount invoice sum of the inserted VAT rate (number is the VAT rate), value is displayed all payments with a decimal point and no thousands separator (for calculations)percentage multiplier
INVOICEGROSSNUM[INVOICEPAYMENTS:1-100] gross amount - invoice sum of the inserted VAT rate (number is the VAT rate)all payments with offset
[INVOICENET:1INVOICEPAYMENTSNUM] - net amount of As per [INVOICEPAYMENTS] but the inserted VAT rate value is displayed with a decimal point and no thousands separator (number is the VAT ratefor calculation)
[INVOICENETNUMINVOICEPAYMENTSNUM:150%] - net amount of the inserted VAT rate (number is As per [INVOICEPAYMENTS:50%] but the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations).
[INVOICEVATINVOICEPARTPAYMENTS: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 offset.
[INVOICEVATNUMINVOICEPARTPAYMENTSNUM:1status1,status2,status4:10%] VAT amount of the inserted VAT rate (number is - As per INVOICEPARTCHARGES but the VAT rate), value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEITEMBYDESC:SearchtermINVOICEPENDPAY] - searches the invoice for items with this search term all (auto and adds them upmanual) pending payments including failed
[INVOICEITEMBYDESCNUM:SearchtermINVOICEPENDPAYNEXTDATE] - searches date of the invoice for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)next pending payment
[INVOICEPAYMENTBYDESCINVOICEPENDPAYNEXTDATE:Searchterm] - searches date of the payments for items with this search term and adds them upnext 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
[INVOICEPAYMENTBYDESCNUM:SearchtermINVOICEPENDPAYNUM] - searches all (auto and manual) pending payments including failed but the payments for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[UPSELLTABLEINVOICEPENDPAY1234] - table with all (auto and manual) pending payments including failed for the specified invoicee (-1 will include all upsell itemsregardless of invoicee)
[UPSELLTABLEVATINVOICEPENDPAYNUM1234] - table with all (auto and manual) pending payments including failed for the specified invoicee (-1 will include all upsell items regardless of invoicee) The value is displayed with vat information a decimal point and vat summary no thousands separator (for calculation).
[UPSELLTABLENOREFUNDINVOICEPENDPAYAUTO] - table with all upsell items except refundable items auto pending payments before due date
== Invoice Table ===== Invoice Tables with predefined content ===[INVOICETABLEINVOICEPENDPAYAUTONUM] - invoice tableauto pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICETABLEVATINVOICEPENDPAYAUTO1234] - invoice table auto pending payments before due date for the specified invoicee but the value is displayed with vat information a decimal point and vat summaryno thousands separator (for calculation) (-1 will include all items regardless of invoicee)
=== Custom Invoice Table ===You have [INVOICEPENDPAYAUTONUM1234] auto pending payments before due date for the option to create specified invoicee but the value is displayed with a custom invoice table. Available content variables are: decimal point and no thousands separator (for calculation) (-1 will include all items regardless of invoicee)
AMO [INVOICEPENDPAYFAIL] - shows the net value failed pending payments (price x quantityall also past)
CEX [INVOICEPENDPAYFAILNUM] - charges excluded failed pending payments (charges will not be shownall also past) but the value is displayed with a decimal point and no thousands separator (for calculation)
CON [INVOICEPENDPAYFAIL234] - currency conversion. Example: CONEURUSD will convert the first currency failed pending payments (Eurosall also past) to for the second currency specified invoicee (USD-1 will include all items regardless of invoicee). CON1.234 would multiply the prices by 1.234
CUA [INVOICEPENDPAYFAILNUM234] - currency symbol showing after failed pending payments (all also past) for the numbers. Example: CUA€ specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (-1 will show € after the figuresinclude all items regardless of invoicee)
CUB [INVOICEPENDPAYRULE1] - currency symbol showing before shows all pending payment for this rule (exchange 1 for the numbers. Example: CUB€ will show € before the figuresrule number)
DAT [INVOICEPENDPAYRULENUM1] - adds shows all pending payment for this rule (exchange 1 for the rule number) displayed with a date columndecimal point and no thousands separator (for calculation)
DEC [INVOICEPENDPAYMANUAL] - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the language manual pending payments
DP0 [INVOICEPENDPAYMANUALNUM] - manual pending payments but the value is displayed with a decimal point and no decimal placesthousands separator (for calculation).
DP1 - 1 decimal place[INVOICEPENDPAYMANUALNOTDUE] manual pending payments before due date
DP2 [INVOICEPENDPAYMANUALNOTDUENUM] manual - 2 pending payments before due date but the value is displayed with a decimal placespoint and no thousands separator (for calculation).
DP3 - 3 decimal places[INVOICEPENDPAYMANUALOVERDUE] manual pending payments after due date
DP4 - 4 [INVOICEPENDPAYMANUALOVERDUENUM] manual pending payments after due date but the value is displayed with a decimal placespoint and no thousands separator (for calculation)
GRP [INVOICECREDITS] - Group Totals. Displays the same invoice sum of all credit items as a total(negative items)
GRT [INVOICECREDITS:50%] - Grand Totalinvoice sum of all credit items with percentage multiplier
INV [INVOICECREDITS:- invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV100] -1 will show invoice sum of all credit items from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the bookingwith offset
LAN [INVOICECREDITSNUM] - language. Example LANDE will force As per [INVOICECREDITS] but the language to Germanvalue is displayed with a decimal point and no thousands separator (for calculation)
MUL [INVOICECREDITSNUM:] - multiplier. ExampleAs per [INVOICECREDITS: MUL1.2 will multiply all prices by 1.2] but the value is displayed with a decimal point and no thousands separator (for calculation)
NIN [INVOICEDEBITS] - do not show invoice number and invoice date on locked invoicessum of all debit items (positive items)
NOC [INVOICEDEBITS:50%] - charges will not be displayed but their vat values are still calculated for the vat summary (VAT)invoice sum of all debit items with percentage multiplier
NOP [INVOICEDEBITS:- payments will not be displayed 100] - invoice sum of all debit items with offset
ONE [INVOICEDEBITSNUM] - shows only items from As per [INVOICEDEBITS] but the specified booking value is displayed with a decimal point and no thousands separator (not the booking groupfor calculations) (for calculations)
PAA [INVOICEDEBITSNUM:] - shows As per [INVOICEDEBITS:] but the value is displayed with a column with payment amountsdecimal point and no thousands separator (for calculations)
PAY [INVOICEVAT] - shows payments invoice sum of all vat value
PEN [INVOICEVATNUM] - shows pending payments descriptioninvoice sum of all vat value for calculations)
PPA [INVOICEFIRSTITEM] - shows pending payments amount price of the item listed first in the invoice
PRI [INVOICEFIRSTITEMNUM] - shows prices price of the item listed first in the invoice but the value is displayed with a columndecimal point and no thousands separator (for calculations)
QTY [INVOICESECONDITEM] - shows quantityprice of the item listed second in the invoice
SEX [INVOICESECONDITEMNUM] - status excluded. Calculate price of the item listed second in the balance of all invoice items except for but 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 status.decimal point and no thousands separator (for calculations)
SIN [INVOICETHIRDITEM] - status included. Calculate price of the item listed third in 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.
STA[INVOICETHIRDITEMNUM] - shows stausprice of the item listed third in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)
THO [INVOICEFOURTHITEM] - thousands separator. THO. will show a dot as thousand separator. If nothing is set price of the system will use item listed fourth in the default for the languageinvoice
TOT [INVOICEFOURTHITEMNUM] - shows total amountsprice of the item listed fourth in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)
VAA [INVOICEFIFTHITEM] - shows VAT amountsprice of the item listed fifth in the invoice
VAP [INVOICEFIFTHITEMNUM] - shows VAT percentsprice of the item listed fifth in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)
VAT [INVOICEUPSELL0] - VAT summarybase price without upsell items or other charges added later
[INVOICEUPSELLNUM0] - as per [INVOICEUPSELL1] but the value is displayed with a decimal point and no thousands separator (for calculations)
Connect the variables with an underscore. [INVOICEUPSELL1] - value of upsell item 1 (number can be between 0 to 20)
Examples: [INVOICEUPSELLNUM1] - as per [INVOICEUPSELL1] but the value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICE:PRI_QTY_CUA€INVOICEUPSELLQTY1] will create an invoice table with price and - quantity in Euros.of upsell item 1 (number can be between 1 to 20)
[INVOICE:PAY_TOT_CEXINVOICEUPSELLNAME1] will create an invoice table which will only show payments. - name of the headline field of upsell item 1 (number can be between 1 to 20)
== Invoicee Variables ==[INVOICEEBALANCEINVOICEUPSELLSTATUS1] - invoice balance for unassigned invoice items.stautus of the headline field of upsell item 1 (number can be between 1 to 20)
[INVOICEEBALANCENUMINVOICEUPSELLHEADLINE1] - invoice balance for unassigned invoice items displayed with a decimal point headline (name and no thousands separator.status if used of upsell item 1 (number can be between 1 to 20)
[INVOICEEBALANCE1234INVOICEUPSELLDESCRIPTION1] - invoice balance for invoice items assigned to invoicee 1234 description of upsell item 1 (change 1234 number can be between 1 to the required Invoicee Id number20).
[INVOICEEBALANCENUM1234INVOICEUPSELLAMOUNTNUM1] - 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.amout of upsell item 1
[INVOICEECHARGES] - invoice charges for unassigned invoice items.
[INVOICEECHARGESNUM] - invoice charges for unassigned invoice items displayed with a decimal point and no thousands separator.
[INVOICEECHARGES1234] - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).
[INVOICEECHARGESNUM1234INVOICEUPSELLTYPE1] - 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.type of upsell item 1
[INVOICEEPAYMENTSINVOICEUPSELLPER1] - invoice payments for unassigned invoice items.per of upsell item 1
[INVOICEEPAYMENTSNUMINVOICEUPSELLPERIOD1] - invoice payments for unassigned invoice items displayed with a decimal point and no thousands separator.period of upsell item 1
[INVOICEEPAYMENTS1234] - invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
[INVOICEEPAYMENTSNUM1234INVOICEEXTRAITEMDESC1] - Name of extra invoice payments for invoice items assigned to invoicee 1234 item 1 (change 1234 number can be between 0 to the required Invoicee Id number20)
[INVOICEENAMEINVOICEEXTRAITEM1] - name value of extra invoice item 1 (number can be between 0 to 20) Note: the order goes by the invoicee account order in the invoice is assigned to or blankdropdown list not by the order the items are entered.
[INVOICEECODEINVOICEEXTRAITEM1] - code value of extra invoice item 1 (number can be between 0 to 20) Note: the order goes by the invoicee account order in the invoice is assigned to or blankdropdown list not by the order the items are entered.
[INVOICEECURRENCYINVOICEEXTRAITEMNUM1] - currency of the invoicee account as per [INVOICEEXTRAITEM1] but the invoice is assigned to if it value is not the property default or blankdisplayed with a decimal point and no thousands separator (for calculations).
[INVOICEETEMPLATE1INVOICEEXTRAITEMQTY1] - template value quantity of extra invoice item 1 of (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the invoice account order the invoice is assigned to or blankitems are entered.
[INVOICEETEMPLATE2INVOICEGROSS:1] - template value 2 gross amount of the invoice account inserted VAT rate (number is the invoice VAT rate), value is assigned to or blankdisplayed with a decimal point and no thousands separator (for calculations)
[INVOICEETEMPLATE3INVOICEGROSSNUM:1] - template value 3 gross amount of the invoice account inserted VAT rate (number is the invoice is assigned to or blankVAT rate)
[INVOICEETEMPLATE4INVOICENET:1] - template value 4 net amount of the invoice account inserted VAT rate (number is the invoice is assigned to or blankVAT rate)
[INVOICEETEMPLATE5INVOICENETNUM:1] - template value 5 net amount of the invoice account inserted VAT rate (number is the invoice VAT rate), value is assigned to or blankdisplayed with a decimal point and no thousands separator (for calculations)
[INVOICEETEMPLATE6INVOICEVAT:1] - template value 6 VAT amount of the invoice account inserted VAT rate (number is the invoice is assigned to or blankVAT rate)
[INVOICEETEMPLATE7INVOICEVATNUM:1] - template value 7 VAT amount of the invoice account inserted VAT rate (number is the invoice VAT rate), value is assigned to or blankdisplayed with a decimal point and no thousands separator (for calculations)
[INVOICEETEMPLATE8INVOICEITEMBYDESC:Searchterm] - template value 8 of searches the invoice account the invoice is assigned to or blankfor items with this search term and adds them up
== Guest Variables ==[GUESTIDSINVOICEITEMBYDESCNUM:Searchterm] - comma separated list of guest Id's connected to searches the bookinginvoice for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)
[GUESTFLAGTEXTSINVOICEPAYMENTBYDESC:Searchterm] - comma separated list of flag text values searches the payments for each guest (when not empty) connected to the bookingitems with this search term and adds them up
== Payment Request Variables ==[PAYURLINVOICEPAYMENTBYDESCNUM:Searchterm] - Creates a payment url for searches the payment request payments for the amount in the booking deposit field if non zeroitems with this search term and adds them up, otherwise the outstanding balance.value is displayed with a decimal point and no thousands separator (for calculations)
=== Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[PAYURL:25%INVOICETABLE] - Creates a payment url for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.invoice table
[PAYURL:200INVOICETABLEVAT] - Creates a payment url for the payment request url for a fixed amount. nt.invoice table with vat information and vat summary
[PAYLINKINVOICETABLE:$1.1$] - 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 balanceinvoice table and currency multiplier with optional new currency symbol before or after price.
[PAYLINKINVOICETABLEPART:25%status1,status2,!status4] -Creates Invoice table showing only items with matching status. The status items can be a payment link (HTML A tag) comma separated list. To exclude status items prefix them with an exclamation mark, for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balanceexample !status1.
[PAYLINK:200INVOICETABLE2] - Creates a payment link (HTML A tag) for the payment request) for a fixed amount.invoice table with status field
[PAYBUTTONINVOICETABLE2:$1.1$] - Creates a payment button for the payment request for the amount in the booking deposit invoice table with status field if non zero, otherwise the outstanding balance. Not recommended for emailsand currency multiplier with optional new currency symbol before or after price.
[PAYBUTTON:25%INVOICETABLECHARGES] - Creates a payment button for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.invoice table showing charges only
[PAYBUTTON:200INVOICETABLECHARGESINVOICEE1234] - Creates a payment button for invoice table showing charges only assigned to the payment request for a fixed amountspecified invoicee, specify the invoicee Id number.
[INVOICETABLENOTOT] - invoice table without grand total
[PAYPALURLINVOICETABLENOTOT:$1.1$] - Creates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise the outstanding balanceinvoice table without grand total and currency multiplier with optional new currency symbol before or after price.
[PAYPALURL:25%INVOICETABLENOTOT2] - Creates a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.invoice table with status field without grand total
[PAYPALURLINVOICETABLENOTOT2:200$1.1$] - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a invoice table with status field to enter an amountwithout grand total and currency multiplier with optional new currency symbol before or after price.
[PAYPALLINKINVOICETABLEVAT:$1.1$] - Creates a Paypal payment link (HTML A tag) for the amount in the booking deposit field if non zero, otherwise the outstanding balanceinvoice table with vat information and currency multiplier with optional new currency symbol before or after price.
[PAYPALLINK:25%INVOICETABLEVATCOMPACT] - Creates a Paypal payment link (HTML A tag) for a percentage compact version of the outstanding balance. Use 100% to specify the full outstanding balance.invoice table with vat information and vat summary
[PAYPALLINKINVOICETABLEVATCOMPACT:200$1.1$] - 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 amountcompact version of invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price.
[PAYPALBUTTONINVOICETABLEVATCOMPACTNOSUM] - Creates a Paypal payment button for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.compact version of invoice table with vat information without vat summary
[PAYPALBUTTONINVOICETABLEVATCOMPACTNOSUM:25%$1.1$] - Creates a Paypal payment button for a percentage compact version of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emailsinvoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
[PAYPALBUTTON:200INVOICETABLEVATNOSUM] - 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.invoice table with vat information without vat summary
== Text Operators ==[INVOICETABLEVATNOSUM:$1.1$] - invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
[REPLACE|searchForThisText|replaceWithThisText|textToSearchINVOICETABLEDATEVATNOSUM] - replace "searchForThisText" invoice table with "replaceWithThisText" within the text "textToSearch"vat information and date without vat summary
== iCal Links ==These template variables will create iCal links which allow the booking to be added to a calendar[INVOICETABLEDATEVATNOSUM:$1.1$] - invoice table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.
[ICALURLINVOICETABLEVAT2] - Calendar linkinvoice table with vat information and status field and vat summary
[ICALURLINVOICETABLEVAT2:16$1.1$] - Calendar link invoice table with check-in hour. Replace '16' vat information and status field and vat summary and currency multiplier with the hour check-in startsoptional new currency symbol before or after price.
[ICALURL::10INVOICETABLEVAT2NOSUM] - Calendar link invoice table with check-out hour. Replace '10' with the hour with the hour check-out ends.vat information and status field without vat summary
[ICALURLINVOICETABLEVAT2NOSUM:::summary text$1.1$] - Calendar link invoice table with a vat information and status field without vat summary textand currency multiplier with optional new currency symbol before or after price.
[ICALURL::::description textINVOICETABLEVATCHARGES] - Calendar link invoice table showing charges only with a descriptive textvat information and vat summary
Example:[INVOICETABLENOPRICE] - invoice table with no price information
Calendar link with check[INVOICETABLEINVOICEE] -in time 16:00, check-out time 10:00, the summary text "Booking" and the description text "Sunny Hotel":invoice table excluding items assigned to an invoicee.
[ICALURL:16:10:Booking:Sunny HotelINVOICETABLEINVOICEE1234]- invoice table for a specific invoicee, specify the invoicee Id number.
== Mathematical Operators ==[UPSELLTABLE] - table with all upsell items
Place mathematical operators between two numbers <b>or between two template variables</b> that return a number.[UPSELLTABLEVAT] - table with all upsell items with vat information and vat summary
[+UPSELLTABLENOREFUND] - Example: 2 [+] 3 = 5table with all upsell items except refundable items
[-] - Example==== Custom Invoice Table ====You have the option to create a custom invoice table. Available content variables are: 5 [-] 1 = 4
[*] AMO - Example: 3 [*] 4 = 12shows the net value (price x quantity)
[/] CEX - Example: 15 [/] 5 = 3charges excluded (charges will not be shown)
[MIN] CON - currency conversion. Example: 2 [MIN] 3 = 2CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234
[MAX] CUA - currency symbol showing after the numbers. Example: 2 [MAX] 3 = 3CUA€ will show € after the figures
Brackets are not supported as a way to control processing order, CUB - currency symbol showing before the processing order is fixed as *, /, +, -, MIN, MAXnumbers. Example: CUB€ will show € before the figures
DAT - adds a date column - you have the option to control the format of the date using [[Template_Variables#Date_and_Time|date and time variables]] for example DAT{%d-%m-%Y}
=== Rounding and controlling DEC - Decimal points. Example: DEC, will show a comma as decimal places ===point. If nothing is set the system will use the default for the language
==== Default ====DP0 - no decimal places
2 [/] 3 = 0.66666666666667DP1 - 1 decimal place
==== Rounding to the nearest integer ====DP2 - 2 decimal places
2 [/.0] DP3 - 3 = 1decimal places
==== Rounding to 1,2,3 or DP4 - 4 decimal place(s) ====places
2 [/.1] 3 = 0.7GAT - sum for each column
2 [/GRP - Group Totals.2] 3 = 0.67Displays the same items as a total
2 [/.3] 3 = 0.667GRT - Grand Total
2 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[/.4BOOKINGINVOICEEID]] 3 = 0.6667to add the invoicee from the booking
LAN - language. Example LANDE will force the language to German
<b>This works on MUL - multiplier. Example: MUL1.2 will multiply all operators including [MIN] and [MAX]</b>prices by 1.2
Note: Always use the template variables ending with NUM. The math functions will only work with numbers with a decimal point (NIN - do not a decimal comma) show invoice number and no thousands separator and no currency symbol.invoice date on locked invoices
== Currency Conversion ==NOC - charges will not be displayed but their vat values are still calculated for the vat summary (VAT)
[CONVERT:EURNOP -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 payments will not be used.displayed
Example: [INVOICECHARGESNUM] [*.2] [CONVERT:EURONE -USD] will convert shows only items from the invoice charge value from Euros to USD with two decimal points.specified booking (not the booking group)
If you use ORB - order by booking, this keeps the multiplier to convert currencies items for channels: For example hotel id 123456 and a multiplier to convert USD to EUR at todays rate:each booking (room) together in the table
123456*[CONVERT:USDPAA -EUR]*shows a column with payment amounts
or this to convert EUR to USDPAY - shows payments
123456*[CONVERT:EURPEN -USD]shows pending payments description
123456*[CONVERT:USDPPA -EUR][/]0.85 will convert to Euros and divides the price by 0.85 which raises it by circa 15%shows pending payments amount
==Account Variables (account of the booking) ==PRI - shows prices in a column
[ACCOUNTID] QTY - account id of the booked propertyshows quantity
[ACCOUNTTEMPLATE1] SEX - Account Template 1status 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.
[ACCOUNTTEMPLATE2] SIN - Account Template 2status 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.
[ACCOUNTTEMPLATE3] STA- Account Template 3shows staus
[ACCOUNTTEMPLATE4] THO - Account Template 4 thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language
[COMMISSIONLIMIT] TOT - shows the available commission amount for the owner account of the bookingtotal amounts
[MASTERACCOUNTTEMPLATE1] VAA - Account Template 1 from master accountshows VAT amounts
[MASTERACCOUNTTEMPLATE2] VAP - Account Template 2 from master accountshows VAT percents
[MASTERACCOUNTTEMPLATE3] VAT - Account Template 3 from master accountVAT summary
[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 Connect the variables can for example used by resellers who added a custom tab to the bookingswith an underscore.
[LOGGEDINACCOUNTID] - account id of the logged in userExamples:
[LOGGEDINACCOUNTTEMPLATE1INVOICE:PRI_QTY_CUA€] - Account Template 1will create an invoice table with price and quantity in Euros.
[LOGGEDINACCOUNTTEMPLATE2INVOICE:PAY_TOT_CEX] - Account Template 2will create an invoice table which will only show payments.
[LOGGEDINACCOUNTTEMPLATE3INVOICE:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] - Account Template 3will create an invoice table with more information.
[LOGGEDINACCOUNTTEMPLATE4INVOICE:SIN TRANSPORT] - Account Template 4 will create an invoice table with the Invoice item description for any items with the Status = Transport.
== Invoicee Variables ==[LOGGEDINAPIKEYINVOICEEBALANCE] - apiKeyinvoice balance for unassigned invoice items.
[MASTERLOGGEDINACCOUNTTEMPLATE1INVOICEEBALANCENUM] - Account Template 1 from master accountinvoice balance for unassigned invoice items displayed with a decimal point and no thousands separator.
[MASTERLOGGEDINACCOUNTTEMPLATE2INVOICEEBALANCE1234] - Account Template 2 from master accountinvoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).
[MASTERLOGGEDINACCOUNTTEMPLATE3INVOICEEBALANCENUM1234] - Account Template 3 from master accountinvoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a decimal point and no thousands separator.
[MASTERLOGGEDINACCOUNTTEMPLATE4INVOICEECHARGES] - Account Template 4 from master accountinvoice charges for unassigned invoice items.
== Smart Logic Template Variables ==[INVOICEECHARGESNUM] - invoice charges for unassigned invoice items displayed with a decimal point and no thousands separator.
IF style template variables will compare two values and display a text if [INVOICEECHARGES1234] - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the comparison is true and an alternative text if the comparison is falserequired Invoicee Id number). 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 [INVOICEECHARGESNUM1234] - invoice charges for invoice items assigned to display anything for invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a conditiondecimal point and no thousands separator.
[IF=:if this:equals this:display this text|otherwise display this textINVOICEEPAYMENTS]- invoice payments for unassigned invoice items.
[IFIN:if this:is contained in this:display this text|otherwise display this textINVOICEEPAYMENTSNUM]- invoice payments for unassigned invoice items displayed with a decimal point and no thousands separator.
[IFLIKE:if this:is like this:display this text|otherwise display this textINVOICEEPAYMENTS1234]- invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
[IF>:if this:is greater than this:display this text|otherwise display this textINVOICEEPAYMENTSNUM1234]- invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
[IF>=:if this:INVOICEENAME] - name of the invoicee account the invoice is greater than assigned to or equal to this:display this text|otherwise display this text]blank
[IF<:if this:INVOICEECODE] - code of the invoicee account the invoice is less than this:display this text|otherwise display this text]assigned to or blank
[IF<=:INVOICEECURRENCY] - currency of the invoicee account the invoice is assigned to if this:it is less than not the property default or equal to this:display this text|otherwise display this text]blank
[IFBETWEEN:if this:is between this:and this:display this text|if it is lower display this text|if it is higher display this textINVOICEENOTES]- value of the "Notes" field for the invoicee
[INVOICEETEMPLATE1] - template value 1 of the invoice account the invoice is assigned to or blank
You can use IF variables inside other IF variables to create complex logic but [INVOICEETEMPLATE2] - template value 2 of the internal IF: must be processed before invoice account the external IFThey are processed in the following order from left invoice is assigned to right so choose an internal one that is different and processed before the external one.i.e. all the [IF=: will be processed first, then all the [IFIN: etc. or blank
[IF=:[IFIN:[IFLIKE:[IF>:[IF>=:[IF<:[IF<=:[IFBETWEEN:INVOICEETEMPLATE3] - template value 3 of the invoice account the invoice is assigned to or blank
[INVOICEETEMPLATE4] - template value 4 of the invoice account the invoice is assigned to or blank
Template variables can be used inside this [INVOICEETEMPLATE5] - template variable as per value 5 of 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>:invoice account the invoice is assigned to or blank
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>INVOICEETEMPLATE6]- template value 6 of the invoice account the invoice is assigned to or blank
If [INVOICEETEMPLATE7] - template value 7 of the guestname is Miller invoice account the text "yes" will display. If the guest name invoice is not Miller the text "no" will displayassigned to or blank
2.[<span style="color: #019cde"> IF>:[NUMADULT]:2</span><span style="color: #75d5ad">:please contact us about you bedding requirements|</span>INVOICEETEMPLATE8]- template value 8 of the invoice account the invoice is assigned to or blank
If the number [INVOICEETEMPLATE1BR] - template value 1 of adults is higher than 2 the text"please contact us about you bedding requirements" will display. If invoice account the number of adults invoice is lower than assigned to or equal 2 nothing will display.blank with linkebreak
3. [<span style="color: #019cde">IF<:[NUMADULTINVOICEETEMPLATE2BR]:3</span><span style="color: #75d5ad">:|linen for two adults - template value 2 of the invoice account the invoice is included free of charge</span>]assigned to or blank with linkebreak
If the number [INVOICEETEMPLATE3BR] - template value 3 of adults is lower than 3 nothing will display. If the number of adults is not lower than 3 invoice account the text "linen for two adults invoice is included free of charge" will display. assigned to or blank with linkebreak
4. [<span style="color: #019cde">IF<=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>INVOICEETEMPLATE4BR]- template value 4 of the invoice account the invoice is assigned to or blank with linkebreak
5. [<span style="color: #019cde">IF>=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>INVOICEETEMPLATE5BR]- template value 5 of the invoice account the invoice is assigned to or blank with linkebreak
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>INVOICEETEMPLATE6BR]- template value 6 of the invoice account the invoice is assigned to or blank with linkebreak
7. [<span style="color: #019cde">IFLIKE:[GUESTTITLE]</span><span style="color: #75d5ad">:Mr:Dear|Hi</span>INVOICEETEMPLATE7BR]- template value 7 of the invoice account the invoice is assigned to or blank with linkebreak
IFLIKE works like IF= except it is case insensitive and removes any spaces from [INVOICEETEMPLATE8BR] - template value 8 of the start and end of invoice account the wordsinvoice is assigned to or blank with linkebreak
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 == Payment Request Variables ==[PAYURL] - Creates a payment url for the first word is contained payment request for the amount in the second word the first option is displayedbooking deposit field if non zero, otherwise the second option is displayedoutstanding balance.
9. [<span style="color: #019cde">IFIN:CHECKINPAYURL:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>25%]- Creates a payment url for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
If [PAYURL:200] - Creates a payment url for the Booking Info Code CHECKIN has been added to the booking then you will see the value in the text (date/time) otherwise blankpayment request url for a fixed amount. nt.
[INWORDSPAYLINK] - writes out Creates a number in words. This works payment link (HTML A tag) for the payment request for the amount in English onlythe booking deposit field if non zero, otherwise the outstanding balance.
Expamles[PAYLINK: 25%] -Creates a payment link (HTML A tag) for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
[INWORDSPAYLINK:200] 10 will write out then- Creates a payment link (HTML A tag) for the payment request) for a fixed amount.
[INWORDSPAYBUTTON] [INVOICEPAYMENTSNUM] will write out - Creates a payment button for the payment request for the amount in the booking deposit field if non zero, otherwise the invoice sum of all payments outstanding balance. Not recommended for emails.
[INWORDSPAYBUTTON:25%] [INVOICEPAYMENTSNUM] [+] 10 will write out - Creates a payment button for the invoice sum payment request for a percentage of all payments plus 10the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.
Example[PAYBUTTON: You want to display 200] - Creates a special message to Australians if payment button for the booking has payment request for 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"fixed amount.
[<span style="color: #019cde">IFIN:DEPOSIT:[BOOKINGINFOCODESPAYPALURL]:I[IF=:[GUESTCOUNTRY2]:AU</span><span style="color: #75d5ad">:Credit card details are required </span><span style="color: #fe746c">|A deposit is required]|No - Creates a Paypal payment url for the amount in the booking deposit is required</span>]field if non zero, otherwise the outstanding balance.
== Encoding Template Variables == [PAYPALURL:25%] - Creates a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
[ENCODEURLPAYPALURL:value200] encode value - Creates a Paypal payment url for URL data formata fixed amount. A zero amount will cause paypal to provide a field to enter an amount.
[ENCODEJSON:valuePAYPALLINK] encode value - Creates a Paypal payment link (HTML A tag) for JSON data formatthe amount in the booking deposit field if non zero, otherwise the outstanding balance.
[PAYPALLINK:25%] - Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
Note[PAYPALLINK: Always use the template variables ending with NUM if numbers are involved200] - Creates a Paypal payment link (HTML A tag) for a fixed amount. The math functions A zero amount will only work with numbers with cause paypal to provide a decimal point (not a decimal comma) and no thousands separator and no currency symbolfield to enter an amount.
==Deprecated===== Invoice Tables with predefined content [PAYPALBUTTON] - create Creates a custom invoice table===[INVOICETABLE:$1Paypal payment button for the amount in the booking deposit field if non zero, otherwise the outstanding balance.1$] - invoice table and currency multiplier with optional new currency symbol before or after priceNot recommended for emails.
[INVOICETABLEPARTPAYPALBUTTON:status1,status2,!status425%] - Invoice table showing only items with matching statusCreates a Paypal payment button for a percentage of the outstanding balance. The status items can be a comma separated listUse 100% to specify the full outstanding balance. To exclude status items prefix them with an exclamation mark, Not recommended for example !status1emails.
[INVOICETABLE2PAYPALBUTTON:200] - invoice table with status Creates a Paypal payment button for a fixed amount. A zero amount will cause paypal to provide a fieldto enter an amount. Not recommended for emails.
Add a H to exclude a gateway from displaying. Example: [INVOICETABLE2PAYURL:$1.1$200:HST] - invoice table with status field and currency multiplier with optional new currency symbol before or after price.will hide Stripe
[INVOICETABLECHARGES] - invoice table showing charges only== Text Operators ==
[INVOICETABLECHARGESINVOICEE1234REPLACE|searchForThisText|replaceWithThisText|textToSearch] - invoice table showing charges only assigned to replace "searchForThisText" with "replaceWithThisText" within the specified invoicee, specify the invoicee Id number.text "textToSearch"
[INVOICETABLENOTOT] - invoice table without grand total
[INVOICETABLENOTOT:$1.1$SUBSTR|startCharacterNumber|numberOfCharacters|textToGetSubstringFrom] - invoice table without grand total and currency multiplier get a sub string from "textToGetSubstringFrom" starting at character "startCharacterNumber" (integer, 0 is the first char) with optional new currency symbol before or after price.a length of "numberOfCharacters" (integer)
[INVOICETABLENOTOT2] - invoice table with status field without grand total
[INVOICETABLENOTOT2:$1.1$[SUBSTR|0|4|[GUESTPHONENUM]] - invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVAT:$1.1$] - invoice table with vat information and currency multiplier with optional new currency symbol before or after priceThis will test for the first 4 characters of the Guest phone number.
[INVOICETABLEVATCOMPACT] - compact version of invoice table with vat information and vat summary
[INVOICETABLEVATCOMPACT:$1.1$TRIM| string to trim ] - compact version remove whitespace from the start and end of invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price." string to trim "
[INVOICETABLEVATCOMPACTNOSUM] - compact version of invoice table with vat information without vat summary== iCal Links ==These template variables will create iCal links which allow the booking to be added to a calendar.
[INVOICETABLEVATCOMPACTNOSUM:$1.1$ICALURL] - compact version of invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.Calendar link
[INVOICETABLEVATNOSUMICALURL:16] - invoice table Calendar link with vat information without vat summarycheck-in hour. Replace '16' with the hour check-in starts.
[INVOICETABLEVATNOSUMICALURL:$1.1$:10] - invoice table Calendar link with check-out hour. Replace '10' with vat information without vat summary and currency multiplier the hour with optional new currency symbol before or after pricethe hour check-out ends.
[INVOICETABLEDATEVATNOSUMICALURL:::summary text] - Calendar link with a summary text [ICALURL::::description text] - invoice table Calendar link with vat information a descriptive text Example: Calendar link with check-in time 16:00, check-out time 10:00, the summary text "Booking" and date without vat summarythe description text "Sunny Hotel": [ICALURL:16:10:Booking:Sunny Hotel]
[INVOICETABLEDATEVATNOSUM:$1.1$] - invoice table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.== Mathematical Operators ==
[INVOICETABLEVAT2] - invoice table with vat information and status field and vat summaryPlace mathematical operators between two numbers <b>or between two template variables</b> that return a number.
[INVOICETABLEVAT2+] - Example:$1.1$2 [+] - invoice table with vat information and status field and vat summary and currency multiplier with optional new currency symbol before or after price.3 = 5
[INVOICETABLEVAT2NOSUM-] - invoice table with vat information and status field without vat summaryExample: 5 [-] 1 = 4
[INVOICETABLEVAT2NOSUM*] - Example:$1.1$3 [*] - invoice table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or after price.4 = 12
[INVOICETABLEVATCHARGES/] - invoice table showing charges only with vat information and vat summaryExample: 15 [/] 5 = 3
[INVOICETABLENOPRICEMIN] - invoice table with no price informationExample: 2 [MIN] 3 = 2
[INVOICETABLEINVOICEEMAX] - invoice table excluding items assigned to an invoicee.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][INVOICETABLEINVOICEE1234*] 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 table 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 :-  10. [<span style="color: #019cde">IFIN:DEPOSIT:[BOOKINGINFOCODES]:|[IF=:[GUESTCOUNTRY2]:AU</span><span style="color: #75d5ad">:Credit card details are required </span><span style="color: #fe746c">|A deposit is required]|No deposit is required</span>] 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" 11. [<span style="color: #019cde">IF<:[INADVANCE]:|[IFIN:TRANSFER:[BOOKINGINFOCODES]:3</span><span style="color: #75d5ad">:Payment Due Date: ASAP </span><span style="color: #fe746c">|Payment Due Date: [FIRSTNIGHT:- 30days]]|</span>] You want display a special message to your guests 3 days before checkin with a Booking Info Code = TRANSFER. 12. [<span style="color: #019cde">IF=:[STATUS]:Confirmed:PAID|[IF<^[INADVANCE]^30</span><span style="color: #75d5ad">^Payment Due Date: As soon as possible</span><span style="color: #fe746c">~Payment Due Date: [FIRSTNIGHT:- 30 days]]</span>] You want to display a special message for your guests for any bookings with Status not = Confirmed, and if the checkin date is more than 30 days in advance, then send the message with "Payment Due Date : "or that the "Payment is due As soon as possible". 13. [<span style="color: #019cde">IFBETWEEN:[TURNOVERDAYS]:0:3:</span><span style="color: #75d5ad">yes|</span><span style="color: #fe746c">no</span>]  You 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.  14. [<span style="color: #019cde">IF>:[VACANTDAYS]:1:</span><span style="color: #75d5ad">yes|</span><span style="color: #fe746c">no</span>]  You 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. 15. [<span style="color: #019cde">IF=:[LEAVINGDAY:{%a}]:Sun:|[IF>=^[TURNOVERDAYS]^1</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">~no]</span>] You 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. 16. [<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>] You want to test if the leaving date is a Monday or a Wednesday to send a specific invoiceemessage to the guest, for example a reminder that it is bin collection day. 17. [<span style="color: #019cde">[IF=:[LEAVINGDAY:{%u}]:1:yes|[IF=^[LEAVINGDAY:{%u}]^3^yes][IF=^[LEAVINGDAY:{%u}]^6</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">]</span>] You have different cleaning teams for different days of the week, specify and you want to send a message to the invoicee Id appropriate team if leaving date is a Monday, Wednesday or Saturday. == Write out the number in Words. == [INWORDS] - writes out a numberin words. This works in English only.  Expamles:  [INWORDS] 10 will write "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 == Encoding Template Variables ==  [ENCODEURL:value] encode value for URL data format [ENCODEJSON:value] encode value for JSON data format   Note: 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