Changes

Jump to navigation Jump to search

Template Variables

17,069 bytes added, 9 February
[PROPERTYTEMPLATE8] - Property Template 8
 
[PROPERTYTEMPLATE1BR] - Property Template 1 with line breaks
 
[PROPERTYTEMPLATE2BR] - Property Template 2 with line breaks
 
[PROPERTYTEMPLATE3BR] - Property Template 3 with line breaks
 
[PROPERTYTEMPLATE4BR] - Property Template 4 with line breaks
 
[PROPERTYTEMPLATE5BR] - Property Template 5 with line breaks
 
[PROPERTYTEMPLATE6BR] - Property Template 6 with line breaks
 
[PROPERTYTEMPLATE7BR] - Property Template 7 with line breaks
 
[PROPERTYTEMPLATE8BR] - Property Template 8 with line breaks
[BOOKINGCOMHOTELID] - booking.com hotel id
[ROOMNAMEOFFERBR] - room names of all booked rooms with offer name with line break
[ROOMNAMEOFFERINC] room names of all booked rooms with offer name inklincl. cancelled bookings
[ROOMNAMEOFFERINCBR] - room names of all booked rooms with offer name with line break
[ROOMTEMPLATE8] - ROOM Template 8
[ROOMMETAAUXTEXTROOMTEMPLATE1BR] - room meta text setting for first booked roomROOM Template 1 with linkbreak [ROOMTEMPLATE2BR] - ROOM Template 2 with linkbreak [ROOMTEMPLATE3BR] - ROOM Template 3 with linkbreak
[ROOMMETAAUXTEXTSROOMTEMPLATE4BR] - room meta text setting for all booked roomsROOM 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 auxiliary text setting for first booked room {{#fas:cog}} (SETTINGS) PROPERTIES > ROOMS > SETUP > DISPLAY [ROOMMETAAUXTEXTS] - room auxiliary text setting for all booked rooms  [ROOMMETAAUXTEXTSINC] - room auxiliary text setting for all booked rooms, incl. cancelled bookings
[INTERNALROOMNAME] - internal room name as used in the control panel, this is not the translated room name shown on the booking page
[OFFERID] - ID of the boked booked offer
[OFFERNAME] - booked offer name for all booked rooms
[OFFERNAME1] - offer name for this booked room only
[OFFERNAMEINC] - offer name for this booked room only inluding including cancelled bookings
[OFFERDESCRIPTION1] - offer description 1 for all booked rooms
[OFFERDESCRIPTION1INC] - offer description 1 for all booked rooms inklincl. cancelled
[OFFERDESCRIPTION2] - offer description 2 for all booked rooms
[OFFERDESCRIPTION2INC] - offer description 2 for all booked rooms inklincl. cancelled
[OFFERDESCRIPTION1-1] - offer description 1 for this booked room
[OFFERSUMMARYINC] - summary offers including cancelled bookings
 
[UNITID1] - ID of the unit (number) for this booking number (coming soon)
[UNITNAME] - unit names of all the assigned room types in the booking group (cancelled bookings are not shown)
[UNITNAMEINC] - unit names of all the assigned room types in the booking group including cancelled bookings
[UNITNAME:1] - additional information (first) about the unit for all the assigned room types in the booking group (cancelled bookings are not shown) [UNITNAME:2] - additional information (second) about the unit for all the assigned room types in the booking group (cancelled bookings are not shown)
[UNITNAME1] - unit name of the assigned room for this booking number
[UNITNAME1:1] - additional information about the assigned room for this booking number / add the additional information on each line after a | symbol where you set the unit names
[UNITSTATUS1] - the status if of the unit
[ROOMDESCRIPTION] - Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[LEAVINGDAYAVAIL] - returns yes or no, can be used to trigger an Auto Action
 
[NUMROOMSAVAIL] - returns the number of available rooms (-1 if overbooked), can be used to trigger an Auto Action
[ROOMRACKRATENUM] - Rack Rate from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[RANDOM8] - a 8 digit random number seeded from the booking number
 
[VOUCHERPHRASE1] - Voucher Phrase - change the number to the voucher you want to print out.
 
[VOUCHERAMOUNT1] - Voucher Amount - change the number to the voucher you want to print out.
=== Content from "Info" tab ===
[GUESTMOBILENUM] - guests mobile number with all non-numeric characters removed
 
[MOBILELAST1] last digit of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST2] last 2 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST3] last 3 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST4] last 4 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST5] last 5 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
 
[MOBILELAST6] last 6 digits of the guests mobile number, if mobile is empty the guests phone number will be used.
[PHONELAST1] - last digit of the guests phone number if guest phone is empty it will use the guests mobile number
[PHONELAST6] - last 6 digits of the guests phone number if guest phone is empty it will use the guests mobile number
 
[GUESTSMS:49] - attempt to convert the guest mobile number into a format suitable for SMS, if country code is missing add the one supplied in the template variable, if mobile number is empty use guest phone number instead.
[GUESTCOMPANY] - company name
[GUESTCUSTOMQ1] - answer to custom question 1
 
[GUESTCUSTOMQ1BR] - answer to custom question 1 with line breaks <BR>
[GUESTCUSTOMQ2] - answer to custom question 2
 
[GUESTCUSTOMQsBR] - answer to custom question 2 with line breaks <BR>
[GUESTCUSTOMQ3] - answer to custom question 3
 
[GUESTCUSTOMQ3BR] - answer to custom question 3 with line breaks <BR>
[GUESTCUSTOMQ4] - answer to custom question 4
 
[GUESTCUSTOMQ4BR] - answer to custom question 4 with line breaks <BR>
[GUESTCUSTOMQ5] - answer to custom question 5
 
[GUESTCUSTOMQ5BR] - answer to custom question 5 with line breaks <BR>
[GUESTCUSTOMQ6] - answer to custom question 6
 
[GUESTCUSTOMQ6BR] - answer to custom question 6 with line breaks <BR>
[GUESTCUSTOMQ7] - answer to custom question 7
 
[GUESTCUSTOMQ7BR] - answer to custom question 7 with line breaks <BR>
[GUESTCUSTOMQ8] - answer to custom question 8
 
[GUESTCUSTOMQ8BR] - answer to custom question 8 with line breaks <BR>
[GUESTCUSTOMQ9] - answer to custom question 9
 
[GUESTCUSTOMQ9BR] - answer to custom question 9 with line breaks <BR>
[GUESTCUSTOMQ10] - answer to custom question 10
 
[GUESTCUSTOMQ10BR] - answer to custom question 10 with line breaks <BR>
[REFERENCE] - content of the booking reference field
[APISOURCETEXT] - human readable name of the channel
[BOOKINGDATEBOOKINGIP] - booking dateip address of booker's computer
[APIMESSAGE] - api message sent by originating channel [BOOKINGDATE] - booking date in guests language [BOOKINGTIMEDATE] - booking date and timein guests language
[BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format
[BOOKINGIP] - ip address of booker's computer [APIMESSAGE] - api message sent by originating channelsee date and time variables below for custom time formats.
=== Content from "Charges and Payments" tab (also see "Invoice/Invoicee/Room") ===
[COMMISSIONNUM] - As per [COMMISSION] but the value is displayed with a decimal point and no thousands separator and no currency symbols (for calculation)
[COMMISSIONGROUP] - Value of the commission of the complete group bookingwith currency symbol [COMMISSIONGROUPNUM] - As per [COMMISSIONGROUP] but the value is displayed with a decimal point and no thousands separator and no currency symbols (for calculation)
[GUESTVOUCHER] - voucher code used with booking
[GUESTSADDRESSSBR1INC] - address of the first guest on the "guests" tab of this booking group incl. cancelled
 
[GUESTSAFULLADDRESSSBR1INC] - the first address including city, postcode, sate and country from the guests tab of the booking including cancelled bookings in international format
 
[GUESTSAFULLADDRESSSBR1] - the first address including city, postcode, sate and country from the guests tab of the booking in International format
 
[GUESTSBFULLADDRESSSBR1INC] - the first address including city, postcode, sate and country from the guests tab of the booking including cancelled bookings in European format
 
[GUESTSBFULLADDRESSSBR1] - the first address including city, postcode, sate and country from the guests tab of the booking in European format
[GUESTSNUMBOOKINGS1] - the total number of bookings made by the first guest, a group booking counts as one booking.
[GUESTSNUMSTAYS1] - the total number of bookings not cancelled and not in the future made by the first guest, a group booking counts as one booking.
===Cancellation, Management and Guest Login===[CANCELURLGUESTSCUSTOMQ1S] - URL answer to view and cancel bookings custom question 1 for all guests
[CANCELDATEGUESTSCUSTOMQ1SINC] - date until when the booking is cancellable displaying a phraseanswer to custom question 1 for all guests including cancelled bookings
[CANCELDATEYYYY-MM-DDGUESTSCUSTOMQ2S] - date until when the booking is cancellable displaying a date. If the date is in the past 00-00-0000 will be shownanswer to custom question 2 for all guests
[DAYSTOCANCELGUESTSCUSTOMQ2SINC] - number of days until booking can be answer to custom question 2 for all guests including cancelled / Anzahl der Tage bis zu denen stroniert werden kannbookings
[GUESTLOGINGUESTSCUSTOMQ3S] - URL answer to view bookingscustom question 3 for all guests
[TURNOVERDAYSGUESTSCUSTOMQ3SINC] - days until next arrival into the same unit.answer to custom question 3 for all guests including cancelled bookings
==Date and Time==[GUESTSCUSTOMQ4S] - answer to custom question 4 for all guests
Many date template variables support PHP strftime format strings between {} brackets [GUESTSCUSTOMQ4SINC] - answer to create custom date formats. Information on PHP strftime strings is available at [http://php.net/manual/en/function.strftime.php http://php.net/manual/en/function.strftime.php]question 4 for all guests including cancelled bookings
[GUESTSCUSTOMQ5S] - answer to custom question 5 for all guests
[CURRENTDATEGUESTSCUSTOMQ5SINC] - current dateanswer to custom question 5 for all guests including cancelled bookings
[CURRENTDATEYYYY-MM-DDGUESTSCUSTOMQ6S] - current date in YYYY-MM-DD formatanswer to custom question 6 for all guests
[CURRENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ6SINC] - current dateanswer to custom question 6 for all guests including cancelled bookings
[CURRENTDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 7 for all guests
[CURRENTTIMEGUESTSCUSTOMQ7SINC] - current time and the display can be any valid PHP strftime format string.answer to custom question 7 for all guests including cancelled bookings
[CURRENTTIME:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 8 for all guests
[DAYSTOCHECKINGUESTSCUSTOMQ8SINC] - number of days until check-inanswer to custom question 8 for all guests including cancelled bookings
[INADVANCEGUESTSCUSTOMQ9S] - number of days between booking and check-inanswer to custom question 9 for all guests
[DAYSBETWEEN:2019-11-01:2019-11-10GUESTSCUSTOMQ9SINC] - 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 9 for calculation.all guests including cancelled bookings
Example: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}GUESTSCUSTOMQ10S]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check -in and today. answer to custom question 10 for all guests
[FIRSTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ10SINC] - first night bookedanswer to custom question 10 for all guests including cancelled bookings
===Cancellation, Management and Guest Login===[FIRSTNIGHT:+1day{%A, %e %B, %Y}CANCELLEDTIME] - optional date offset and display format. The offset can be any plus or minus any number of days and when the display can be any valid PHP strftime format string.booking was cancelled
[LASTNIGHTCANCELLEDTIME:{%A, %e %B, %Y}] - last night bookeddate when the booking was cancelled display can be any valid PHP strftime format string
[LASTNIGHT:+1day{%A, %e %B, %Y}CANCELURL] - optional date offset URL to view and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.cancel bookings
[LEAVINGDAY:{%A, %e %B, %Y}CANCELDATE] - check-out date until when the booking is cancellable displaying a phrase
[LEAVINGDAY:+1day{%A, %e %B, %Y}CANCELDATEYYYY-MM-DD] - optional date offset and display formatuntil when the booking is cancellable displaying a date. The offset can be any plus or minus any number of days and If the date is in the display can past 00-00-0000 will be any valid PHP strftime format string.shown
[BOOKINGDATE:{%A, %e %B, %Y}DAYSTOCANCEL] - number of days until booking datecan be cancelled
[BOOKINGDATE:+1day{%A, %e %B, %Y}CANCELUNTIL] - optional date offset and display format. The offset can be any plus or minus any shows the number of days between check-in and the display last day which can be any valid PHP strftime format stringcancelled.If guest can always cancel it shows 0, if guest can never cancel it shows 9999
[MODIFYDATE:{%A, %e %B, %Y}GUESTLOGIN] - last booking modification date/time, the display can be any valid PHP strftime format string.URL to view bookings
[PAYMENTDATE:{%A, %e %B, %Y}TURNOVERDAYS] - most recent payment datedays until next arrival into the same unit not considering black bookings
[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000TURNOVERDAYSB] - optional date offset and display format. The offset can be any plus or minus any number of days and until next arrival into the display can be any valid PHP strftime format string. The second parameter specifies the payment to show, 0 or missing means the most recent payment. The third parameter specifies the invoicee.same unit considering black bookings
[FORMATDATE:[any template variable that creates a dateVACANTDAYS]{%A, %e %B, %Y}] - format the date days from previous checkout to check in the strftime format. The date value could be included by inserting a different template variable containing a date.of current booking not considering black bookings
== Booking Group variables ===== Custom Booking Group Table ===create your own [VACANTDAYSB] days from previous checkout to check in of current booking group list by specifying the columns in the order you want them to appear.considering black bookings
for example: [BOOKGROUP:PROP_ROOM_BREF_NAME] ==Date and Time==
column parameters[CURRENTDATE] - current date
100% = 100% width[CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format
ADDR = Booking address[CURRENTDATE:{%A, %e %B, %Y}] - current date
ADUL= the [CURRENTDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of adultsdays and the display can be in a custom format.
ARIV = Arrival date[CURRENTTIME] - current time and the display can be any valid PHP strftime format string.
BOPR = Bold prices[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.
BREF = Booking [DAYSTOCHECKIN] - numberof days until check-in
CITY = Booking city [INADVANCE] - number of days between booking and check-in
CHAC = Charges with currency symbol[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.
CHAR = ChargesExample: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today.
CHIL = Number of children[FIRSTNIGHT:{%A, %e %B, %Y}] - first night booked
COUN = Booking country [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.
DEPT = Departure date[LASTNIGHT:{%A, %e %B, %Y}] - last night booked
EMAI = Booking 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.
EXSP = extra space between rows[LEAVINGDAY:{%A, %e %B, %Y}] - check-out
FLAG = Booking flag text[LEAVINGDAY:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
FNAM = Booking first name[BOOKINGDATE:{%A, %e %B, %Y}] - booking date
GADD = Guest address[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.
GCIT = Guest city[MODIFYDATE:{%A, %e %B, %Y}] - last booking modification date/time, the display can be any valid PHP strftime format string.
GCOM = Guest company[PAYMENTDATE:{%A, %e %B, %Y}] - most recent payment date
GCOU = Guest country[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.
GFLA = Guest flag text[AUTHORIZEUNTIL] - date until which a card is authorized, this is extracted from the most recent authorize booking info code.
GFNA = Guest first 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.
GLNA = Guest last name[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.
GMOB = Guest mobile
GNAM = Guest full nameThe following codes can be used in any order between the {} brackets to create custom time and date formats.
GEMA = Guest Email %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 ("%")
GNOT = Guest note= Booking Group variables ===== Custom Booking Group Table ===create your own booking group list by specifying the columns in the order you want them to appear.
GPOS = Guest postcodefor example: [BOOKGROUP:PROP_ROOM_BREF_NAME]
GREF = Guest Idcolumn parameters
GSTA 100% = Guest state100% width
GTEL ADDR = Guest phoneBooking address
ICAN ADUL= Include cancelled bookingsthe number of adults
LNAM ARIV = Booking last nameArrival date BOPR = Bold prices
MOBI BREF = Booking mobilenumber
NAME BRL1 = Booking full nameLast digit of booking number
NOHE BRL2 = no headerLast 2 digits of booking number
NOTE BRL3 = Booking noteLast 3 digits of booking number
ONAM BRL4 = Offer Name Last 4 digits of booking number
ONLY BRL5 = Just show the one Last 5 digits of bookingnumber
PAIC BRL6 = Payment amount with currency symbolLast 6 digits of booking number
PAID CITY = Paid amountBooking city
PEOP CHAC = Number of guestsCharges with currency symbol
PHON CHAR = Booking phoneCharges
POST CHIL = Booking postcodeNumber of children
PROP COUN = Property nameBooking country
RDE0 DEPT = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTDeparture date
RDE1 EMAI = Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUPBooking Email
RNAM EXSP = Room Display Name ROOM = Room nameextra space between rows
STAT FLAG = Booking stateflag text
STUS FNAM = StatusBooking first name
TOTA GADD = Total priceGuest address
UNI2 GCIT = Unit first additional information UNI3 = Unit second additional informationGuest city
UNIT GCOM = Unit nameGuest company
GCOU = Guest country
Connect the parameters with an underscore. GFLA = Guest flag text
Examples: GFNA = Guest first name
[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property GLNA = Guest last name, room name, booking number and guest name in this order.
GMOB = Guest mobile
[BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest GNAM = Guest full name property name and room name in this order.
GEMA === Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - create a table of guest names including room type for a group bookingGuest Email
[BOOKGROUPROOMLISTTOTAL] - create a table of guest names including room type for a group booking with guest totalsGNOT = Guest note
[BOOKGROUPROOMLISTCHARGETOTAL] - create a table of guest names including room type and charge for a group booking with guest totalsGPOS = Guest postcode
[BOOKGROUPNAMELIST] - create a table of guest names including room type and unit for a group bookingGREF = Guest Id
[BOOKGROUPNAMELISTTOTAL] - create a table of guest names including room type and unit for a group booking with guest totalsGSTA = Guest state
[BOOKGROUPNAMELISTCHARGETOTAL] - create a table of guest names including room type and unit and charge for a group booking with guest totalsGTEL = Guest phone
[BOOKGROUPUNITLIST] - create a table of guest names including unit for a group bookingICAN = Include cancelled bookings
[BOOKGROUPUNITLISTTOTAL] - create a table of guest names including unit for a group booking with guest totalsLNAM = Booking last name
[BOOKGROUPUNITLISTCHARGETOTAL] - create a table of guest names including unit and charge for a group booking with guest totalsMOBI = Booking mobile
NAME == Invoice Variables ==[INVOICENUMBER] - invoice numberBooking full name
[INVOICENUMBERS] - invoice number if invoicees are involvedNOHE = no header
[INVOICEDATE] - invoice dateNOTE = Booking note
[INVOICEDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number NUMN = Number of days and the display can be any valid PHP strftime format string. === Invoice Values ===These template variables will display a value form the invoice.nights booked
ONAM ==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value from an invoice. Available content variables are: Offer Name
CHA - chargesONLY = Just show the one booking
CON - PAIC = Payment amount with currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234 symbol
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the languagePADD = Property Address
DP0 - no decimal placesPAID = Paid amount
DP1 - 1 decimal placePCIT = Property City
DP2 - 2 decimal placesPEOP = Number of guests
DP3 - 3 decimal placesPHON = Booking phone
DP4 - 4 decimal places POST = Booking postcode
DESsome description - sum of values with "some description"PROP = Property name
INV - invoicee, add the invoicee number at the end. ExampleRDE0 = Room description from {{#fas: 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 cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
IT1 - item RDE1 = Room description 1 in the invoicefrom {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUP
IT2 - RNAM = Room Display Name item 2 in the invoice ROOM = Room name
IT3 - item 3 in RQTY = shows the invoicenumber of rooms for each booking and a total at the bottom
IT4 - item 4 in the invoiceSTAT = Booking state
IT5 - item 5 in the invoiceSTUS = Status
MUL - multiplier. Example: MUL1.2 will multiply all prices by 1.2 TEXT = Prints a plain text table instead of HTML
NUM - show with decimal place (for scripts)TOTA = Total price
THO - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language UNI2 = Unit first additional information UNI3 = Unit second additional information
UPS1 - upsell 1UNIT = Unit name
UPS2 - upsell 2
UPS3 - upsell 3Connect the parameters with an underscore.
UPS4 - upsell 4Examples:
UPS5 - upsell 5[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.
ONE - shows only items from the specified booking (not the booking group)
PAY - shows payments [BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and room name in this order.
QTY === Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - shows quantitycreate a table of guest names including room type for a group booking
SEX [BOOKGROUPROOMLISTTOTAL] - status excluded. Calculate the balance create a table of all invoice items except guest names including room type for the ones with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items group booking with this status.guest totals
SIN [BOOKGROUPROOMLISTCHARGETOTAL] - status included. Calculate the balance create a table of all invoice items with matching status, the status items can be guest names including room type and charge for a comma separated list. Example: SIN status1,status2,status4 will only show items group booking with this status. guest totals
VAT [BOOKGROUPNAMELIST] - VAT summarycreate a table of guest names including room type and unit for a group booking
[BOOKGROUPNAMELISTTOTAL] - create a table of guest names including room type and unit for a group booking with guest totals
Connect the variables [BOOKGROUPNAMELISTCHARGETOTAL] - create a table of guest names including room type and unit and charge for a group booking with an underscore. guest totals
Examples: [BOOKGROUPUNITLIST] - create a table of guest names including unit for a group booking
[INVOICEVAL:PAY_THOBOOKGROUPUNITLISTTOTAL] will show payments - create a table of guest names including unit for a group booking with a thousands separatorguest totals
[INVOICEVAL:UPS1_UPS1BOOKGROUPUNITLISTCHARGETOTAL] will show the sum - create a table of upsell 1 guest names including unit and upsell 2charge for a group booking with guest totals
==== Standard Invoice Values==Variables ==[INVOICEBALANCEINVOICENUMBER] - invoice balancenumber
[INVOICEBALANCE:50%INVOICENUMBERS] - percentage of invoice balancenumber if invoicees are involved
[INVOICEBALANCE:-100INVOICEDATE] - invoice balance with offset amountdate
[INVOICEBALANCENUMINVOICEDATES] - As per [INVOICEBALANCE] but the value is displayed with a decimal point and no thousands separator (for calculation).invoice date invoice number if invoicees are involved
[INVOICEBALANCENUMINVOICEDATE:+1day{%A, %e %B, %Y}] - As per [INVOICEBALANCE:] but optional date offset and display format. The offset can be any plus or minus any number of days and the value is displayed with a decimal point and no thousands separator (for calculation)display can be any valid PHP strftime format string.
[INVOICEPARTBALANCEINVOICEDATES:status1+1day{%A,status2%e %B,!status4:10%Y}] - Calculate the balance of all invoice items with matching status and apply optional multiplier or date offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation markand display format - invoice date invoice number if invoicees are involved, for example !status1. The offset is optional and can be specified after a second colon (:) any plus or minus any number of days and it the display can be a percentage by ending the number with the percent (%) symbol or a numeric value offsetany valid PHP strftime format string.
[INVOICEPARTBALANCENUM:status1,status2,status4:10%] - As per INVOICEPARTBALANCE but === Invoice Values ===These template variables will display a value form the value is displayed with a decimal point and no thousands separator (for calculation)invoice.
==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value from an invoice. [INVOICEBALANCE1] - invoice balance INVOICEVAL with a selection of one booking only, not the booking groupfollowing variables specifies the calculation:
[INVOICEBALANCE1NUM] CHA - As per [INVOICEBALANCE1] but the value is displayed with a decimal point and no thousands separator (for calculation)charges
[INVOICECHARGES] CON - invoice sum of all charges currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234
[INVOICECHARGESDEC - Decimal points. Example:50%] - invoice sum of all charges with percentage multiplierDEC, will show a comma as decimal point. If nothing is set the system will use the default for the language
[INVOICECHARGES:DP0 -100] - invoice sum of all charges with offset no decimal places
[INVOICECHARGESNUM] DP1 - As per [INVOICECHARGES] but the value is displayed with a 1 decimal point and no thousands separator (for calculation)place
[INVOICECHARGESNUM:] DP2 - As per [INVOICECHARGES:] but the value is displayed with a 2 decimal point and no thousands separator (for calculation)places
[INVOICEPARTCHARGES:status1,status2,!status4:10%] DP3 - 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.3 decimal places
[INVOICEPARTCHARGESNUM:status1,status2,status4:10%] DP4 - As per INVOICEPARTCHARGES but the value is displayed with a 4 decimal point and no thousands separator (for calculation).places
[INVOICEPAYMENTS] DES - invoice used as "DESsome description" - gives the sum of all payments values containing the description "some description"
[INVOICEPAYMENTSINV - invoicee, add the invoicee number at the end. Example:50%] INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV- invoice sum 1 will show all items from the booking regardless of all payments with percentage multiplier invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking
[INVOICEPAYMENTS:-100] IT1 - item 1 in the invoice sum of all payments with offset
[INVOICEPAYMENTSNUM] IT2 - As per [INVOICEPAYMENTS] but item 2 in the value is displayed with a decimal point and no thousands separator (for calculation)invoice
[INVOICEPAYMENTSNUM:50%] IT3 - As per [INVOICEPAYMENTS:50%] but item 3 in the value is displayed with a decimal point and no thousands separator.invoice
[INVOICEPARTPAYMENTS:status1,status2,!status4:10%] IT4 - Calculate item 4 in 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.
[INVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] IT5 - As per INVOICEPARTCHARGES but item 5 in the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEPENDPAY] MUL - multiplier. Example: MUL1.2 will multiply all (auto and manual) pending payments including failedprices by 1.2
[INVOICEPENDPAYNUM] NUM - all (auto and manual) pending payments including failed but the value is displayed show with a decimal point and no thousands separator place (for calculationscripts).
[INVOICEPENDPAY1234] THO - all (auto and manual) pending payments including failed thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the specified invoicee (-1 will include all items regardless of invoicee)language
[INVOICEPENDPAYNUM1234] - all (auto and manual) pending payments including failed for the specified invoicee (UPS1 -upsell 1 will include all items regardless of invoicee) The value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYAUTO] UPS2 - auto pending payments before due date upsell 2
[INVOICEPENDPAYAUTONUM] UPS3 - auto pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).upsell 3
[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) (UPS4 -1 will include all items regardless of invoicee)upsell 4
[INVOICEPENDPAYAUTONUM1234] auto pending payments before due date for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (UPS5 -1 will include all items regardless of invoicee)upsell 5
[INVOICEPENDPAYFAIL] ONE - failed pending payments shows only items from the specified booking (all also pastnot the booking group)
[INVOICEPENDPAYFAILNUM] PAY - failed pending shows payments (all also past) but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEPENDPAYFAIL234] QTY - failed pending payments (all also past) for the specified invoicee (-1 will include all items regardless of invoicee)shows quantity
[INVOICEPENDPAYFAILNUM234] SEX - failed pending payments (status excluded. Calculate the balance of all also past) invoice items except for the specified invoicee but ones with these status, the value is displayed with status items can be a decimal point and no thousands separator (for calculation) (-1 comma separated list. Example: SEX status1,status2,status4 will include all not show items regardless of invoicee)with this status.
[INVOICEPENDPAYRULE1] SIN - shows status included. Calculate the balance of all pending payment for 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 rule (exchange 1 for the rule number)status.
[INVOICEPENDPAYRULENUM1] VAT - shows all pending payment for this rule (exchange 1 for the rule number) displayed with a decimal point and no thousands separator (for calculation)VAT summary
[INVOICEPENDPAYMANUAL] - manual pending payments
[INVOICEPENDPAYMANUALNUM] - manual pending payments but Connect the value is displayed variables with a decimal point and no thousands separator (for calculation)an underscore.
[INVOICEPENDPAYMANUALNOTDUE] manual pending payments before due date Examples:
[INVOICEPENDPAYMANUALNOTDUENUMINVOICEVAL:PAY_THO] manual pending will show payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYMANUALOVERDUEINVOICEVAL:UPS1_UPS2] manual pending payments after due date will show the sum of upsell 1 and upsell 2
==== Standard Invoice Values====[INVOICEPENDPAYMANUALOVERDUENUMINVOICEBALANCE] manual pending payments after due date but the value is displayed with a decimal point and no thousands separator (for calculation)- invoice balance
[INVOICECREDITSINVOICEBALANCE:50%] - percentage of invoice sum of all credit items (negative items)balance
[INVOICECREDITSINVOICEBALANCE:50%-100] - invoice sum of all credit items balance with percentage multiplier offset amount
[INVOICECREDITS:INVOICEBALANCENUM] -100As per [INVOICEBALANCE] - invoice sum of all credit items but the value is displayed with offset a decimal point and no thousands separator (for calculation).
[INVOICECREDITSNUMINVOICEBALANCENUM:] - As per [INVOICECREDITSINVOICEBALANCE:] but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICECREDITSNUMINVOICEPARTBALANCE:status1,status2,!status4:10%] - As per [INVOICECREDITS:] but Calculate the value is displayed balance of all invoice items with matching status and apply optional multiplier or offset. The status items can be a decimal point comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset is optional and no thousands separator can be specified after a second colon (for calculation:) and it can be a percentage by ending the number with the percent (%)symbol or a numeric value offset.
[INVOICEDEBITSINVOICEPARTBALANCENUM:status1,status2,status4:10%] - invoice sum of all debit items As per INVOICEPARTBALANCE but the value is displayed with a decimal point and no thousands separator (positive itemsfor calculation).
[INVOICEDEBITS:50%INVOICEBALANCE1] - invoice sum balance of all debit items with percentage multiplierone booking only, not the booking group
[INVOICEDEBITS:INVOICEBALANCE1NUM] -100As per [INVOICEBALANCE1] - invoice sum of all debit items but the value is displayed with offseta decimal point and no thousands separator (for calculation)
[INVOICEDEBITSNUMINVOICECHARGES] - As per [INVOICEDEBITS] but the value is displayed with a decimal point and no thousands separator (for calculations) (for calculations)invoice sum of all charges
[INVOICEDEBITSNUMINVOICECHARGES:50%] - As per [INVOICEDEBITS:] but the value is displayed invoice sum of all charges with a decimal point and no thousands separator (for calculations)percentage multiplier
[INVOICEVATINVOICECHARGES:-100] - invoice sum of all vat valuecharges with offset
[INVOICEVATNUMINVOICECHARGESNUM] - invoice sum of all vat As per [INVOICECHARGES] but the value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEFIRSTITEMINVOICECHARGESNUM:] - price of the item listed first in As per [INVOICECHARGES:] but the invoicevalue is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEFIRSTITEMNUMINVOICEPARTCHARGES:status1,status2,!status4:10%] - price Calculate the balance of the item listed first in the all invoice but the value is displayed charges with matching status and apply optional multiplier or offset. The status items can be a decimal point comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and no thousands separator can be specified after a second colon (for calculations:) and it can be a percentage by ending the number with the percent (%)symbol or a numeric value offset.
[INVOICESECONDITEMINVOICEPARTCHARGESNUM:status1,status2,status4:10%] - price of As per INVOICEPARTCHARGES but the item listed second in the invoicevalue is displayed with a decimal point and no thousands separator (for calculation).
[INVOICESECONDITEMNUMINVOICEPAYMENTS] - price invoice sum of the item listed second in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)all payments
[INVOICETHIRDITEMINVOICEPAYMENTS:50%] - price invoice sum of the item listed third in the invoiceall payments with percentage multiplier
[INVOICETHIRDITEMNUMINVOICEPAYMENTS:-100] - price invoice sum of the item listed third in the invoice but the value is displayed all payments with a decimal point and no thousands separator (for calculations)offset
[INVOICEUPSELL0INVOICEPAYMENTSNUM] - base price without upsell items or other charges added laterAs per [INVOICEPAYMENTS] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEUPSELLNUM0INVOICEPAYMENTSNUM:50%] - as As per [INVOICEUPSELL1INVOICEPAYMENTS:50%] but the value is displayed with a decimal point and no thousands separator (for calculations).
[INVOICEUPSELL1INVOICEPARTPAYMENTS:status1,status2,!status4:10%] - value Calculate the balance of upsell item 1 all invoice payments with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (number :) and it can be between 0 to 20a percentage by ending the number with the percent (%)symbol or a numeric value offset.
[INVOICEUPSELLNUM1INVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] - as As per [INVOICEUPSELL1] INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEUPSELLQTY1INVOICEPENDPAY] - quantity of upsell item 1 all (number can be between 1 to 20auto and manual)pending payments including failed
[INVOICEUPSELLNAME1INVOICEPENDPAYNEXTDATE] - name date of the headline field of upsell item 1 (number can be between 1 to 20)next pending payment
[INVOICEUPSELLSTATUS1INVOICEPENDPAYNEXTDATE:] - stautus date of the headline field of upsell item 1 (number next pending payment display can be any valid PHP strftime format string. Information about PHP strftime Strings can be between 1 to 20)find found here: http://php.net/manual/de/function.strftime.php
[INVOICEUPSELLHEADLINE1INVOICEPENDPAYNUM] - headline all (name auto and status if used of upsell item 1 manual) pending payments including failed but the value is displayed with a decimal point and no thousands separator (number can be between 1 to 20for calculation).
[INVOICEUPSELLDESCRIPTION1INVOICEPENDPAY1234] - all (auto and manual) pending payments including failed for the specified invoicee (- description 1 will include all items regardless of upsell item 1 (number can be between 1 to 20invoicee)
[INVOICEUPSELLAMOUNTNUM1INVOICEPENDPAYNUM1234] - all (auto and manual) pending payments including failed for the specified invoicee (- amout 1 will include all items regardless of upsell item 1 invoicee) The value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYAUTO] - auto pending payments before due date
[INVOICEPENDPAYAUTONUM] - auto pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).
[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) (-1 will include all items regardless of invoicee)
[INVOICEUPSELLTYPE1INVOICEPENDPAYAUTONUM1234] 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) (- type 1 will include all items regardless of upsell item 1 invoicee)
[INVOICEUPSELLPER1INVOICEPENDPAYFAIL] - per of upsell item 1 failed pending payments (all also past)
[INVOICEUPSELLPERIOD1INVOICEPENDPAYFAILNUM] - failed pending payments (all also past) - period of upsell item 1 but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEPENDPAYFAIL234] - failed pending payments (all also past) for the specified invoicee (-1 will include all items regardless of invoicee)
[INVOICEEXTRAITEMDESC1INVOICEPENDPAYFAILNUM234] - Name failed pending payments (all also past) for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (-1 will include all items regardless of extra invoice item 1 (number can be between 0 to 20invoicee)
[INVOICEEXTRAITEM1INVOICEPENDPAYRULE1] - value of extra invoice item shows all pending payment for this rule (exchange 1 (for the rule 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.
[INVOICEEXTRAITEM1INVOICEPENDPAYRULENUM1] - value of extra invoice item shows all pending payment for this rule (exchange 1 for the rule number) 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.
[INVOICEEXTRAITEMNUM1INVOICEPENDPAYMANUAL] - as per [INVOICEEXTRAITEM1] but the value is displayed with a decimal point and no thousands separator (for calculations). manual pending payments
[INVOICEEXTRAITEMQTY1INVOICEPENDPAYMANUALNUM] - quantity of extra invoice item 1 manual pending payments but the value is displayed with a decimal point and no thousands separator (number can be between 0 to 20for calculation) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICEGROSS:1INVOICEPENDPAYMANUALNOTDUE] - gross amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)manual pending payments before due date
INVOICEGROSSNUM:1[INVOICEPENDPAYMANUALNOTDUENUM] gross amount of manual pending payments before due date but the inserted VAT rate value is displayed with a decimal point and no thousands separator (number is the VAT ratefor calculation).
[INVOICENET:1INVOICEPENDPAYMANUALOVERDUE] - net amount of the inserted VAT rate (number is the VAT rate)manual pending payments after due date
[INVOICENETNUM:1INVOICEPENDPAYMANUALOVERDUENUM] - net amount of manual pending payments after due date but the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEVAT:1INVOICECREDITS] - VAT amount invoice sum of the inserted VAT rate all credit items (number is the VAT ratenegative items)
[INVOICEVATNUMINVOICECREDITS:150%] VAT amount - invoice sum of the inserted VAT rate (number is the VAT rate), value is displayed all credit items with a decimal point and no thousands separator (for calculations)percentage multiplier
[INVOICEITEMBYDESCINVOICECREDITS:Searchterm-100] - searches the invoice for sum of all credit items with this search term and adds them upoffset
[INVOICEITEMBYDESCNUM:SearchtermINVOICECREDITSNUM] - searches As per [INVOICECREDITS] but the invoice for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEPAYMENTBYDESCINVOICECREDITSNUM:Searchterm] - searches As per [INVOICECREDITS:] but the payments for items value is displayed with this search term a decimal point and adds them upno thousands separator (for calculation)
[INVOICEPAYMENTBYDESCNUM:SearchtermINVOICEDEBITS] - searches the payments for invoice sum of all debit items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculationspositive items)
=== Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[INVOICETABLEINVOICEDEBITS:50%] - invoice tablesum of all debit items with percentage multiplier
[INVOICETABLEVATINVOICEDEBITS:-100] - invoice table sum of all debit items with vat information and vat summaryoffset
[INVOICETABLE:$1.1$INVOICEDEBITSNUM] - invoice table As per [INVOICEDEBITS] but the value is displayed with a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculations) (for calculations)
[INVOICETABLEPARTINVOICEDEBITSNUM:status1,status2,!status4] - Invoice table showing only items As per [INVOICEDEBITS:] but the value is displayed with matching status. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, decimal point and no thousands separator (for example !status1. calculations)
[INVOICETABLE2INVOICEVAT] - invoice table with status fieldsum of all vat value
[INVOICETABLE2:$1.1$INVOICEVATNUM] - invoice table with status field and currency multiplier with optional new currency symbol before or after price.sum of all vat value for calculations)
[INVOICETABLECHARGESINVOICEFIRSTITEM] - price of the item listed first in the invoice table showing charges only
[INVOICETABLECHARGESINVOICEE1234INVOICEFIRSTITEMNUM] - price of the item listed first in the invoice table showing charges only assigned to the specified invoicee, specify but the invoicee Id number.value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICETABLENOTOTINVOICESECONDITEM] - price of the item listed second in the invoice table without grand total
[INVOICETABLENOTOT:$1.1$INVOICESECONDITEMNUM] - price of the item listed second in the invoice table without grand total but the value is displayed with a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculations)
[INVOICETABLENOTOT2INVOICETHIRDITEM] - price of the item listed third in the invoice table with status field without grand total
[INVOICETABLENOTOT2:$1.1$INVOICETHIRDITEMNUM] - price of the item listed third in the invoice table but the value is displayed with status field without grand total a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculations)
[INVOICETABLEVAT:$1.1$INVOICEFOURTHITEM] - price of the item listed fourth in the invoice table with vat information and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVATCOMPACTINVOICEFOURTHITEMNUM] - compact version price of the item listed fourth in the invoice table but the value is displayed with vat information a decimal point and vat summaryno thousands separator (for calculations)
[INVOICETABLEVATCOMPACT:$1.1$INVOICEFIFTHITEM] - compact version price of the item listed fifth in the invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVATCOMPACTNOSUMINVOICEFIFTHITEMNUM] - compact version price of the item listed fifth in the invoice table but the value is displayed with vat information without vat summarya decimal point and no thousands separator (for calculations)
[INVOICETABLEVATCOMPACTNOSUM:$1.1$INVOICEUPSELL0] - compact version of invoice table with vat information base price without vat summary and currency multiplier with optional new currency symbol before upsell items or after price.other charges added later
[INVOICETABLEVATNOSUMINVOICEUPSELLNUM0] - invoice table as per [INVOICEUPSELL1] but the value is displayed with vat information without vat summarya decimal point and no thousands separator (for calculations)
[INVOICETABLEVATNOSUM:$1.1$INVOICEUPSELL1] - invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.value of upsell item 1 (number can be between 0 to 20)
[INVOICETABLEDATEVATNOSUMINVOICEUPSELLNUM1] - invoice table as per [INVOICEUPSELL1] but the value is displayed with vat information a decimal point and date without vat summaryno thousands separator (for calculations)
[INVOICETABLEDATEVATNOSUM:$INVOICEUPSELLQTY1] - quantity of upsell item 1.(number can be between 1$] - invoice table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.to 20)
[INVOICETABLEVAT2INVOICEUPSELLNAME1] - invoice table with vat information and status name of the headline field and vat summaryof upsell item 1 (number can be between 1 to 20)
[INVOICETABLEVAT2:$1.1$INVOICEUPSELLSTATUS1] - invoice table with vat information and status stautus of the headline field and vat summary and currency multiplier with optional new currency symbol before or after price.of upsell item 1 (number can be between 1 to 20)
[INVOICETABLEVAT2NOSUMINVOICEUPSELLHEADLINE1] - invoice table with vat information headline (name and status field without vat summaryif used of upsell item 1 (number can be between 1 to 20)
[INVOICETABLEVAT2NOSUM:$INVOICEUPSELLDESCRIPTION1] - description of upsell item 1.(number can be between 1$] - invoice table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or after price.to 20)
[INVOICETABLEVATCHARGESINVOICEUPSELLAMOUNTNUM1] - invoice table showing charges only with vat information and vat summaryamout of upsell item 1
[INVOICETABLENOPRICE] - invoice table with no price information
[INVOICETABLEINVOICEE] - invoice table excluding items assigned to an invoicee.
[INVOICETABLEINVOICEE1234] - invoice table for a specific invoicee, specify the invoicee Id number.
[UPSELLTABLEINVOICEUPSELLTYPE1] - table with all type of upsell itemsitem 1
[UPSELLTABLEVATINVOICEUPSELLPER1] - table with all per of upsell items with vat information and vat summary item 1
[UPSELLTABLENOREFUNDINVOICEUPSELLPERIOD1] - table with all period of upsell items except refundable itemsitem 1
==== Custom Invoice Table ====
You have the option to create a custom invoice table. Available content variables are:
AMO [INVOICEEXTRAITEMDESC1] - shows the net value Name of extra invoice item 1 (price x quantitynumber can be between 0 to 20)
CEX [INVOICEEXTRAITEM1] - charges excluded value of extra invoice item 1 (charges will not number can be shownbetween 0 to 20)Note: the order goes by the order in the dropdown list not by the order the items are entered.
CON [INVOICEEXTRAITEM1] - currency conversion. Examplevalue of extra invoice item 1 (number can be between 0 to 20) Note: CONEURUSD will convert the first currency (Euros) to order goes by the second currency (USD). CON1.234 would multiply order in the prices dropdown list not by 1the order the items are entered.234
CUA [INVOICEEXTRAITEMNUM1] - currency symbol showing after as per [INVOICEEXTRAITEM1] but the numbersvalue is displayed with a decimal point and no thousands separator (for calculations). Example: CUA€ will show € after the figures
CUB [INVOICEEXTRAITEMQTY1] - currency symbol showing before quantity of extra invoice item 1 (number can be between 0 to 20) Note: the order goes by the order in the numbersdropdown list not by the order the items are entered. Example: CUB€ will show € before the figures
DAT [INVOICEGROSS:1] - adds a date column - you have gross amount of the option to control inserted VAT rate (number is the format of the date using [[Template_Variables#Date_and_Time|date VAT rate), value is displayed with a decimal point and time variables]] no thousands separator (for example DAT{%d-%m-%Y}calculations)
DEC - Decimal points. ExampleINVOICEGROSSNUM: DEC, will show a comma as decimal point. If nothing 1] gross amount of the inserted VAT rate (number is set the system will use the default for the languageVAT rate)
DP0 [INVOICENET:1] - no decimal placesnet amount of the inserted VAT rate (number is the VAT rate)
DP1 [INVOICENETNUM:1] - 1 net amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal placepoint and no thousands separator (for calculations)
DP2 [INVOICEVAT:1] - 2 decimal placesVAT amount of the inserted VAT rate (number is the VAT rate)
DP3 - 3 [INVOICEVATNUM:1] VAT amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal placespoint and no thousands separator (for calculations)
DP4 [INVOICEITEMBYDESC:Searchterm] - 4 decimal places searches the invoice for items with this search term and adds them up
GAT [INVOICEITEMBYDESCNUM:Searchterm] - sum searches the invoice for each columnitems with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)
GRP [INVOICEPAYMENTBYDESC:Searchterm] - Group Totals. Displays searches the same payments for items as a total with this search term and adds them up
GRT [INVOICEPAYMENTBYDESCNUM:Searchterm] - - Grand Total searches the payments for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)
INV - invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 === Invoice Table ===These template varibles will show items not assigned to display an invoicee, INV-1 will show all items from the booking regardless of invoiceeinvoice table. You can combine INV==== Standard Invoice Tables ====[BOOKINGINVOICEEIDINVOICETABLE]] to add the invoicee from the booking- invoice table
LAN [INVOICETABLEVAT] - language. Example LANDE will force the language to Germaninvoice table with vat information and vat summary
MUL - multiplier. Example[INVOICETABLE: MUL1$1.2 will multiply all prices by 1$] - invoice table and currency multiplier with optional new currency symbol before or after price.2
NIN [INVOICETABLEPART:status1,status2,!status4] - do not show invoice number and invoice date on locked invoicesInvoice table showing only items with matching status. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1.
NOC [INVOICETABLE2] - charges will not be displayed but their vat values are still calculated for the vat summary (VAT)invoice table with status field
NOP [INVOICETABLE2:$1.1$] - payments will not be displayed invoice table with status field and currency multiplier with optional new currency symbol before or after price.
ONE [INVOICETABLECHARGES] - shows invoice table showing charges only items from the specified booking (not the booking group)
PAA [INVOICETABLECHARGESINVOICEE1234] - shows a column with payment amountsinvoice table showing charges only assigned to the specified invoicee, specify the invoicee Id number.
PAY [INVOICETABLENOTOT] - shows payments invoice table without grand total
PEN [INVOICETABLENOTOT:$1.1$] - shows pending payments descriptioninvoice table without grand total and currency multiplier with optional new currency symbol before or after price.
PPA [INVOICETABLENOTOT2] - shows pending payments amount invoice table with status field without grand total
PRI [INVOICETABLENOTOT2:$1.1$] - shows prices in a columninvoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.
QTY [INVOICETABLEVAT:$1.1$] - shows quantityinvoice table with vat information and currency multiplier with optional new currency symbol before or after price.
SEX [INVOICETABLEVATCOMPACT] - status excluded. Calculate the balance compact version of all invoice items except for the ones table with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this status.vat information and vat summary
SIN - status included[INVOICETABLEVATCOMPACT:$1. 1$] Calculate the balance - compact version of all invoice items table with matching status, the status items can be a comma separated list. Example: SIN status1,status2,status4 will only show items vat information and vat summary and currency multiplier with this statusoptional new currency symbol before or after price.
STA[INVOICETABLEVATCOMPACTNOSUM] - shows stauscompact version of invoice table with vat information without vat summary
THO [INVOICETABLEVATCOMPACTNOSUM:$1.1$] - thousands separator. THO. will show a dot as thousand separatorcompact version of invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price. If nothing is set the system will use the default for the language
TOT [INVOICETABLEVATNOSUM] - shows total amountsinvoice table with vat information without vat summary
VAA [INVOICETABLEVATNOSUM:$1.1$] - shows VAT amountsinvoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
VAP [INVOICETABLEDATEVATNOSUM] - shows VAT percentsinvoice table with vat information and date without vat summary
VAT [INVOICETABLEDATEVATNOSUM:$1.1$] - VAT invoice table with vat information and date without vat summaryand currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVAT2] - invoice table with vat information and status field and vat summary
Connect the variables [INVOICETABLEVAT2:$1.1$] - invoice table with an underscorevat information and status field and vat summary and currency multiplier with optional new currency symbol before or after price.
Examples: [INVOICETABLEVAT2NOSUM] - invoice table with vat information and status field without vat summary
[INVOICEINVOICETABLEVAT2NOSUM:PRI_QTY_CUA€$1.1$] will create an - invoice table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or after price and quantity in Euros.
[INVOICE:PAY_TOT_CEXINVOICETABLEVATCHARGES] will create an - invoice table which will showing charges only show payments.with vat information and vat summary
[INVOICE:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAAINVOICETABLENOPRICE] will create an - invoice table with more no price information.
== Invoicee Variables ==[INVOICEEBALANCEINVOICETABLEINVOICEE] - invoice balance for unassigned invoice table excluding itemsassigned to an invoicee.
[INVOICEEBALANCENUMINVOICETABLEINVOICEE1234] - invoice balance table for unassigned invoice items displayed with a decimal point and no thousands separatorspecific invoicee, specify the invoicee Id number.
[INVOICEEBALANCE1234UPSELLTABLE] - invoice balance for invoice table with all upsell items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).
[INVOICEEBALANCENUM1234UPSELLTABLEVAT] - invoice balance for invoice table with all upsell items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a decimal point vat information and no thousands separator.vat summary
[INVOICEECHARGESUPSELLTABLENOREFUND] - invoice charges for unassigned invoice table with all upsell items except refundable items.
[INVOICEECHARGESNUM] - ==== Custom Invoice Table ====You have the option to create a custom invoice charges for unassigned invoice items displayed with a decimal point and no thousands separatortable.Available content variables are:
[INVOICEECHARGES1234] AMO - invoice charges for invoice items assigned to invoicee 1234 shows the net value (change 1234 to the required Invoicee Id numberprice x quantity).
[INVOICEECHARGESNUM1234] CEX - invoice charges for invoice items assigned to invoicee 1234 excluded (change 1234 to the required Invoicee Id numbercharges will not be shown) displayed with a decimal point and no thousands separator.
[INVOICEEPAYMENTS] CON - invoice payments for unassigned invoice itemscurrency conversion.Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234
[INVOICEEPAYMENTSNUM] CUA - invoice payments for unassigned invoice items displayed with a decimal point and no thousands separatorcurrency symbol showing after the numbers.Example: CUA€ will show € after the figures
[INVOICEEPAYMENTS1234] CUB - invoice payments for invoice items assigned to invoicee 1234 (change 1234 to currency symbol showing before the required Invoicee Id number)numbers. Example: CUB€ will show € before the figures
DAT - adds a date column - you have the option to control the format of the date using [[INVOICEEPAYMENTSNUM1234Template_Variables#Date_and_Time|date and time variables]] for example DAT{%d-%m- invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)%Y}
[INVOICEENAME] DEC - name of Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the invoicee account system will use the invoice is assigned to or blankdefault for the language
[INVOICEECODE] DP0 - code of the invoicee account the invoice is assigned to or blankno decimal places
[INVOICEECURRENCY] DP1 - currency of the invoicee account the invoice is assigned to if it is not the property default or blank1 decimal place
[INVOICEETEMPLATE1] DP2 - template value 1 of the invoice account the invoice is assigned to or blank2 decimal places
[INVOICEETEMPLATE2] DP3 - template value 2 of the invoice account the invoice is assigned to or blank3 decimal places
[INVOICEETEMPLATE3] DP4 - template value 3 of the invoice account the invoice is assigned to or blank4 decimal places
[INVOICEETEMPLATE4] GAT - template value 4 of the invoice account the invoice is assigned to or blank sum for each column
[INVOICEETEMPLATE5] GRP - template value 5 of Group Totals. Displays the invoice account the invoice is assigned to or blanksame items as a total
[INVOICEETEMPLATE6] GRT - template value 6 of the invoice account the invoice is assigned to or blankGrand Total
[INVOICEETEMPLATE7] INV - template value 7 of invoicee, add the invoice account invoicee number at the invoice is end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to or blankan 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
[INVOICEETEMPLATE8] LAN - template value 8 of language. Example LANDE will force the invoice account the invoice is assigned language to or blankGerman
== Payment Request Variables ==[PAYURL] MUL - Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balancemultiplier.Example: MUL1.2 will multiply all prices by 1.2
[PAYURL:25%] NIN - Creates a payment url for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.do not show invoice number and invoice date on locked invoices
[PAYURL:200] NOC - Creates a payment url charges will not be displayed but their vat values are still calculated for the payment request url for a fixed amount. nt.vat summary (VAT)
[PAYLINK] NOP - Creates a payment link (HTML A tag) for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.payments will not be displayed
[PAYLINK:25%] ONE -Creates a payment link shows only items from the specified booking (HTML A tagnot the booking group) for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
[PAYLINK:200] ORB - Creates a payment link order by booking, this keeps the items for each booking (HTML A tagroom) for together in the payment request) for a fixed amount.table
[PAYBUTTON] PAA - Creates shows a column with payment button for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.amounts
[PAYBUTTON:25%] PAY - 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.shows payments
[PAYBUTTON:200] PEN - Creates a payment button for the payment request for a fixed amount. shows pending payments description
[PAYPALURL] PPA - Creates a Paypal payment url for the shows pending payments amount in the booking deposit field if non zero, otherwise the outstanding balance.
[PAYPALURL:25%] PRI - Creates shows prices in a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.column
[PAYPALURL:200] QTY - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.shows quantity
[PAYPALLINK] SEX - Creates a Paypal payment link (HTML A tag) status excluded. Calculate the balance of all invoice items except for the amount in ones with these status, the booking deposit field if non zerostatus items can be a comma separated list. Example: SEX status1,status2, otherwise the outstanding balancestatus4 will not show items with this status.
[PAYPALLINK:25%] SIN - Creates a Paypal payment link (HTML A tag) for a percentage status included. Calculate the balance of all invoice items with matching status, the outstanding balancestatus items can be a comma separated list. Use 100% to specify the full outstanding balanceExample: SIN status1,status2,status4 will only show items with this status.
[PAYPALLINK:200] STA- Creates a Paypal payment link (HTML A tag) for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.shows staus
[PAYPALBUTTON] THO - Creates thousands separator. THO. will show a Paypal payment button for dot as thousand separator. If nothing is set the amount in system will use the booking deposit field if non zero, otherwise default for the outstanding balance. Not recommended for emails.language
[PAYPALBUTTON:25%] TOT - Creates a Paypal payment button for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.shows total amounts
[PAYPALBUTTON:200] VAA - Creates a Paypal payment button for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount. Not recommended for emails.shows VAT amounts
Add a H to exclude a gateway from displaying. Example: [PAYURL:200:HST] will hide StripeVAP - shows VAT percents
== Text Operators ==VAT - VAT summary
[REPLACE|searchForThisText|replaceWithThisText|textToSearch] - replace "searchForThisText" with "replaceWithThisText" within the text "textToSearch"
== iCal Links ==These template Connect the variables will create iCal links which allow the booking to be added to a calendarwith an underscore.
[ICALURL] - Calendar linkExamples:
[ICALURLINVOICE:16PRI_QTY_CUA€] - Calendar link will create an invoice table with check-price and quantity in hour. Replace '16' with the hour check-in startsEuros.
[ICALURLINVOICE::10PAY_TOT_CEX] - Calendar link with check-out hour. Replace '10' with the hour with the hour check-out endswill create an invoice table which will only show payments.
[ICALURLINVOICE:::summary textPRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] - Calendar link will create an invoice table with a summary textmore information.
[ICALURL:::INVOICE:SIN TRANSPORT] will create an invoice table with the Invoice item description text] - Calendar link for any items with a descriptive textthe Status = Transport.
Example:== Invoicee Variables ==[INVOICEEBALANCE] - invoice balance for unassigned invoice items.
Calendar link [INVOICEEBALANCENUM] - invoice balance for unassigned invoice items displayed with check-in time 16:00, check-out time 10:00, the summary text "Booking" a decimal point and the description text "Sunny Hotel":no thousands separator.
[ICALURL:16:10:Booking:Sunny HotelINVOICEEBALANCE1234]- invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).
== Mathematical Operators ==[INVOICEEBALANCENUM1234] - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a decimal point and no thousands separator.
Place mathematical operators between two numbers <b>or between two template variables</b> that return a number[INVOICEECHARGES] - invoice charges for unassigned invoice items.
[+INVOICEECHARGESNUM] - Example: 2 [+] 3 = 5invoice charges for unassigned invoice items displayed with a decimal point and no thousands separator.
[-INVOICEECHARGES1234] - Example: 5 [-] 1 = 4invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).
[*INVOICEECHARGESNUM1234] - Example: 3 [*] 4 = 12invoice 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.
[/INVOICEEPAYMENTS] - Example: 15 [/] 5 = 3invoice payments for unassigned invoice items.
[MININVOICEEPAYMENTSNUM] - Example: 2 [MIN] 3 = 2invoice payments for unassigned invoice items displayed with a decimal point and no thousands separator.
[MAXINVOICEEPAYMENTS1234] - Example: 2 [MAX] 3 = 3invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
Brackets are not supported as a way [INVOICEEPAYMENTSNUM1234] - invoice payments for invoice items assigned to invoicee 1234 (change 1234 to control processing order, the processing order is fixed as *, /, +, -, MIN, MAXrequired Invoicee Id number)
[INVOICEENAME] - name of the invoicee account the invoice is assigned to or blank
=== Rounding and controlling decimal places ===[INVOICEECODE] - code of the invoicee account the invoice is assigned to or blank
==== Default ====[INVOICEECURRENCY] - currency of the invoicee account the invoice is assigned to if it is not the property default or blank
2 [/INVOICEENOTES] 3 = 0.66666666666667- value of the "Notes" field for the invoicee
==== Rounding [INVOICEETEMPLATE1] - template value 1 of the invoice account the invoice is assigned to the nearest integer ====or blank
2 [/.0INVOICEETEMPLATE2] 3 = 1- template value 2 of the invoice account the invoice is assigned to or blank
==== Rounding [INVOICEETEMPLATE3] - template value 3 of the invoice account the invoice is assigned to 1,2,3 or 4 decimal place(s) ====blank
2 [/.1INVOICEETEMPLATE4] 3 = 0.7- template value 4 of the invoice account the invoice is assigned to or blank
2 [/.2INVOICEETEMPLATE5] 3 = 0.67- template value 5 of the invoice account the invoice is assigned to or blank
2 [/.3INVOICEETEMPLATE6] 3 = 0.667- template value 6 of the invoice account the invoice is assigned to or blank
2 [/.4INVOICEETEMPLATE7] 3 = 0.6667- template value 7 of the invoice account the invoice is assigned to or blank
[INVOICEETEMPLATE8] - template value 8 of the invoice account the invoice is assigned to or blank
<b>This works on all operators including [MININVOICEETEMPLATE1BR] and [MAX]</b>- template value 1 of the invoice account the invoice is assigned to or blank with linkebreak
Note: Always use [INVOICEETEMPLATE2BR] - template value 2 of the template variables ending with NUM. The math functions will only work with numbers invoice account the invoice is assigned to or blank with a decimal point (not a decimal comma) and no thousands separator and no currency symbol.linkebreak
== Currency Conversion ==[INVOICEETEMPLATE3BR] - template value 3 of the invoice account the invoice is assigned to or blank with linkebreak
[CONVERT:EUR-USDINVOICEETEMPLATE4BR] - get template value 4 of the actual conversion rate between two currencies, this can be used invoice account the invoice is assigned to or blank with math functions to show alternative currency values. All currencies supported by the booking page currency selector can be used.linkebreak
Example: [INVOICECHARGESNUMINVOICEETEMPLATE5BR] [*.2] [CONVERT:EUR-USD] will convert template value 5 of the invoice account the invoice charge value from Euros is assigned to USD or blank with two decimal points.linkebreak
If you use [INVOICEETEMPLATE6BR] - template value 6 of the multiplier to convert currencies for channels: For example hotel id 123456 and a multiplier to convert USD invoice account the invoice is assigned to EUR at todays rate:or blank with linkebreak
123456*[CONVERT:USDINVOICEETEMPLATE7BR] -EUR]*template value 7 of the invoice account the invoice is assigned to or blank with linkebreak
[INVOICEETEMPLATE8BR] - template value 8 of the invoice account the invoice is assigned to or this to convert EUR to USDblank with linkebreak
123456*[CONVERT:EUR-USD]
123456*== Payment Request Variables ==[CONVERT:USDPAYURL] -EUR][/]0.85 will convert to Euros and divides Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the price by 0outstanding balance.85 which raises it by circa 15%
==Account Variables (account [PAYURL:25%] - Creates a payment url for the payment request for a percentage of the booking) ==outstanding balance. Use 100% to specify the full outstanding balance.
[ACCOUNTIDPAYURL:200] - account id of Creates a payment url for the booked propertypayment request url for a fixed amount. nt.
[ACCOUNTTEMPLATE1PAYLINK] - Account Template 1Creates a payment link (HTML A tag) for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.
[ACCOUNTTEMPLATE2PAYLINK:25%] - Account Template 2Creates 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.
[ACCOUNTTEMPLATE3PAYLINK:200] - Account Template 3Creates a payment link (HTML A tag) for the payment request) for a fixed amount.
[ACCOUNTTEMPLATE4PAYBUTTON] - Account Template 4 Creates a payment button for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.
[COMMISSIONLIMITPAYBUTTON:25%] - shows Creates a payment button for the available commission amount payment request for a percentage of the owner account of outstanding balance. Use 100% to specify the bookingfull outstanding balance. Not recommended for emails.
[MASTERACCOUNTTEMPLATE1PAYBUTTON:200] - Account Template 1 from master accountCreates a payment button for the payment request for a fixed amount.
[MASTERACCOUNTTEMPLATE2PAYPALURL] - Account Template 2 from master accountCreates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise the outstanding balance.
[MASTERACCOUNTTEMPLATE3PAYPALURL:25%] - Account Template 3 from master accountCreates a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
[MASTERACCOUNTTEMPLATE4PAYPALURL:200] - Account Template 4 from master accountCreates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.
==Account Variables [PAYPALLINK] - Creates a Paypal payment link (logged in account, only HTML A tag) for display the amount in control panel the booking deposit field if non zero, not for auto actions or emails etc.) ==These variables can for example used by resellers who added a custom tab to otherwise the bookingsoutstanding balance.
[LOGGEDINACCOUNTIDPAYPALLINK:25%] - account id Creates a Paypal payment link (HTML A tag) for a percentage of the logged in useroutstanding balance. Use 100% to specify the full outstanding balance.
[LOGGEDINACCOUNTTEMPLATE1PAYPALLINK:200] - Account Template 1Creates a Paypal payment link (HTML A tag) for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.
[LOGGEDINACCOUNTTEMPLATE2PAYPALBUTTON] - Account Template 2Creates a Paypal payment button for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.
[LOGGEDINACCOUNTTEMPLATE3PAYPALBUTTON:25%] - Account Template 3Creates a Paypal payment button for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.
[LOGGEDINACCOUNTTEMPLATE4PAYPALBUTTON:200] - Account Template 4 Creates a Paypal payment button for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount. Not recommended for emails.
Add a H to exclude a gateway from displaying. Example: [LOGGEDINAPIKEYPAYURL:200:HST] - apiKeywill hide Stripe
[MASTERLOGGEDINACCOUNTTEMPLATE1] - Account Template 1 from master account== Text Operators ==
[MASTERLOGGEDINACCOUNTTEMPLATE2REPLACE|searchForThisText|replaceWithThisText|textToSearch] - Account Template 2 from master accountreplace "searchForThisText" with "replaceWithThisText" within the text "textToSearch"
[MASTERLOGGEDINACCOUNTTEMPLATE3] - Account Template 3 from master account
[MASTERLOGGEDINACCOUNTTEMPLATE4SUBSTR|startCharacterNumber|numberOfCharacters|textToGetSubstringFrom] - Account Template 4 get a sub string from master account"textToGetSubstringFrom" starting at character "startCharacterNumber" (integer, 0 is the first char) with a length of "numberOfCharacters" (integer)
== 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 false1. Colons : are used between the two comparison values and the first text, a pipe [SUBSTR| is used between the two texts.Empty text is allowed if you do not want to display anything for a condition.0|4|[GUESTPHONENUM]]
[IF=:if this:equals this:display this text|otherwise display this text]This will test for the first 4 characters of the Guest phone number.
[IFIN:if this:is contained in this:display this text|otherwise display this text]
[IFLIKE:if this:is like this:display this textTRIM|otherwise display this text string to trim ]- remove whitespace from the start and end of " string to trim "
[IF>:if this:is greater than this:display this text|otherwise display this text]== iCal Links ==These template variables will create iCal links which allow the booking to be added to a calendar.
[IF>=:if this:is greater than or equal to this:display this text|otherwise display this textICALURL]- Calendar link
[IF<ICALURL:if this:is less than this:display this text|otherwise display this text16]- Calendar link with check-in hour. Replace '16' with the hour check-in starts.
[IF<=ICALURL:if this:is less than or equal to this:display this text|otherwise display this text10]- Calendar link with check-out hour. Replace '10' with the hour with the hour check-out ends.
[IFBETWEENICALURL:if this:is between this:and this:display this summary text|if it is lower display this text|if it is higher display this ] - Calendar link with a summary text]
[ICALURL::::description text] - Calendar link with a descriptive text
You can use IF variables inside other IF variables to create complex logic but the internal IFExample: must be processed before the external IFThere are special versions of each IF constructed with ^ and ~ separators like [IF=^this^this^same~different]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 Calendar link with check-in time 16:00, check-out time 10:00, the summary text "Booking" and the description text "Sunny Hotel": [ICALURL:16:10:Booking:Sunny Hotel] == Mathematical Operators == Place mathematical operators between two numbers <b>or between two template variables</b> that return a number. [+] - Example: 2 [+] 3 = 5 [-] - Example: 5 [-] 1 = 4 [*] - Example: 3 [*] 4 = 12 [/] - Example: 15 [/] 5 = 3 [MIN] - Example: 2 [MIN] 3 = 2 [MAX] - Example: 2 [MAX] 3 = 3 Brackets are processed 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 following ordersame 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.i[INVOICECHARGESNUM][*]0.e2[-][INVOICESECONDITEMNUM][*]0. all the 2[-][COMMISSIONNUM][IF*]0.2 <span style=^ will "color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span> Property Template 1-8 and Room Template 1-8 can be processed firstused to set calculations. If using Room Templates to make a calculation, then all the [IFIN^ etcuse Room Template 8 before Room Template 7.
If you want to see the value 10. Set Room template 6 = [ROOMTEMPLATE7][+][ROOMTEMPLATE8] and enter 4 in Room template 7 and 6 in Room template 8.  You can set a calculation in Room Templates to show in Property Templates, but not the other way around. So "Property Template1" could pull the calculation of [ROOMTEMPLATE6] and the result = 10.  === Rounding and controlling decimal places === ==== Default ==== 2 [/] 3 = 0.66666666666667 ==== Rounding to the nearest integer ==== 2 [/.0] 3 = 1 ==== Rounding to 1,2,3 or 4 decimal place(s) ==== 2 [/.1] 3 = 0.7 2 [/.2] 3 = 0.67 2 [/.3] 3 = 0.667 2 [/.4] 3 = 0.6667  <b>This works on all operators including [MIN] and [MAX]</b>  Note: Always use the template variables ending with NUM. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbol. == Currency Conversion == [CONVERT:EUR-USD] - get the actual conversion rate between two currencies, this can be used with math functions to show alternative currency values. All currencies supported by the booking page currency selector can be used. Example: [INVOICECHARGESNUM] [*.2] [CONVERT:EUR-USD] will convert the invoice charge value from Euros to USD with two decimal points. If you use the multiplier to convert currencies for channels: For example hotel id 123456 and a multiplier to convert USD to EUR at todays rate: 123456*[CONVERT:USD-EUR]* or this to convert EUR to USD 123456*[CONVERT:EUR-USD] 123456*[CONVERT:USD-EUR][/]0.85 will convert to Euros and divides the price by 0.85 which raises it by circa 15% ==Account Variables (account of the booking) == [ACCOUNTUSERNAME] - Username of the account owning the booking [LOGGEDINACCOUNTUSERNAME] - Username of the person logged in [ACCOUNTID] - account id of the booked property [ACCOUNTTEMPLATE1] - Account Template 1 [ACCOUNTTEMPLATE2] - Account Template 2 [ACCOUNTTEMPLATE3] - Account Template 3 [ACCOUNTTEMPLATE4] - Account Template 4  [COMMISSIONLIMIT] - shows the available commission amount for the owner account of the booking [MASTERACCOUNTTEMPLATE1] - Account Template 1 from master account [MASTERACCOUNTTEMPLATE2] - Account Template 2 from master account [MASTERACCOUNTTEMPLATE3] - Account Template 3 from master account [MASTERACCOUNTTEMPLATE4] - Account Template 4 from master account ==Account Variables (logged in account, only for display in control panel , not for auto actions or emails etc.) ==These variables can for example used by resellers who added a custom tab to the bookings.  [LOGGEDINACCOUNTID] - account id of the logged in user [LOGGEDINACCOUNTTEMPLATE1] - Account Template 1 [LOGGEDINACCOUNTTEMPLATE2] - Account Template 2 [LOGGEDINACCOUNTTEMPLATE3] - Account Template 3 [LOGGEDINACCOUNTTEMPLATE4] - Account Template 4  [LOGGEDINAPIKEY] - apiKey [MASTERLOGGEDINACCOUNTTEMPLATE1] - Account Template 1 from master account [MASTERLOGGEDINACCOUNTTEMPLATE2] - Account Template 2 from master account [MASTERLOGGEDINACCOUNTTEMPLATE3] - Account Template 3 from master account [MASTERLOGGEDINACCOUNTTEMPLATE4] - Account Template 4 from master account == Smart Logic Template Variables == IF style template variables will compare two values and display a text if the comparison is true and an alternative text if the comparison is false. Colons : are used between the two comparison values and the first text, a pipe | is used between the two texts.Empty text is allowed if you do not want to display anything for a condition. [IF=:if this:equals this:display this text|otherwise display this text] [IFIN:if this:is contained in this:display this text|otherwise display this text] [IFLIKE:if this:is like this:display this text|otherwise display this text] [IF>:if this:is greater than this:display this text|otherwise display this text] [IF>=:if this:is greater than or equal to this:display this text|otherwise display this text] [IF<:if this:is less than this:display this text|otherwise display this text] [IF<=:if this:is less than or equal to this:display this text|otherwise display this text] [IFBETWEEN:if this:is between this:and this:display this text|if it is lower display this text|if it is higher display this text]  You can use IF variables inside other IF variables to create complex logic but the internal IF: must be processed before the external IF There are special versions of each IF constructed with ^ and ~ separators like [IF=^this^this^same~different] <span style="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span>Only one IF of each type can be used to create complex logic. The special versions are processed first so should be used as the internal IF so it's result can be processed by the outer if. The special versions can also be used if you expect : or | characters within your data.   IF's are processed in the following order.i.e. all the [IF=^ will be processed first, then all the [IFIN^ etc.  [IF=^[IFIN^[IFLIKE^[IF>^[IF>=^[IF<^
[IF<=^
[IFBETWEEN^[IF=:[IFIN:[IFLIKE:[IF>:[IF>=:[IF<:[IF<=:[IFBETWEEN:  === Examples === Template variables can be used inside this template variable as per the examples <span style="color: #019cde">comparison in blue</span>, <span style="color: #75d5ad">positive result in green</span>, <span style="color: #fe746c">negative result in red</span>: 1. [<span style="color: #019cde">IF=:[GUESTNAME]</span><span style="color: #75d5ad">:Miller</span><span style="color: #75d5ad"><span style="color: #75d5ad">:yes</span> <span style="color: #fe746c">|no</span>] If the guestname is Miller the text "yes" will display. If the guest name is not Miller the text "no" will display 2.[<span style="color: #019cde"> IF>:[NUMADULT]:2</span><span style="color: #75d5ad">:please contact us about you bedding requirements|</span>] If the number of adults is higher than 2 the text"please contact us about you bedding requirements" will display. If the number of adults is lower than or equal 2 nothing will display. 3. [<span style="color: #019cde">IF<:[NUMADULT]:3</span><span style="color: #75d5ad">:|linen for two adults is included free of charge</span>] If the number of adults is lower than 3 nothing will display. If the number of adults is not lower than 3 the text "linen for two adults is included free of charge" will display.  4. [<span style="color: #019cde">IF<=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>] 5. [<span style="color: #019cde">IF>=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>] 6. [<span style="color: #019cde">IFBETWEEN:[NUMADULT]:1:3</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|too low|too high</span>] 7. [<span style="color: #019cde">IFLIKE:[GUESTTITLE]</span><span style="color: #75d5ad">:Mr:Dear</span><span style="color: #fe746c">|Hi</span>] IFLIKE works like IF= except it is case insensitive and removes any spaces from the start and end of the words 8. [<span style="color: #019cde">IFIN:John:[GUESTFIRSTNAME]</span><span style="color: #75d5ad">:Hi John</span><span style="color: #fe746c">|Your name does not contain John?</span>] If the first word is contained in the second word the first option is displayed, otherwise the second option is displayed 9. [<span style="color: #019cde">IFIN:CHECKIN:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>] If the Booking Info Code CHECKIN has been added to the booking then you will see the value in the text (date/time) otherwise blank.
Using multiple IF statements to display special messages :-
Template variables can be used inside this template variable as per the examples 10. [<span style="color: #019cde">comparison in blueIFIN:DEPOSIT:[BOOKINGINFOCODES]:|[IF=:[GUESTCOUNTRY2]:AU</span>, <span style="color: #75d5ad">positive result in green:Credit card details are required </span>, <span style="color: #fe746c">negative result in red|A deposit is required]|No deposit is required</span>:]
1. [<span style=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 "color: #019cdeA deposit is required">IF=:[GUESTNAME]</span><span style="color: #75d5ad">:Miller</span><span style="color: #75d5ad"><span style="color: #75d5ad">:yes</span> <span style=and if no deposit is required they see "color: #fe746cNo deposit is required">|no</span>]
If the guestname is Miller the text 11. [<span style="color: #019cde">IF<:[INADVANCE]:|[IFIN:TRANSFER:[BOOKINGINFOCODES]:3</span><span style="yescolor: #75d5ad" will display. If the guest name is not Miller the text >:Payment Due Date: ASAP </span><span style="nocolor: #fe746c" will display>|Payment Due Date: [FIRSTNIGHT:- 30days]]|</span>]
2You want display a special message to your guests 3 days before checkin with a Booking Info Code = TRANSFER.[<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 text12. [<span style="color: #019cde">IF=:[STATUS]:Confirmed:PAID|[IF<^[INADVANCE]^30</span><span style="please contact us about you bedding requirementscolor: #75d5ad" will display. If the number of adults is lower than or equal 2 nothing will display.>^Payment Due Date: As soon as possible</span><span style="color: #fe746c">~Payment Due Date: [FIRSTNIGHT:- 30 days]]</span>]
3. [<span styleYou 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 "colorPayment Due Date : #019cde">IF<:[NUMADULT]:3</span><span style=or that the "color: #75d5adPayment is due As soon as possible">:|linen for two adults is included free of charge</span>].
If the number of adults is lower than 3 nothing will display13. If the number of adults is not lower than [<span style="color: #019cde">IFBETWEEN:[TURNOVERDAYS]:0:3 the text :</span><span style="color: #75d5ad"linen for two adults is included free of charge>yes|</span><span style=" will display. color: #fe746c">no</span>]
4You want to test if the days until next arrival into the same unit is between 0 and 3 days. Could be used for offering Late Checkouts or additional days to the guest where there is a gap between bookings. [<span style="color: #019cde">IF<=:[NUMADULT]:2</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|no</span>]
514. [<span style="color: #019cde">IF>=:[NUMADULTVACANTDAYS]:21:</span><span style="color: #75d5ad">:yes|</span><span style="color: #fe746c">|no</span>]
6You want to test if there is 1 day from the previous checkout to check in of current booking. Could be used for offering Early Checkouts or additional days to the guest where there is a gap between bookings. [<span style="color: #019cde">IFBETWEEN:[NUMADULT]:1:3</span><span style="color: #75d5ad">:yes</span><span style="color: #fe746c">|too low|too high</span>]
715. [<span style="color: #019cde">IFLIKEIF=:[GUESTTITLELEAVINGDAY:{%a}]:Sun:|[IF>=^[TURNOVERDAYS]^1</span><span style="color: #75d5ad">^yes</span><span style="color:Mr:Dear|Hi#fe746c">~no]</span>]
IFLIKE works like IF= except You want to test if the leaving date is a Sunday and it there is case insensitive and removes any spaces from a gap for 1 or more days between the start current booking and end of the wordsnext booking.
816. [<span style="color: #019cde">IFIN[IF=:John[LEAVINGDAY:{%u}]:1:yes|[GUESTFIRSTNAMEIF=^[LEAVINGDAY:{%u}]^3</span><span style="color: #75d5ad">:Hi John^yes</span><span style="color: #fe746c">|Your name does not contain John?]</span>]
If You want to test if the first word leaving date is contained in a Monday or a Wednesday to send a specific message to the second word the first option is displayedguest, otherwise the second option for example a reminder that it is displayed 9bin collection day. [<span style="color: #019cde">IFIN:CHECKIN:[BOOKINGINFOITEMS]</span><span style="color: #75d5ad">:[BOOKINGINFOCODETEXT:CHECKIN]</span><span style="color: #fe746c">|</span>]
If the Booking Info Code CHECKIN has been added to the booking then you will see the value in the text (date17. [<span style="color: #019cde">[IF=:[LEAVINGDAY:{%u}]:1:yes|[IF=^[LEAVINGDAY:{%u}]^3^yes][IF=^[LEAVINGDAY:{%u}]^6</span><span style="color: #75d5ad">^yes</span><span style="color: #fe746c">]</time) otherwise blank. span>]
You have different cleaning teams for different days of the week, and you want to send a message to the appropriate team if leaving date is a Monday, Wednesday or Saturday.
== Write out the number in Words. ==
[INWORDS] - writes out a number in words. This works in English only.
Expamles:
[INWORDS] 10 will write out then"ten"
[INWORDS] [INVOICEPAYMENTSNUM] will write out the invoice sum of all payments
[INWORDS] [INVOICEPAYMENTSNUM] [+] 10 will write out the invoice sum of all payments plus 10
 
Example: You want to display a special message to Australians if the booking has a DEPOSIT info item code, if a deposit is required from a non Australia they get "A deposit is required" and if no deposit is required they see "No deposit is required"
 
[<span style="color: #019cde">IFIN:DEPOSIT:[BOOKINGINFOCODES]:I[IF=:[GUESTCOUNTRY2]:AU</span><span style="color: #75d5ad">:Credit card details are required </span><span style="color: #fe746c">|A deposit is required]|No deposit is required</span>]
== Encoding Template Variables ==
Note<span style="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span> Always use the template variables ending with NUM if numbers are involved. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbol.
2,869

edits

Navigation menu