Changes

Jump to navigation Jump to search

Template Variables

14,081 bytes added, 13 April
no edit summary
[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
[UNITIDUNITID1] - 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)
[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
[APISOURCETEXT] - human readable name of the channel
[BOOKINGDATEBOOKINGIP] - booking dateip address of booker's computer
[BOOKINGTIMEDATEAPIMESSAGE] - booking date and timeapi message sent by originating channel from the Channel Info setting
[BOOKINGDATEYYYY-MM-DDBOOKINGDATE] - booking date in YYYY-MM-DD formatguests language
[BOOKINGIPBOOKINGTIMEDATE] - ip address of booker's computerbooking date and time in guests language [BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format
[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
[GUESTSNUMBOOKINGS1GUESTSAFULLADDRESSSBR1INC] - the total number first address including city, postcode, sate and country from the guests tab of bookings made by the first guest, a group booking counts as one booking.including cancelled bookings in international format
[GUESTSNUMSTAYS1GUESTSAFULLADDRESSSBR1] - the total number of bookings not cancelled first address including city, postcode, sate and not in country from the future made by guests tab of the first guest, a group booking counts as one booking.in International format
===Cancellation, Management and Guest Login===[CANCELLEDTIMEGUESTSBFULLADDRESSSBR1INC] - date when the first address including city, postcode, sate and country from the guests tab of the booking was including cancelled bookings in European format
CANCELLEDTIME:[GUESTSBFULLADDRESSSBR1] - date when the first address including city, postcode, sate and country from the guests tab of the booking was cancelled display can be any valid PHP strftime in European format string
[CANCELURLGUESTSNUMBOOKINGS1] - URL to view and cancel the total number of bookings made by the first guest, a group booking counts as one booking.
[CANCELDATEGUESTSNUMSTAYS1] - date until when the total number of bookings not cancelled and not in the future made by the first guest, a group booking is cancellable displaying a phrasecounts as one booking.
[CANCELDATEYYYY-MM-DDGUESTSCUSTOMQ1S] - 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 1 for all guests
[DAYSTOCANCELGUESTSCUSTOMQ1SINC] - number of days until booking can be answer to custom question 1 for all guests including cancelled bookings
[CANCELUNTILGUESTSCUSTOMQ2S] - shows the number of days between check-in and the last day which can be canecelled. If guest can always cancel it shows 0, if guest can never cancel it shows 9999.answer to custom question 2 for all guests
[GUESTLOGINGUESTSCUSTOMQ2SINC] - URL answer to view custom question 2 for all guests including cancelled bookings
[TURNOVERDAYSGUESTSCUSTOMQ3S] - days until next arrival into the same unit.answer to custom question 3 for all guests
==Date and Time==[GUESTSCUSTOMQ3SINC] - answer to custom question 3 for all guests including cancelled bookings
Many date template variables support PHP strftime format strings between {} brackets [GUESTSCUSTOMQ4S] - 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
[GUESTSCUSTOMQ4SINC] - answer to custom question 4 for all guests including cancelled bookings
[CURRENTDATEGUESTSCUSTOMQ5S] - current dateanswer to custom question 5 for all guests
[CURRENTDATEYYYY-MM-DDGUESTSCUSTOMQ5SINC] - current date in YYYY-MM-DD formatanswer to custom question 5 for all guests including cancelled bookings
[CURRENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ6S] - current dateanswer to custom question 6 for all guests
[CURRENTDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ6SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 6 for all guests including cancelled bookings
[CURRENTTIMEGUESTSCUSTOMQ7S] - current time and the display can be any valid PHP strftime format string.answer to custom question 7 for all guests
[CURRENTTIME:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ7SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 7 for all guests including cancelled bookings
[DAYSTOCHECKINGUESTSCUSTOMQ7S] - number of days until check-inanswer to custom question 8 for all guests
[INADVANCEGUESTSCUSTOMQ8SINC] - number of days between booking and check-inanswer to custom question 8 for all guests including cancelled bookings
[DAYSBETWEEN:2019-11-01:2019-11-10GUESTSCUSTOMQ9S] - 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
Example: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}GUESTSCUSTOMQ9SINC]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today. answer to custom question 9 for all guests including cancelled bookings
[FIRSTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ10S] - first night bookedanswer to custom question 10 for all guests
[FIRSTNIGHT:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ10SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 10 for all guests including cancelled bookings
===Cancellation, Management and Guest Login===[LASTNIGHT:{%A, %e %B, %Y}CANCELLEDTIME] - last night bookeddate when the booking was cancelled
[LASTNIGHTCANCELLEDTIME:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and when the booking was cancelled display can be any valid PHP strftime format string.
[LEAVINGDAY:{%A, %e %B, %Y}CANCELURL] - check-out URL to view and cancel bookings
[LEAVINGDAY:+1day{%A, %e %B, %Y}CANCELDATE] - optional date offset and display format. The offset can be any plus or minus any number of days and until when the display can be any valid PHP strftime format string.booking is cancellable displaying a phrase
[BOOKINGDATE:{%A, %e %B, %Y}CANCELDATEYYYY-MM-DD] - date until when the booking is cancellable displaying a date. If the dateis in the past 00-00-0000 will be shown
[BOOKINGDATE:+1day{%A, %e %B, %Y}DAYSTOCANCEL] - optional date offset and display format. The offset can be any plus or minus any number of days and the display until booking can be any valid PHP strftime format string.cancelled
[MODIFYDATE:{%A, %e %B, %Y}CANCELUNTIL] - shows the number of days between check-in and the last booking modification date/time, the display 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
[PAYMENTDATE:{%A, %e %B, %Y}GUESTLOGIN] - most recent payment dateURL to view bookings
[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000TURNOVERDAYS] - 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 not considering black bookings
[FORMATDATE:[any template variable that creates a date]{%A, %e %B, %Y}TURNOVERDAYSB] - format the date in days until next arrival into the strftime format. The date value could be included by inserting a different template variable containing a date.same unit considering black bookings
== Booking Group variables ===== Custom Booking Group Table ===create your own [VACANTDAYS] days from previous checkout to check in of current booking group list by specifying the columns in the order you want them to appear.not considering black bookings
for example: [BOOKGROUP:PROP_ROOM_BREF_NAMEVACANTDAYSB] days from previous checkout to check in of current booking considering black bookings
column parameters==Date and Time==
100% = 100% width[CURRENTDATE] - current date
ADDR = Booking address[CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format
ADUL= the number of adults[CURRENTDATE:{%A, %e %B, %Y}] - current date
ARIV = Arrival [CURRENTDATE:+1day{%A, %e %B, %Y}] - optional dateoffset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
BOPR = Bold prices[CURRENTTIME] - current time and the display can be any valid PHP strftime format string.
BREF = Booking [CURRENTTIME:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any numberof days and the display can be in a custom format.
CITY = Booking city [DAYSTOCHECKIN] - number of days until check-in
CHAC = Charges with currency symbol[INADVANCE] - number of days between booking and check-in
CHAR = Charges[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.
CHIL = Number of childrenExample: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today.
COUN = Booking country [FIRSTNIGHT:{%A, %e %B, %Y}] - first night booked
DEPT = Departure [FIRSTNIGHT:+1day{%A, %e %B, %Y}] - optional dateoffset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
EMAI = Booking Email [LASTNIGHT:{%A, %e %B, %Y}] - last night booked
EXSP = extra space between rows[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.
FLAG = Booking flag text[LEAVINGDAY:{%A, %e %B, %Y}] - check-out
FNAM = Booking first name[LEAVINGDAY:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
GADD = Guest address[BOOKINGDATE:{%A, %e %B, %Y}] - booking date
GCIT = Guest city[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.
GCOM = Guest company[MODIFYDATE:{%A, %e %B, %Y}] - last booking modification date/time, the display can be any valid PHP strftime format string.
GCOU = Guest country[PAYMENTDATE:{%A, %e %B, %Y}] - most recent payment date
GFLA = Guest flag text[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.
GFNA = Guest first name [AUTHORIZEUNTIL] - date until which a card is authorized, this is extracted from the most recent authorize booking info code.
GLNA = Guest last 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.
GMOB = Guest mobile[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.
GNAM = Guest full name
GEMA = Guest EmailThe following codes can be used in any order between the {} brackets to create custom time and date formats.
GNOT = Guest note %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 ("%")
GPOS = Guest postcode= 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.
GREF = Guest Idfor example: [BOOKGROUP:PROP_ROOM_BREF_NAME]
GSTA = Guest statecolumn parameters
GTEL 100% = Guest phone100% width
ICAN ADDR = Include cancelled bookingsBooking address
LNAM ADUL= Booking last namethe number of adults
MOBI ARIV = Booking mobileArrival date
NAME BOPR = Booking full nameBold prices
NOHE BREF = no headerBooking number
NOTE BRL1 = Booking noteLast digit of booking number
ONAM BRL2 = Offer Name Last 2 digits of booking number
ONLY BRL3 = Just show the one Last 3 digits of bookingnumber
PAIC BRL4 = Payment amount with currency symbolLast 4 digits of booking number
PAID BRL5 = Paid amountLast 5 digits of booking number BRL6 = Last 6 digits of booking number
PEOP CITY = Number of guestsBooking city
PHON CHAC = Booking phoneCharges with currency symbol
POST CHAR = Booking postcodeCharges
PROP CHIL = Property nameNumber of children
RDE0 COUN = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTBooking country
RDE1 DEPT = Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUPDeparture date
RNAM EMAI = Room Display Name ROOM = Room nameBooking Email
RQTY EXSP = shows the number of rooms for each booking and a total at the bottomextra 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
[INVOICEDATES] - invoice date invoice number if invoicees are involvedNUMN = Number of nights booked
[INVOICEDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string. ONAM = Offer Name
[INVOICEDATES+1day{%A, %e %B, %Y}] - optional date offset and display format - invoice date invoice number if invoicees are involved, The offset can be any plus or minus any number of days and ONLY = Just show the display can be any valid PHP strftime format string. one booking
PAIC === Invoice Values ===These template variables will display a value form the invoice.Payment amount with currency symbol
PADD ==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value from an invoice. Available content variables are: Property Address
CHA - chargesPAID = Paid amount
CON - currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234 PCIT = Property City
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the languagePEOP = Number of guests
DP0 - no decimal placesPHON = Booking phone
DP1 - 1 decimal placePOST = Booking postcode
DP2 - 2 decimal placesPROP = Property name
DP3 - 3 decimal placesRDE0 = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
DP4 - 4 decimal places RDE1 = Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUP
DESsome description - sum of values with "some description"RNAM = Room Display Name ROOM = Room name
INV - invoicee, add RQTY = shows the invoicee number of rooms for each booking and a total at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV-1 will show all items from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking bottom
IT1 - item 1 in the invoiceSTAT = Booking state
IT2 - item 2 in the invoice STUS = Status
IT3 - item 3 in the invoiceTEXT = Prints a plain text table instead of HTML
IT4 - item 4 in the invoiceTOTA = Total price
IT5 - item 5 in the invoiceUNI2 = Unit first additional information UNI3 = Unit second additional information
MUL - multiplier. Example: MUL1.2 will multiply all prices by 1.2 UNIT = Unit name
NUM - show with decimal place (for scripts)
THO - thousands separator. THO. will show a dot as thousand separatorConnect the parameters with an underscore. If nothing is set the system will use the default for the language
UPS1 - upsell 1Examples:
UPS2 - upsell 2[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.
UPS3 - upsell 3
UPS4 - upsell 4[BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and room name in this order.
UPS5 === Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - upsell 5create a table of guest names including room type for a group booking
ONE [BOOKGROUPROOMLISTTOTAL] - shows only items from the specified create a table of guest names including room type for a group booking (not the booking group)with guest totals
PAY [BOOKGROUPROOMLISTCHARGETOTAL] - shows payments create a table of guest names including room type and charge for a group booking with guest totals
QTY [BOOKGROUPNAMELIST] - shows quantitycreate a table of guest names including room type and unit for a group booking
SEX [BOOKGROUPNAMELISTTOTAL] - status excluded. Calculate the balance create a table of all invoice items except guest names including room type and unit 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 [BOOKGROUPNAMELISTCHARGETOTAL] - 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 unit and charge for a comma separated list. Example: SIN status1,status2,status4 will only show items group booking with this status. guest totals
VAT [BOOKGROUPUNITLIST] - VAT summarycreate a table of guest names including unit for a group booking
[BOOKGROUPUNITLISTTOTAL] - create a table of guest names including unit for a group booking with guest totals
Connect the variables [BOOKGROUPUNITLISTCHARGETOTAL] - create a table of guest names including unit and charge for a group booking with an underscore. guest totals
Examples: == Invoice Variables ==[INVOICENUMBER] - invoice number
[INVOICEVAL:PAY_THOINVOICENUMBERS] will show payments with a thousands separator- invoice number if invoicees are involved
[INVOICEVAL:UPS1_UPS1INVOICEDATE] will show the sum of upsell 1 and upsell 2- invoice date
==== Standard Invoice Values====[INVOICEBALANCEINVOICEDATES] - invoice balancedate invoice number if invoicees are involved
[INVOICEBALANCEINVOICEDATE:50+1day{%A, %e %B, %Y}] - percentage optional date offset and display format. The offset can be any plus or minus any number of invoice balancedays and the display can be any valid PHP strftime format string.
[INVOICEBALANCEINVOICEDATES:+1day{%A, %e %B, %Y}] -100] optional date offset and display format - invoice balance with date invoice number if invoicees are involved, The offset amountcan be any plus or minus any number of days and the display can be any valid PHP strftime format string.
[INVOICEBALANCENUM] - As per [INVOICEBALANCE] 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.
[INVOICEBALANCENUM:] - As per [INVOICEBALANCE:] but ==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value is displayed from an invoice. [INVOICEVAL with a decimal point and no thousands separator (for selection of the following variables specifies the calculation).:
[INVOICEPARTBALANCE:status1,status2,!status4:10%] CHA - Calculate the balance of all invoice items with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset is optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offset.charges
[INVOICEPARTBALANCENUMCON - currency conversion. Example:status1,status2,status4:10%] - As per INVOICEPARTBALANCE but CONEURUSD will convert the first currency (Euros) to the value is displayed with a decimal point and no thousands separator second currency (for calculationUSD).CON1.234 would multiply the prices by 1.234
[INVOICEBALANCE1] DEC - invoice balance of one booking onlyDecimal points. Example: DEC, not will show a comma as decimal point. If nothing is set the booking groupsystem will use the default for the language
[INVOICEBALANCE1NUM] DP0 - As per [INVOICEBALANCE1] but the value is displayed with a no decimal point and no thousands separator (for calculation)places
[INVOICECHARGES] DP1 - invoice sum of all charges 1 decimal place
[INVOICECHARGES:50%] DP2 - invoice sum of all charges with percentage multiplier2 decimal places
[INVOICECHARGES:DP3 -100] - invoice sum of all charges with offset 3 decimal places
[INVOICECHARGESNUM] DP4 - As per [INVOICECHARGES] but the value is displayed with a 4 decimal point and no thousands separator (for calculation)places
[INVOICECHARGESNUM:] DES - As per [INVOICECHARGES:] but used as "DESsome description" - gives the sum of values containing the value is displayed with a decimal point and no thousands separator (for calculation)description "some description"
[INVOICEPARTCHARGESINV - invoicee, add the invoicee number at the end. Example:status1INV20 to show invoicee number 20,status2INV0 will show items not assigned to an invoicee,!status4:10%] INV- Calculate 1 will show all items from the balance booking regardless of all invoice charges with matching status and apply optional multiplier or offsetinvoicee. The status items You 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 combine INV[BOOKINGINVOICEEID]] to add the number with invoicee from the percent (%) symbol or a numeric value offset.booking
[INVOICEPARTCHARGESNUM:status1,status2,status4:10%] IT1 - As per INVOICEPARTCHARGES but item 1 in the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEPAYMENTS] IT2 - item 2 in the invoice sum of all payments
[INVOICEPAYMENTS:50%] IT3 - item 3 in the invoice sum of all payments with percentage multiplier
[INVOICEPAYMENTS:-100] IT4 - item 4 in the invoice sum of all payments with offset
[INVOICEPAYMENTSNUM] IT5 - As per [INVOICEPAYMENTS] but item 5 in the value is displayed with a decimal point and no thousands separator (for calculation)invoice
[INVOICEPAYMENTSNUM:50%] MUL - As per [INVOICEPAYMENTSmultiplier. Example:50%] but the value is displayed with a decimal point and no thousands separatorMUL1.2 will multiply all prices by 1.2
[INVOICEPARTPAYMENTS:status1,status2,!status4:10%] NUM - Calculate the balance of all invoice payments show 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, decimal place (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 (%scripts) symbol or a numeric value offset.
[INVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] THO - As per INVOICEPARTCHARGES but the value is displayed with thousands separator. THO. will show a decimal point and no thousands dot as thousand separator (. If nothing is set the system will use the default for calculation).the language
[INVOICEPENDPAY] UPS1 - all (auto and manual) pending payments including failedupsell 1
[INVOICEPENDPAYNEXTDATE] UPS2 - date of the next pending paymentupsell 2
[INVOICEPENDPAYNEXTDATE:] UPS3 - date of the next pending payment display can be any valid PHP strftime format string. Information about PHP strftime Strings can be find found here: http://php.net/manual/de/function.strftime.phpupsell 3
[INVOICEPENDPAYNUM] UPS4 - all (auto and manual) pending payments including failed but the value is displayed with a decimal point and no thousands separator (for calculation).upsell 4
[INVOICEPENDPAY1234] UPS5 - all (auto and manual) pending payments including failed for the specified invoicee (-1 will include all items regardless of invoicee)upsell 5
[INVOICEPENDPAYNUM1234] ONE - all (auto and manual) pending payments including failed for shows only items from the specified invoicee booking (-1 will include all items regardless of invoicee) The value is displayed with a decimal point and no thousands separator (for calculationnot the booking group).
[INVOICEPENDPAYAUTO] PAY - auto pending shows payments before due date
[INVOICEPENDPAYAUTONUM] QTY - auto pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).shows quantity
[INVOICEPENDPAYAUTO1234] auto pending payments before due date SEX - status excluded. Calculate the balance of all 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.
[INVOICEPENDPAYAUTONUM1234] auto pending payments before due date for SIN - status included. Calculate the specified invoicee but balance of all invoice items with matching status, the value is displayed with status items can be a decimal point and no thousands separator (for calculation) (-1 comma separated list. Example: SIN status1,status2,status4 will include all only show items regardless of invoicee)with this status.
[INVOICEPENDPAYFAIL] VAT - failed pending payments (all also past)VAT summary
[INVOICEPENDPAYFAILNUM] - failed pending payments (all also past) but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEPENDPAYFAIL234] - failed pending payments (all also past) for Connect the specified invoicee (-1 will include all items regardless of invoicee)variables with an underscore.
[INVOICEPENDPAYFAILNUM234] - failed pending payments (all also past) for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (-1 will include all items regardless of invoicee)Examples:
[INVOICEPENDPAYRULE1INVOICEVAL:PAY_THO] - shows all pending payment for this rule (exchange 1 for the rule number)will show payments with a thousands separator
[INVOICEPENDPAYRULENUM1INVOICEVAL:UPS1_UPS2] - shows all pending payment for this rule (exchange will show the sum of upsell 1 for the rule number) displayed with a decimal point and no thousands separator (for calculation)upsell 2
==== Standard Invoice Values====[INVOICEPENDPAYMANUALINVOICEBALANCE] - manual pending payments invoice balance
[INVOICEPENDPAYMANUALNUMINVOICEBALANCE:50%] - manual pending payments but the value is displayed with a decimal point and no thousands separator (for calculation).percentage of invoice balance
[INVOICEPENDPAYMANUALNOTDUEINVOICEBALANCE:-100] manual pending payments before due date - invoice balance with offset amount
[INVOICEPENDPAYMANUALNOTDUENUMINVOICEBALANCENUM] - As per [INVOICEBALANCE] manual pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYMANUALOVERDUEINVOICEBALANCENUM:] manual pending payments after due date - As per [INVOICEBALANCE:] but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYMANUALOVERDUENUMINVOICEPARTBALANCE:status1,status2,!status4:10%] manual pending payments after due date 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.
[INVOICECREDITSINVOICEPARTBALANCENUM:status1,status2,status4:10%] - invoice sum of all credit items As per INVOICEPARTBALANCE but the value is displayed with a decimal point and no thousands separator (negative itemsfor calculation).
[INVOICECREDITS:50%INVOICEBALANCE1] - invoice sum balance of all credit items with percentage multiplier one booking only, not the booking group
[INVOICECREDITS:INVOICEBALANCE1NUM] -100As per [INVOICEBALANCE1] - invoice sum of all credit items but the value is displayed with offset a decimal point and no thousands separator (for calculation)
[INVOICECREDITSNUMINVOICECHARGES] - As per [INVOICECREDITS] but the value is displayed with a decimal point and no thousands separator (for calculation)invoice sum of all charges
[INVOICECREDITSNUMINVOICECHARGES:50%] - As per [INVOICECREDITS:] but the value is displayed invoice sum of all charges with a decimal point and no thousands separator (for calculation)percentage multiplier
[INVOICEDEBITSINVOICECHARGES:-100] - invoice sum of all debit items (positive items)charges with offset
[INVOICEDEBITS:50%INVOICECHARGESNUM] - invoice sum of all debit items As per [INVOICECHARGES] but the value is displayed with percentage multipliera decimal point and no thousands separator (for calculation)
[INVOICEDEBITSINVOICECHARGESNUM:] -100As per [INVOICECHARGES:] - invoice sum of all debit items but the value is displayed with offseta decimal point and no thousands separator (for calculation)
[INVOICEDEBITSNUMINVOICEPARTCHARGES:status1,status2,!status4:10%] - As per [INVOICEDEBITS] but Calculate the value is displayed balance of all invoice charges with matching status and apply optional multiplier or offset. The status items can be a 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 (for calculations%)symbol or a numeric value offset.
[INVOICEDEBITSNUMINVOICEPARTCHARGESNUM:status1,status2,status4:10%] - As per [INVOICEDEBITS:] INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEVATINVOICEPAYMENTS] - invoice sum of all vat valuepayments
[INVOICEVATNUMINVOICEPAYMENTS:50%] - invoice sum of all vat value for calculations)payments with percentage multiplier
[INVOICEFIRSTITEMINVOICEPAYMENTS:-100] - price invoice sum of the item listed first in the invoiceall payments with offset
[INVOICEFIRSTITEMNUMINVOICEPAYMENTSNUM] - price of the item listed first in the invoice As per [INVOICEPAYMENTS] but the value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICESECONDITEMINVOICEPAYMENTSNUM:50%] - price of the item listed second in As per [INVOICEPAYMENTS:50%] but the invoicevalue is displayed with a decimal point and no thousands separator.
[INVOICESECONDITEMNUMINVOICEPARTPAYMENTS:status1,status2,!status4:10%] - price Calculate the balance of the item listed second in the all invoice but the value is displayed payments 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.
[INVOICETHIRDITEMINVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] - price of As per INVOICEPARTCHARGES but the item listed third in the invoicevalue is displayed with a decimal point and no thousands separator (for calculation).
[INVOICETHIRDITEMNUMINVOICEPENDPAY] - price of the item listed third in the invoice but the value is displayed with a decimal point all (auto and no thousands separator (for calculationsmanual)pending payments including failed
[INVOICEFOURTHITEMINVOICEPENDPAYNEXTDATE] - price date of the item listed fourth in the invoicenext pending payment
[INVOICEFOURTHITEMNUMINVOICEPENDPAYNEXTDATE:] - price date of the item listed fourth in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations)next pending payment display can be any valid PHP strftime format string. Information about PHP strftime Strings can be find found here: http://php.net/manual/de/function.strftime.php
[INVOICEFIFTHITEMINVOICEPENDPAYNUM] - price of all (auto and manual) pending payments including failed but the item listed fifth in the invoicevalue is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEFIFTHITEMNUMINVOICEPENDPAY1234] - price of the item listed fifth in the invoice but all (auto and manual) pending payments including failed for the value is displayed with a decimal point and no thousands separator specified invoicee (for calculations-1 will include all items regardless of invoicee)
[INVOICEUPSELL0INVOICEPENDPAYNUM1234] - base price without upsell all (auto and manual) pending payments including failed for the specified invoicee (-1 will include all items or other charges added laterregardless of invoicee) The value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEUPSELLNUM0INVOICEPENDPAYAUTO] - auto as per [INVOICEUPSELL1] but the value is displayed with a decimal point and no thousands separator (for calculations)pending payments before due date
[INVOICEUPSELL1INVOICEPENDPAYAUTONUM] - auto pending payments before due date but the value of upsell item 1 is displayed with a decimal point and no thousands separator (number can be between 0 to 20for calculation).
[INVOICEUPSELLNUM1] - as per [INVOICEUPSELL1INVOICEPENDPAYAUTO1234] auto pending payments before due date for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculationscalculation) (-1 will include all items regardless of invoicee)
[INVOICEUPSELLQTY1INVOICEPENDPAYAUTONUM1234] 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) (- quantity 1 will include all items regardless of upsell item 1 (number can be between 1 to 20invoicee)
[INVOICEUPSELLNAME1INVOICEPENDPAYFAIL] - name of the headline field of upsell item 1 failed pending payments (number can be between 1 to 20all also past)
[INVOICEUPSELLSTATUS1INVOICEPENDPAYFAILNUM] - failed pending payments (all also past) - stautus of but the headline field of upsell item 1 value is displayed with a decimal point and no thousands separator (number can be between 1 to 20for calculation)
[INVOICEUPSELLHEADLINE1INVOICEPENDPAYFAIL234] - headline failed pending payments (name and status if used of upsell item 1 all also past) for the specified invoicee (number can be between -1 to 20will include all items regardless of invoicee)
[INVOICEUPSELLDESCRIPTION1INVOICEPENDPAYFAILNUM234] - description of upsell item 1 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) (number can be between -1 to 20will include all items regardless of invoicee)
[INVOICEUPSELLAMOUNTNUM1INVOICEPENDPAYRULE1] - amout of upsell item shows all pending payment for this rule (exchange 1 for the rule number)
[INVOICEPENDPAYRULENUM1] - shows all pending payment for this rule (exchange 1 for the rule number) displayed with a decimal point and no thousands separator (for calculation)
[INVOICEPENDPAYMANUAL] - manual pending payments
[INVOICEPENDPAYMANUALNUM] - manual pending payments but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEUPSELLTYPE1INVOICEPENDPAYMANUALNOTDUE] - type of upsell item 1 manual pending payments before due date
[INVOICEUPSELLPER1INVOICEPENDPAYMANUALNOTDUENUM] manual - per of upsell item 1 pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEUPSELLPERIOD1INVOICEPENDPAYMANUALOVERDUE] manual - period of upsell item 1 pending payments after due date
[INVOICEPENDPAYMANUALOVERDUENUM] manual pending payments after due date but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEEXTRAITEMDESC1INVOICECREDITS] - Name invoice sum of extra invoice item 1 all credit items (number can be between 0 to 20negative items)
[INVOICEEXTRAITEM1INVOICECREDITS:50%] - value invoice sum of extra invoice item 1 (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the order the all credit items are entered. with percentage multiplier
[INVOICEEXTRAITEM1INVOICECREDITS:-100] - value invoice sum of extra invoice item 1 (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the order the all credit items are entered. with offset
[INVOICEEXTRAITEMNUM1INVOICECREDITSNUM] - as As per [INVOICEEXTRAITEM1INVOICECREDITS] but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEEXTRAITEMQTY1INVOICECREDITSNUM:] - quantity of extra invoice item 1 As per [INVOICECREDITS:] 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:1INVOICEDEBITS] - gross amount invoice sum of the inserted VAT rate all debit items (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculationspositive items)
INVOICEGROSSNUM[INVOICEDEBITS:150%] gross amount - invoice sum of the inserted VAT rate (number is the VAT rate)all debit items with percentage multiplier
[INVOICENETINVOICEDEBITS:1-100] - net amount invoice sum of the inserted VAT rate (number is the VAT rate)all debit items with offset
[INVOICENETNUM:1INVOICEDEBITSNUM] - net amount of the inserted VAT rate (number is As per [INVOICEDEBITS] but the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations) (for calculations)
[INVOICEVATINVOICEDEBITSNUM:1] - VAT amount of As per [INVOICEDEBITS:] but the inserted VAT rate value is displayed with a decimal point and no thousands separator (number is the VAT ratefor calculations)
[INVOICEVATNUM:1INVOICEVAT] VAT amount - invoice sum of the inserted VAT rate (number is the VAT rate), all vat value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICEITEMBYDESC:SearchtermINVOICEVATNUM] - searches the invoice sum of all vat value for items with this search term and adds them upcalculations)
[INVOICEITEMBYDESCNUM:SearchtermINVOICEFIRSTITEM] - searches price of the item listed first in the invoice for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICEPAYMENTBYDESC:SearchtermINVOICEFIRSTITEMNUM] - searches price of the payments for items item listed first in the invoice but the value is displayed with this search term a decimal point and adds them upno thousands separator (for calculations)
[INVOICEPAYMENTBYDESCNUM:SearchtermINVOICESECONDITEM] - searches price of the item listed second in 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)invoice
=== Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[INVOICETABLEINVOICESECONDITEMNUM] - price of the item listed second in the invoice tablebut the value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICETABLEVATINVOICETHIRDITEM] - price of the item listed third in the invoice table with vat information and vat summary
[INVOICETABLE:$1.1$INVOICETHIRDITEMNUM] - price of the item listed third in the invoice table 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)
[INVOICETABLEPART:status1,status2,!status4INVOICEFOURTHITEM] - Invoice table showing only items with matching status. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. price of the item listed fourth in the invoice
[INVOICETABLE2INVOICEFOURTHITEMNUM] - price of the item listed fourth in the invoice table but the value is displayed with status fielda decimal point and no thousands separator (for calculations)
[INVOICETABLE2:$1.1$INVOICEFIFTHITEM] - price of the item listed fifth in the invoice table with status field and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLECHARGESINVOICEFIFTHITEMNUM] - price of the item listed fifth in the invoice table showing charges onlybut the value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICETABLECHARGESINVOICEE1234INVOICEUPSELL0] - invoice table showing base price without upsell items or other charges only assigned to the specified invoicee, specify the invoicee Id number.added later
[INVOICETABLENOTOTINVOICEUPSELLNUM0] - invoice table without grand total as per [INVOICEUPSELL1] but the value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICETABLENOTOT:$1.1$INVOICEUPSELL1] - invoice table without grand total and currency multiplier with optional new currency symbol before or after price.value of upsell item 1 (number can be between 0 to 20)
[INVOICETABLENOTOT2INVOICEUPSELLNUM1] - invoice table as per [INVOICEUPSELL1] but the value is displayed with status field without grand totala decimal point and no thousands separator (for calculations)
[INVOICETABLENOTOT2:$INVOICEUPSELLQTY1] - quantity of upsell item 1.(number can be between 1$] - invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.to 20)
[INVOICETABLEVAT:$INVOICEUPSELLNAME1] - name of the headline field of upsell item 1.(number can be between 1$] - invoice table with vat information and currency multiplier with optional new currency symbol before or after price.to 20)
[INVOICETABLEVATCOMPACTINVOICEUPSELLSTATUS1] - compact version stautus of invoice table with vat information and vat summarythe headline field of upsell item 1 (number can be between 1 to 20)
[INVOICETABLEVATCOMPACT:$1.1$INVOICEUPSELLHEADLINE1] - compact version headline (name and status if used of invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price.upsell item 1 (number can be between 1 to 20)
[INVOICETABLEVATCOMPACTNOSUMINVOICEUPSELLDESCRIPTION1] - compact version description of invoice table with vat information without vat summaryupsell item 1 (number can be between 1 to 20)
[INVOICETABLEVATCOMPACTNOSUM:$1.1$INVOICEUPSELLAMOUNTNUM1] - compact version amout of invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.upsell item 1
[INVOICETABLEVATNOSUM] - invoice table with vat information without vat summary
[INVOICETABLEVATNOSUM:$1.1$] - invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEDATEVATNOSUM] - invoice table with vat information and date without vat summary
[INVOICETABLEDATEVATNOSUM:$1.1$INVOICEUPSELLTYPE1] - invoice table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.type of upsell item 1
[INVOICETABLEVAT2INVOICEUPSELLPER1] - invoice table with vat information and status field and vat summaryper of upsell item 1
[INVOICETABLEVAT2:$1.1$INVOICEUPSELLPERIOD1] - invoice table with vat information and status field and vat summary and currency multiplier with optional new currency symbol before or after price.period of upsell item 1
[INVOICETABLEVAT2NOSUM] - invoice table with vat information and status field without vat summary
[INVOICETABLEVAT2NOSUM:$1.1$INVOICEEXTRAITEMDESC1] - Name of extra invoice table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or after price.item 1 (number can be between 0 to 20)
[INVOICETABLEVATCHARGESINVOICEEXTRAITEM1] - value of extra invoice table showing charges only with vat information and vat summaryitem 1 (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICETABLENOPRICEINVOICEEXTRAITEM1] - value of extra invoice table with no price informationitem 1 (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICETABLEINVOICEEINVOICEEXTRAITEMNUM1] - invoice table excluding items assigned to an invoiceeas per [INVOICEEXTRAITEM1] but the value is displayed with a decimal point and no thousands separator (for calculations).
[INVOICETABLEINVOICEE1234INVOICEEXTRAITEMQTY1] - quantity of extra invoice table for a specific invoicee, specify item 1 (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the invoicee Id numberorder the items are entered.
[UPSELLTABLEINVOICEGROSS:1] - table gross amount of the inserted VAT rate (number is the VAT rate), value is displayed with all upsell itemsa decimal point and no thousands separator (for calculations)
[UPSELLTABLEVATINVOICEGROSSNUM:1] - table with all upsell items with vat information and vat summary gross amount of the inserted VAT rate (number is the VAT rate)
[UPSELLTABLENOREFUNDINVOICENET:1] - table with all upsell items except refundable itemsnet amount of the inserted VAT rate (number is the VAT rate)
==== Custom Invoice Table ====You have [INVOICENETNUM:1] - net amount of the option to create inserted VAT rate (number is the VAT rate), value is displayed with a custom invoice table. Available content variables are: decimal point and no thousands separator (for calculations)
AMO [INVOICEVAT:1] - shows VAT amount of the net value inserted VAT rate (price x quantitynumber is the VAT rate)
CEX - charges excluded [INVOICEVATNUM:1] VAT amount of the inserted VAT rate (charges will not be shownnumber is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
CON [INVOICEITEMBYDESC:Searchterm] - currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply searches the prices by 1.234invoice for items with this search term and adds them up
CUA [INVOICEITEMBYDESCNUM:Searchterm] - currency symbol showing after the numbers. Example: CUA€ will show € after searches the figuresinvoice for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (for calculations)
CUB [INVOICEPAYMENTBYDESC:Searchterm] - currency symbol showing before the numbers. Example: CUB€ will show € before searches the figurespayments for items with this search term and adds them up
DAT [INVOICEPAYMENTBYDESCNUM:Searchterm] - searches the payments for items with this search term and adds them up, value is displayed with a date column - you have the option to control the format of the date using [[Template_Variables#Date_and_Time|date decimal point and time variables]] no thousands separator (for example DAT{%d-%m-%Y}calculations)
DEC - Decimal points. Example: DEC, === Invoice Table ===These template varibles will show a comma as decimal pointdisplay an invoice table. If nothing is set the system will use the default for the language==== Standard Invoice Tables ====[INVOICETABLE] - invoice table
DP0 [INVOICETABLEVAT] - no decimal placesinvoice table with vat information and vat summary
DP1 [INVOICETABLE:$1.1$] - 1 decimal placeinvoice table and currency multiplier with optional new currency symbol before or after price.
DP2 [INVOICETABLEPART:status1,status2,!status4] - 2 decimal placesInvoice 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.
DP3 [INVOICETABLE2] - 3 decimal placesinvoice table with status field
DP4 [INVOICETABLE2:$1.1$] - 4 decimal placesinvoice table with status field and currency multiplier with optional new currency symbol before or after price.
GAT [INVOICETABLECHARGES] - sum for each columninvoice table showing charges only
GRP [INVOICETABLECHARGESINVOICEE1234] - Group Totalsinvoice table showing charges only assigned to the specified invoicee, specify the invoicee Id number. Displays the same items as a total
GRT [INVOICETABLENOTOT] - Grand Total invoice table without grand total
INV - invoicee, add the invoicee number at the end. Example[INVOICETABLENOTOT: 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[BOOKINGINVOICEEID1$]] to add the invoicee from the booking- invoice table without grand total and currency multiplier with optional new currency symbol before or after price.
LAN [INVOICETABLENOTOT2] - language. Example LANDE will force the language to Germaninvoice table with status field without grand total
MUL - multiplier. Example[INVOICETABLENOTOT2: MUL1$1.2 will multiply all prices by 1$] - invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.2
NIN [INVOICETABLEVAT:$1.1$] - do not show invoice number table with vat information and invoice date on locked invoicescurrency multiplier with optional new currency symbol before or after price.
NOC [INVOICETABLEVATCOMPACT] - charges will not be displayed but their compact version of invoice table with vat values are still calculated for the information and vat summary (VAT)
NOP [INVOICETABLEVATCOMPACT:$1.1$] - payments will not be displayed compact version of invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price.
ONE [INVOICETABLEVATCOMPACTNOSUM] - shows only items from the specified booking (not the booking group)compact version of invoice table with vat information without vat summary
ORB [INVOICETABLEVATCOMPACTNOSUM:$1.1$] - order by booking, this keeps the items for each booking (room) together in the compact version of invoice tablewith vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
PAA [INVOICETABLEVATNOSUM] - shows a column invoice table with payment amountsvat information without vat summary
PAY [INVOICETABLEVATNOSUM:$1.1$] - shows payments invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
PEN [INVOICETABLEDATEVATNOSUM] - shows pending payments descriptioninvoice table with vat information and date without vat summary
PPA [INVOICETABLEDATEVATNOSUM:$1.1$] - shows pending payments amount invoice table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.
PRI [INVOICETABLEVAT2] - shows prices in a columninvoice table with vat information and status field and vat summary
QTY [INVOICETABLEVAT2:$1.1$] - shows quantityinvoice table with vat information and status field and vat summary and currency multiplier with optional new currency symbol before or after price.
SEX [INVOICETABLEVAT2NOSUM] - status excluded. Calculate the balance of all invoice items except for the ones with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items table with this vat information and status.field without vat summary
SIN [INVOICETABLEVAT2NOSUM:$1.1$] - status included. Calculate the balance of all invoice items table with matching status, the vat information and status items can be a comma separated list. Example: SIN status1,status2,status4 will only show items field without vat summary and currency multiplier with this statusoptional new currency symbol before or after price.
STA[INVOICETABLEVATCHARGES] - shows stausinvoice table showing charges only with vat information and vat summary
THO [INVOICETABLENOPRICE] - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the languageinvoice table with no price information
TOT [INVOICETABLEINVOICEE] - shows total amountsinvoice table excluding items assigned to an invoicee.
VAA [INVOICETABLEINVOICEE1234] - shows VAT amountsinvoice table for a specific invoicee, specify the invoicee Id number.
VAP [UPSELLTABLE] - shows VAT percentstable with all upsell items
VAT [UPSELLTABLEVAT] - VAT table with all upsell items with vat information and vat summary
[UPSELLTABLENOREFUND] - table with all upsell items except refundable items
Connect ==== Custom Invoice Table ====You have the option to create a custom invoice table. Available content variables with an underscore. are:
Examples: AMO - shows the net value (price x quantity)
[INVOICE:PRI_QTY_CUA€] CEX - charges excluded (charges will create an invoice table with price and quantity in Euros.not be shown)
[INVOICECON - currency conversion. Example:PAY_TOT_CEX] CONEURUSD will create an invoice table which will only show paymentsconvert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234
[INVOICECUA - currency symbol showing after the numbers. Example:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] CUA€ will create an invoice table with more information.show € after the figures
== Invoicee Variables ==[INVOICEEBALANCE] CUB - invoice balance for unassigned invoice itemscurrency symbol showing before the 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 [[INVOICEEBALANCENUMTemplate_Variables#Date_and_Time|date and time variables] ] for example DAT{%d- invoice balance for unassigned invoice items displayed with a decimal point and no thousands separator.%m-%Y}
[INVOICEEBALANCE1234] DEC - invoice balance Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).language
[INVOICEEBALANCENUM1234] DP0 - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a no decimal point and no thousands separator.places
[INVOICEECHARGES] DP1 - invoice charges for unassigned invoice items.1 decimal place
[INVOICEECHARGESNUM] DP2 - invoice charges for unassigned invoice items displayed with a 2 decimal point and no thousands separator.places
[INVOICEECHARGES1234] DP3 - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).3 decimal places
[INVOICEECHARGESNUM1234] DP4 - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with a 4 decimal point and no thousands separator.places
[INVOICEEPAYMENTS] GAT - invoice payments sum for unassigned invoice items.each column
[INVOICEEPAYMENTSNUM] GRP - invoice payments for unassigned invoice Group Totals. Displays the same items displayed with as a decimal point and no thousands separator.total
[INVOICEEPAYMENTS1234] GRT - invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)Grand Total
[INVOICEEPAYMENTSNUM1234] INV - invoice payments for invoice invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee 1234 (change 1234 , INV-1 will show all items from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the required Invoicee Id number)invoicee from the booking
[INVOICEENAME] LAN - name of language. Example LANDE will force the invoicee account the invoice is assigned language to or blankGerman
[INVOICEECODE] MUL - code of the invoicee account the invoice is assigned to or blankmultiplier. Example: MUL1.2 will multiply all prices by 1.2
[INVOICEECURRENCY] NIN - currency of the invoicee account the do not show invoice is assigned to if it is not the property default or blanknumber and invoice date on locked invoices
[INVOICEETEMPLATE1] NOC - template value 1 of charges will not be displayed but their vat values are still calculated for the invoice account the invoice is assigned to or blankvat summary (VAT)
[INVOICEETEMPLATE2] NOP - template value 2 of the invoice account the invoice is assigned to or blankpayments will not be displayed
[INVOICEETEMPLATE3] ONE - template value 3 of shows only items from the invoice account specified booking (not the invoice is assigned to or blankbooking group)
[INVOICEETEMPLATE4] ORB - template value 4 of order by booking, this keeps the invoice account items for each booking (room) together in the invoice is assigned to or blanktable
[INVOICEETEMPLATE5] PAA - template value 5 of the invoice account the invoice is assigned to or blankshows a column with payment amounts
[INVOICEETEMPLATE6] PAY - template value 6 of the invoice account the invoice is assigned to or blankshows payments
[INVOICEETEMPLATE7] PEN - template value 7 of the invoice account the invoice is assigned to or blankshows pending payments description
[INVOICEETEMPLATE8] PPA - template value 8 of the invoice account the invoice is assigned to or blankshows pending payments amount
== Payment Request Variables ==[PAYURL] PRI - Creates shows prices in a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.column
[PAYURL:25%] QTY - Creates a payment url for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.shows quantity
[PAYURL:200] SEX - Creates a payment url status excluded. Calculate the balance of all invoice items except for the payment request url for ones with these status, the status items can be a fixed amountcomma separated list. ntExample: SEX status1,status2,status4 will not show items with this status.
[PAYLINK] SIN - Creates a status included. payment link (HTML A tag) for Calculate the payment request for balance of all invoice items with matching status, the amount in the booking deposit field if non zerostatus items can be a comma separated list. Example: SIN status1,status2, otherwise the outstanding balancestatus4 will only show items with this status.
[PAYLINK:25%] STA-Creates a payment link (HTML A tag) for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.shows staus
[PAYLINK:200] THO - Creates thousands separator. THO. will show a payment link (HTML A tag) dot as thousand separator. If nothing is set the system will use the default for the payment request) for a fixed amount.language
[PAYBUTTON] TOT - 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.shows total amounts
[PAYBUTTON:25%] VAA - 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 VAT amounts
[PAYBUTTON:200] VAP - Creates a payment button for the payment request for a fixed amount. shows VAT percents
[PAYPALURL] VAT - Creates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise the outstanding balance.VAT summary
[PAYPALURL:25%] - Creates a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
[PAYPALURL:200] - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter Connect the variables with an amountunderscore.
[PAYPALLINK] - Creates a Paypal payment link (HTML A tag) for the amount in the booking deposit field if non zero, otherwise the outstanding balance.Examples:
[PAYPALLINKINVOICE:25%PRI_QTY_CUA€] - Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance. Use 100% to specify the full outstanding balancewill create an invoice table with price and quantity in Euros.
[PAYPALLINKINVOICE:200PAY_TOT_CEX] - Creates a Paypal payment link (HTML A tag) for a fixed amount. A zero amount will cause paypal to provide a field to enter create an amountinvoice table which will only show payments.
[PAYPALBUTTONINVOICE:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] - Creates a Paypal payment button for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emailswill create an invoice table with more information.
[PAYPALBUTTONINVOICE:25%SIN TRANSPORT] - Creates a Paypal payment button will create an invoice table with the Invoice item description for a percentage of any items with the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emailsStatus = Transport.
== Invoicee Variables ==[PAYPALBUTTON:200INVOICEEBALANCE] - Creates a Paypal payment button invoice balance for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount. Not recommended for emailsunassigned invoice items.
Add [INVOICEEBALANCENUM] - invoice balance for unassigned invoice items displayed with a H to exclude a gateway from displayingdecimal point and no thousands separator. Example: [PAYURL:200:HST] will hide Stripe
== Text Operators ==[INVOICEEBALANCE1234] - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).
[REPLACE|searchForThisText|replaceWithThisText|textToSearchINVOICEEBALANCENUM1234] - replace "searchForThisText" invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed with "replaceWithThisText" within the text "textToSearch"a decimal point and no thousands separator.
[SUBSTR|startCharacterNumber|numberOfCharacters|textToGetSubstringFromINVOICEECHARGES] - get a sub string from "textToGetSubstringFrom" starting at character "startCharacterNumber" (integer, 0 is the first char) with a length of "numberOfCharacters" (integer)invoice charges for unassigned invoice items.
[TRIM| string to trim INVOICEECHARGESNUM] - remove whitespace from the start invoice charges for unassigned invoice items displayed with a decimal point and end of " string to trim "no thousands separator.
== iCal Links ==These template variables will create iCal links which allow the booking [INVOICEECHARGES1234] - invoice charges for invoice items assigned to be added invoicee 1234 (change 1234 to a calendarthe required Invoicee Id number).
[ICALURLINVOICEECHARGESNUM1234] - Calendar linkinvoice 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.
[ICALURL:16INVOICEEPAYMENTS] - Calendar link with check-in hour. Replace '16' with the hour check-in startsinvoice payments for unassigned invoice items.
[ICALURL::10INVOICEEPAYMENTSNUM] - Calendar link invoice payments for unassigned invoice items displayed with check-out hour. Replace '10' with the hour with the hour check-out endsa decimal point and no thousands separator.
[ICALURL:::summary textINVOICEEPAYMENTS1234] - Calendar link with a summary textinvoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
[ICALURL::::description textINVOICEEPAYMENTSNUM1234] - Calendar link with a descriptive textinvoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)
Example:[INVOICEENAME] - name of the invoicee account the invoice is assigned to or blank
Calendar link with check[INVOICEECODE] -in time 16:00, check-out time 10:00, code of the summary text "Booking" and invoicee account the description text "Sunny Hotel":invoice is assigned to or blank
[ICALURL:16:10:Booking:Sunny HotelINVOICEECURRENCY]- currency of the invoicee account the invoice is assigned to if it is not the property default or blank
== Mathematical Operators ==[INVOICEENOTES] - value of the "Notes" field for the invoicee
Place mathematical operators between two numbers <b>[INVOICEETEMPLATE1] - template value 1 of the invoice account the invoice is assigned to or between two template variables</b> that return a number.blank
[+INVOICEETEMPLATE2] - Example: template value 2 [+] 3 = 5of the invoice account the invoice is assigned to or blank
[-INVOICEETEMPLATE3] - Example: 5 [-] 1 = 4template value 3 of the invoice account the invoice is assigned to or blank
[*INVOICEETEMPLATE4] - Example: 3 [*] template value 4 = 12of the invoice account the invoice is assigned to or blank
[/INVOICEETEMPLATE5] - Example: 15 [/] template value 5 = 3of the invoice account the invoice is assigned to or blank
[MININVOICEETEMPLATE6] - Example: 2 [MIN] 3 = 2template value 6 of the invoice account the invoice is assigned to or blank
[MAXINVOICEETEMPLATE7] - Example: 2 [MAX] 3 = 3template value 7 of the invoice account the invoice is assigned to or blank
Brackets are not supported as a way to control processing order, [INVOICEETEMPLATE8] - template value 8 of the invoice account the processing order invoice is fixed as *, /, +, -, MIN, MAXassigned to or blank
[INVOICEETEMPLATE1BR] - template value 1 of the invoice account the invoice is assigned to or blank with linkebreak
=== Rounding and controlling decimal places ===[INVOICEETEMPLATE2BR] - template value 2 of the invoice account the invoice is assigned to or blank with linkebreak
==== Default ====[INVOICEETEMPLATE3BR] - template value 3 of the invoice account the invoice is assigned to or blank with linkebreak
2 [/INVOICEETEMPLATE4BR] 3 = 0.66666666666667- template value 4 of the invoice account the invoice is assigned to or blank with linkebreak
==== Rounding [INVOICEETEMPLATE5BR] - template value 5 of the invoice account the invoice is assigned to the nearest integer ====or blank with linkebreak
2 [/.0INVOICEETEMPLATE6BR] 3 = 1- template value 6 of the invoice account the invoice is assigned to or blank with linkebreak
==== Rounding [INVOICEETEMPLATE7BR] - template value 7 of the invoice account the invoice is assigned to 1,2,3 or 4 decimal place(s) ====blank with linkebreak
2 [/.1INVOICEETEMPLATE8BR] 3 = 0.7- template value 8 of the invoice account the invoice is assigned to or blank with linkebreak
2 [/.2] 3 = 0.67
2 == Payment Request Variables ==[/.3PAYURL] 3 = 0- Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.667
2 [/PAYURL:25%] - Creates a payment url for the payment request for a percentage of the outstanding balance.4] 3 = 0Use 100% to specify the full outstanding balance.6667
[PAYURL:200] - Creates a payment url for the payment request url for a fixed amount. nt.
<b>This works on all operators including [MINPAYLINK] and [MAX]</b>- 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.
Note[PAYLINK: 25%] -Creates a Always use payment link (HTML A tag) for the template variables ending with NUMpayment request for a percentage of the outstanding balance. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbolUse 100% to specify the full outstanding balance.
== Currency Conversion ==[PAYLINK:200] - Creates a payment link (HTML A tag) for the payment request) for a fixed amount.
[CONVERT:EUR-USDPAYBUTTON] - get Creates a payment button for the payment request for the amount in the actual conversion rate between two currenciesbooking deposit field if non zero, this can be used with math functions to show alternative currency valuesotherwise the outstanding balance. All currencies supported by the booking page currency selector can be usedNot recommended for emails.
Example[PAYBUTTON: [INVOICECHARGESNUM] [*.225%] [CONVERT:EUR-USD] will convert Creates a payment button for the payment request for a percentage of the invoice charge value from Euros outstanding balance. Use 100% to USD with two decimal pointsspecify the full outstanding balance. Not recommended for emails.
If you use [PAYBUTTON:200] - Creates a payment button for the multiplier to convert currencies payment request for channels: For example hotel id 123456 and a multiplier to convert USD to EUR at todays rate:fixed amount.
123456*[CONVERT:USDPAYPALURL] -EUR]*Creates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise the outstanding balance.
or this [PAYPALURL:25%] - Creates a Paypal payment url for a percentage of the outstanding balance. Use 100% to convert EUR specify the full outstanding balance. [PAYPALURL:200] - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to USDprovide a field to enter an amount.
123456*[CONVERT:EURPAYPALLINK] -USD]Creates a Paypal payment link (HTML A tag) for the amount in the booking deposit field if non zero, otherwise the outstanding balance.
123456*[CONVERTPAYPALLINK:USD25%] -EUR][/]0Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance.85 will convert Use 100% to Euros and divides specify the price by 0full outstanding balance.85 which raises it by circa 15%
==Account Variables [PAYPALLINK:200] - Creates a Paypal payment link (account of the bookingHTML A tag) ==for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.
[ACCOUNTIDPAYPALBUTTON] - account id of Creates a Paypal payment button for the booked propertyamount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.
[ACCOUNTTEMPLATE1PAYPALBUTTON:25%] - Account Template 1Creates a Paypal payment button for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.
[ACCOUNTTEMPLATE2PAYPALBUTTON:200] - Account Template 2Creates 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: [ACCOUNTTEMPLATE3PAYURL:200:HST] - Account Template 3will hide Stripe
[ACCOUNTTEMPLATE4] - Account Template 4 == Text Operators ==
[COMMISSIONLIMITREPLACE|searchForThisText|replaceWithThisText|textToSearch] - shows replace "searchForThisText" with "replaceWithThisText" within the available commission amount for the owner account of the bookingtext "textToSearch"
[MASTERACCOUNTTEMPLATE1] - Account Template 1 from master account
[MASTERACCOUNTTEMPLATE2SUBSTR|startCharacterNumber|numberOfCharacters|textToGetSubstringFrom] - Account Template 2 get a sub string from master account"textToGetSubstringFrom" starting at character "startCharacterNumber" (integer, 0 is the first char) with a length of "numberOfCharacters" (integer)
[MASTERACCOUNTTEMPLATE3] - Account Template 3 from master account
1. [MASTERACCOUNTTEMPLATE4SUBSTR|0|4|[GUESTPHONENUM]] - Account Template  This will test for the first 4 from master accountcharacters of the Guest phone number.
==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.
[LOGGEDINACCOUNTIDTRIM| string to trim ] - account id remove whitespace from the start and end of the logged in user" string to trim "
[LOGGEDINACCOUNTTEMPLATE1] - Account Template 1== iCal Links ==These template variables will create iCal links which allow the booking to be added to a calendar.
[LOGGEDINACCOUNTTEMPLATE2ICALURL] - Account Template 2Calendar link
[LOGGEDINACCOUNTTEMPLATE3ICALURL:16] - Account Template 3Calendar link with check-in hour. Replace '16' with the hour check-in starts.
[LOGGEDINACCOUNTTEMPLATE4ICALURL::10] - Account Template 4 Calendar link with check-out hour. Replace '10' with the hour with the hour check-out ends.
[LOGGEDINAPIKEYICALURL:::summary text] - apiKeyCalendar link with a summary text
[MASTERLOGGEDINACCOUNTTEMPLATE1ICALURL::::description text] - Account Template 1 from master accountCalendar link with a descriptive text
[MASTERLOGGEDINACCOUNTTEMPLATE2] - Account Template 2 from master accountExample:
[MASTERLOGGEDINACCOUNTTEMPLATE3] Calendar link with check- Account Template 3 from master accountin time 16:00, check-out time 10:00, the summary text "Booking" and the description text "Sunny Hotel":
[MASTERLOGGEDINACCOUNTTEMPLATE4ICALURL:16:10:Booking:Sunny Hotel] - Account Template 4 from master account
== Smart Logic Template Variables Mathematical Operators ==
IF style Place mathematical operators between two numbers <b>or between two template variables will compare two values and display </b> that return a text if the comparison is true and an alternative text if the comparison is falsenumber. Colons [+] - Example: are used between the two comparison values and the first text, a pipe | is used between the two texts.2 [+] 3 = 5 Empty text is allowed if you do not want to display anything for a condition.[-] - Example: 5 [-] 1 = 4
[IF=*] - Example:if this:equals this:display this text|otherwise display this text3 [*]4 = 12
[IFIN:if this:is contained in this/] - Example:display this text|otherwise display this text15 [/]5 = 3
[IFLIKE:if this:is like thisMIN] - Example:display this text|otherwise display this text2 [MIN]3 = 2
[IF>:if this:is greater than thisMAX] - Example:display this text|otherwise display this text2 [MAX]3 = 3
[IF>=:if this:Brackets are not supported as a way to control processing order, the processing order is greater than or equal to this:display this text|otherwise display this text]fixed as *, /, +, -, MIN, MAX
[IF<:if this:is less than this:display this text|otherwise display this text]If you want to use * and - in the same calculation, for example you need 20% of the result, then you will need to use the calculation below as a * calculation will be calculated first.
[IF<=:if this:is less than or equal to this:display this text|otherwise display this textINVOICECHARGESNUM][*]0.2[-][INVOICESECONDITEMNUM][*]0.2[-][COMMISSIONNUM][*]0.2
[IFBETWEEN<span style="color:if this#f3e504; font-size:is between this150%;" >{{#fas:lightbulb}} </span> Property Template 1-8 and this:display this text|if it is lower display this text|if it is higher display this text]Room Template 1-8 can be used to set calculations. If using Room Templates to make a calculation, then use Room Template 8 before Room Template 7.
If you want to see the value 10.
Set Room template 6 = [ROOMTEMPLATE7][+][ROOMTEMPLATE8] and enter 4 in Room template 7 and 6 in Room template 8.
You can use IF variables inside other IF variables set a calculation in Room Templates to create complex logic show in Property Templates, but not the internal IF: must be processed before other way around. So "Property Template1" could pull the external IFThere are special versions calculation of each IF constructed with ^ and ~ separators like [IF=^this^this^same~differentROOMTEMPLATE6]The special versions are processed first so should be used as and 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= 10.
IF's are processed in the following order.
i.e. all the [IF=^ will be processed first, then all the [IFIN^ etc.
=== 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.

Navigation menu