Changes

Jump to navigation Jump to search

Template Variables

15,479 bytes added, 11:56, 28 October 2022
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
 
[ROOMTEMPLATE1BR] - ROOM Template 1 with linkbreak
 
[ROOMTEMPLATE2BR] - ROOM Template 2 with linkbreak
 
[ROOMTEMPLATE3BR] - ROOM Template 3 with linkbreak
 
[ROOMTEMPLATE4BR] - ROOM Template 4 with linkbreak
 
[ROOMTEMPLATE5BR] - ROOM Template 5 with linkbreak
 
[ROOMTEMPLATE6BR] - ROOM Template 6 with linkbreak
 
[ROOMTEMPLATE7BR] - ROOM Template 7 with linkbreak
 
[ROOMTEMPLATE8BR] - ROOM Template 8 with linkbreak
[ROOMMETAAUXTEXT] - room meta text setting for first booked room
[OFFERNAME1] - offer name for this booked room only
[OFFERNAMEINC] - offer name for this booked room only inluding including cancelled bookings
[OFFERDESCRIPTION1] - offer description 1 for all booked rooms
[OFFERDESCRIPTION1INC] - offer description 1 for all booked rooms inklincl. cancelled
[OFFERDESCRIPTION2] - offer description 2 for all booked rooms
[OFFERDESCRIPTION2INC] - offer description 2 for all booked rooms inklincl. cancelled
[OFFERDESCRIPTION1-1] - offer description 1 for this booked room
[UNITNAMEINC] - unit names of all the assigned room types in the booking group including cancelled bookings
[UNITNAME:1] - additional information (first) about the unit for all the assigned room types in the booking group (cancelled bookings are not shown) [UNITNAME:2] - additional information (second) about the unit for all the assigned room types in the booking group (cancelled bookings are not shown)
[UNITNAME1] - unit name of the assigned room for this booking number
[UNITNAME1:1] - additional information about the assigned room for this booking number / add the additional information on each line after a | symbol where you set the unit names
[UNITSTATUS1] - the status if of the unit
[ROOMDESCRIPTION] - Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[LEAVINGDAYAVAIL] - returns yes or no, can be used to trigger an Auto Action
 
[NUMROOMSAVAIL] - returns the number of available rooms (-1 if overbooked), can be used to trigger an Auto Action
[ROOMRACKRATENUM] - Rack Rate from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[RANDOM8] - a 8 digit random number seeded from the booking number
 
[VOUCHERPHRASE1] - Voucher Phrase - change the nubmer to the voucher you want to print out.
 
[VOUCHERAMOUNT1] - Voucher Amount - change the nubmer to the voucher you want to print out.
=== Content from "Info" tab ===
[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
[GUESTCUSTOMQ1] - answer to custom question 1
 
[GUESTCUSTOMQ1BR] - answer to custom question 1 with line breaks <BR>
[GUESTCUSTOMQ2] - answer to custom question 2
 
[GUESTCUSTOMQsBR] - answer to custom question 2 with line breaks <BR>
[GUESTCUSTOMQ3] - answer to custom question 3
 
[GUESTCUSTOMQ3BR] - answer to custom question 3 with line breaks <BR>
[GUESTCUSTOMQ4] - answer to custom question 4
 
[GUESTCUSTOMQ4BR] - answer to custom question 4 with line breaks <BR>
[GUESTCUSTOMQ5] - answer to custom question 5
 
[GUESTCUSTOMQ5BR] - answer to custom question 5 with line breaks <BR>
[GUESTCUSTOMQ6] - answer to custom question 6
 
[GUESTCUSTOMQ6BR] - answer to custom question 6 with line breaks <BR>
[GUESTCUSTOMQ7] - answer to custom question 7
 
[GUESTCUSTOMQ7BR] - answer to custom question 7 with line breaks <BR>
[GUESTCUSTOMQ8] - answer to custom question 8
 
[GUESTCUSTOMQ8BR] - answer to custom question 8 with line breaks <BR>
[GUESTCUSTOMQ9] - answer to custom question 9
 
[GUESTCUSTOMQ9BR] - answer to custom question 9 with line breaks <BR>
[GUESTCUSTOMQ10] - answer to custom question 10
 
[GUESTCUSTOMQ10BR] - answer to custom question 10 with line breaks <BR>
[REFERENCE] - content of the booking reference field
[APISOURCETEXT] - human readable name of the channel
[BOOKINGDATEBOOKINGIP] - booking dateip address of booker's computer
[APIMESSAGE] - api message sent by originating channel [BOOKINGDATE] - booking date in guests language [BOOKINGTIMEDATE] - booking date and timein guests language
[BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format
[BOOKINGIP] - ip address of booker's computer [APIMESSAGE] - api message sent by originating channelsee date and time variables below for custom time formats.
=== Content from "Charges and Payments" tab (also see "Invoice/Invoicee/Room") ===
[GUESTSADDRESSSBR1INC] - address of the first guest on the "guests" tab of this booking group incl. cancelled
 
[GUESTSAFULLADDRESSSBR1INC] - the first address including city, postcode, sate and country from the guests tab of the booking including cancelled bookings in international format
 
[GUESTSAFULLADDRESSSBR1] - the first address including city, postcode, sate and country from the guests tab of the booking in International format
 
[GUESTSBFULLADDRESSSBR1INC] - the first address including city, postcode, sate and country from the guests tab of the booking including cancelled bookings in European format
 
[GUESTSBFULLADDRESSSBR1] - the first address including city, postcode, sate and country from the guests tab of the booking in European format
[GUESTSNUMBOOKINGS1] - the total number of bookings made by the first guest, a group booking counts as one booking.
[GUESTSNUMSTAYS1] - the total number of bookings not cancelled and not in the future made by the first guest, a group booking counts as one booking.
===Cancellation, Management and Guest Login===[CANCELURLGUESTSCUSTOMQ1S] - URL answer to view and cancel bookings custom question 1 for all guests
[CANCELDATEGUESTSCUSTOMQ1SINC] - date until when the booking is cancellable displaying a phraseanswer to custom question 1 for all guests including cancelled bookings
[CANCELDATEYYYY-MM-DDGUESTSCUSTOMQ2S] - date until when the booking is cancellable displaying a date. If the date is in the past 00-00-0000 will be shownanswer to custom question 2 for all guests
[DAYSTOCANCELGUESTSCUSTOMQ2SINC] - number of days until booking can be answer to custom question 2 for all guests including cancelled bookings
[CANCELUNTILGUESTSCUSTOMQ3S] - 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 3 for all guests
[GUESTLOGINGUESTSCUSTOMQ3SINC] - URL answer to view custom question 3 for all guests including cancelled bookings
[TURNOVERDAYSGUESTSCUSTOMQ4S] - days until next arrival into the same unit.answer to custom question 4 for all guests
==Date and Time==[GUESTSCUSTOMQ4SINC] - answer to custom question 4 for all guests including cancelled bookings
Many date template variables support PHP strftime format strings between {} brackets [GUESTSCUSTOMQ5S] - 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 5 for all guests
[GUESTSCUSTOMQ5SINC] - answer to custom question 5 for all guests including cancelled bookings
[CURRENTDATEGUESTSCUSTOMQ6S] - current dateanswer to custom question 6 for all guests
[CURRENTDATEYYYY-MM-DDGUESTSCUSTOMQ6SINC] - current date answer to custom question 6 for all guests including cancelled bookings in YYYY-MM-DD format
[CURRENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ7S] - current dateanswer to custom question 7 for all guests
[CURRENTDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ7SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 7 for all guests including cancelled bookings
[CURRENTTIMEGUESTSCUSTOMQ7S] - current time and the display can be any valid PHP strftime format string.answer to custom question 8 for all guests
[CURRENTTIME:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ8SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 8 for all guests including cancelled bookings
[DAYSTOCHECKINGUESTSCUSTOMQ9S] - number of days until check-inanswer to custom question 9 for all guests
[INADVANCEGUESTSCUSTOMQ9SINC] - number of days between booking and check-inanswer to custom question 9 for all guests including cancelled bookings
[DAYSBETWEEN:2019-11-01:2019-11-10GUESTSCUSTOMQ10S] - 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 10 for calculation.all guests
Example: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]GUESTSCUSTOMQ10SINC] will calculate the days between 5 days after check-in and today. answer to custom question 10 for all guests including cancelled bookings
===Cancellation, Management and Guest Login===[FIRSTNIGHT:{%A, %e %B, %Y}CANCELLEDTIME] - first night bookeddate when the booking was cancelled
[FIRSTNIGHTCANCELLEDTIME:+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.
[LASTNIGHT:{%A, %e %B, %Y}CANCELURL] - last night bookedURL to view and cancel bookings
[LASTNIGHT:+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
[LEAVINGDAY:{%A, %e %B, %Y}CANCELDATEYYYY-MM-DD] - checkdate until when the booking is cancellable displaying a date. If the date is in the past 00-00-out 0000 will be shown
[LEAVINGDAY:+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
[BOOKINGDATE:{%A, %e %B, %Y}CANCELUNTIL] - booking dateshows the number of days between check-in and the last day which can be cancelled. If guest can always cancel it shows 0, if guest can never cancel it shows 9999
[BOOKINGDATE:+1day{%A, %e %B, %Y}GUESTLOGIN] - 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.URL to view bookings
[MODIFYDATE:{%A, %e %B, %Y}TURNOVERDAYS] - last booking modification date/time, days until next arrival into the display can be any valid PHP strftime format string.same unit
[PAYMENTDATE:{%A, %e %B, %Y}VACANTDAYS] - most recent payment date days from previous checkout to check in of current booking
[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000] - optional date offset ==Date and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string. The second parameter specifies the payment to show, 0 or missing means the most recent payment. The third parameter specifies the invoicee.Time==
[FORMATDATE:[any template variable that creates a date]{%A, %e %B, %Y}CURRENTDATE] - format the date in the strftime format. The date value could be included by inserting a different template variable containing a current date.
== Booking Group variables ===== Custom Booking Group Table ===create your own booking group list by specifying the columns [CURRENTDATEYYYY-MM-DD] - current date in the order you want them to appear.YYYY-MM-DD format
for example: [BOOKGROUPCURRENTDATE:PROP_ROOM_BREF_NAME{%A, %e %B, %Y}] - current date
column parameters[CURRENTDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
100% = 100% width[CURRENTTIME] - current time and the display can be any valid PHP strftime format string.
ADDR = Booking address[CURRENTTIME:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
ADUL= the [DAYSTOCHECKIN] - number of adultsdays until check-in
ARIV = Arrival date[INADVANCE] - number of days between booking and check-in
BOPR = Bold prices[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.
BREF = Booking numberExample: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today.
CITY = Booking city [FIRSTNIGHT:{%A, %e %B, %Y}] - first night booked
CHAC = Charges with currency symbol[FIRSTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
CHAR = Charges[LASTNIGHT:{%A, %e %B, %Y}] - last night booked
CHIL = Number [LASTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of childrendays and the display can be in a custom format.
COUN = Booking country [LEAVINGDAY:{%A, %e %B, %Y}] - check-out
DEPT = Departure [LEAVINGDAY:+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 [BOOKINGDATE:{%A, %e %B, %Y}] - booking date
EXSP = extra space between rows[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.
FLAG = Booking flag text[MODIFYDATE:{%A, %e %B, %Y}] - last booking modification date/time, the display can be any valid PHP strftime format string.
FNAM = Booking first name[PAYMENTDATE:{%A, %e %B, %Y}] - most recent payment date
GADD = Guest address[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.
GCIT = Guest city[AUTHORIZEUNTIL] - date until which a card is authorized, this is extracted from the most recent authorize booking info code.
GCOM = Guest company[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.
GCOU = Guest country[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.
GFLA = Guest flag text
GFNA = Guest first name The following codes can be used in any order between the {} brackets to create custom time and date formats.
GLNA = Guest last %a An abbreviated textual representation of the day Sun through Sat %A A full textual representation of the day Sunday through Saturday %d Two-digit day of the month (with leading zeros) 01 to 31 %e Day of the month, with a space preceding single digits. 1 to 31 %j Day of the year, 3 digits with leading zeros 001 to 366 %u ISO-8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday) %w Numeric representation of the day of the week 0 (for Sunday) through 6 (for Saturday) %U Week number of the given year, starting with the first Sunday as the first week 13 (for the 13th full week of the year) %V ISO-8601:1988 week number of the given year, starting with the first week of the year with at least 4 weekdays, with Monday being the start of the week 01 through 53 (where 53 accounts for an overlapping week) %W A numeric representation of the week of the year, starting with the first Monday as the first week 46 (for the 46th week of the year beginning with a Monday) %b Abbreviated month name, based on the locale Jan through Dec %B Full month name, based on the locale January through December %h Abbreviated month name, based on the locale (an alias of %b) Jan through Dec %m Two digit representation of the month 01 (for January) through 12 (for December) %C Two digit representation of the century (year divided by 100, truncated to an integer) 19 for the 20th Century %g Two digit representation of the year going by ISO-8601:1988 standards (see %V) Example: 09 for the week of January 6, 2009 %G The full four-digit version of %g Example: 2008 for the week of January 3, 2009 %y Two digit representation of the year Example: 09 for 2009, 79 for 1979 %Y Four digit representation for the year Example: 2038 %H Two digit representation of the hour in 24-hour format 00 through 23 %k Hour in 24-hour format, with a space preceding single digits 0 through 23 %I Two digit representation of the hour in 12-hour format 01 through 12 %l (lower-case 'L') Hour in 12-hour format, with a space preceding single digits 1 through 12 %M Two digit representation of the minute 00 through 59 %p UPPER-CASE 'AM' or 'PM' based on the given time Example: AM for 00:31, PM for 22:23 %P lower-case 'am' or 'pm' based on the given time Example: am for 00:31, pm for 22:23 %r Same as "%I:%M:%S %p" Example: 09:34:17 PM for 21:34:17 %R Same as "%H:%M" Example: 00:35 for 12:35 AM, 16:44 for 4:44 PM %S Two digit representation of the second 00 through 59 %T Same as "%H:%M:%S" Example: 21:34:17 for 09:34:17 PM %X Preferred time representation based on locale, without the date Example: 03:59:16 or 15:59:16 %z The time zone offset. Example: -0500 for US Eastern Time %Z The time zone abbreviation. Example: EST for Eastern Time %c Preferred date and time stamp based on locale Example: Tue Feb 5 00:45:10 2009 for February 5, 2009 at 12:45:10 AM %D Same as "%m/%d/%y" Example: 02/05/09 for February 5, 2009 %F Same as "%Y-%m-%d" (commonly used in database datestamps) Example: 2009-02-05 for February 5, 2009 %s Unix Epoch Time timestamp (same as the time() function) Example: 305815200 for September 10, 1979 08:40:00 AM %x Preferred date representation based on locale, without the time Example: 02/05/09 for February 5, 2009 %n A newline character ("\n") %t A Tab character ("\t") %% A literal percentage character ("%")
GMOB = Guest mobile= 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.
GNAM = Guest full namefor example: [BOOKGROUP:PROP_ROOM_BREF_NAME]
GEMA = Guest Emailcolumn parameters
GNOT 100% = Guest note100% width
GPOS ADDR = Guest postcodeBooking address
GREF ADUL= Guest Idthe number of adults
GSTA ARIV = Guest stateArrival date
GTEL BOPR = Guest phoneBold prices
ICAN BREF = Include cancelled bookingsBooking number
LNAM CITY = Booking last namecity
MOBI CHAC = Booking mobileCharges with currency symbol
NAME CHAR = Booking full nameCharges
NOHE CHIL = no headerNumber of children
NOTE COUN = Booking notecountry
ONAM DEPT = Offer Name Departure date
ONLY EMAI = Just show the one bookingBooking Email
PAIC EXSP = Payment amount with currency symbolextra space between rows
PAID FLAG = Paid amountBooking flag text
PEOP FNAM = Number of guestsBooking first name
PHON GADD = Booking phoneGuest address
POST GCIT = Booking postcodeGuest city
PROP GCOM = Property nameGuest company
RDE0 GCOU = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTGuest country
RDE1 GFLA = Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUPGuest flag text
RNAM GFNA = Room Display Name ROOM = Room Guest first name
RQTY GLNA = shows the number of rooms for each booking and a total at the bottomGuest last name
STAT GMOB = Booking stateGuest mobile
STUS GNAM = StatusGuest full name
TOTA GEMA = Total priceGuest Email
UNI2 GNOT = Unit first additional information UNI3 = Unit second additional informationGuest note
UNIT GPOS = Unit nameGuest postcode
GREF = Guest Id
Connect the parameters with an underscore. GSTA = Guest state
Examples: GTEL = Guest phone
[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.ICAN = Include cancelled bookings
LNAM = Booking last name
[BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and room name in this order.MOBI = Booking mobile
==NAME = Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - create a table of guest names including room type for a group bookingfull name
[BOOKGROUPROOMLISTTOTAL] - create a table of guest names including room type for a group booking with guest totalsNOHE = no header
[BOOKGROUPROOMLISTCHARGETOTAL] - create a table of guest names including room type and charge for a group booking with guest totalsNOTE = Booking note
[BOOKGROUPNAMELIST] - create a table of guest names including room type and unit for a group bookingONAM = Offer Name
[BOOKGROUPNAMELISTTOTAL] - create a table of guest names including room type and unit for a group ONLY = Just show the one booking with guest totals
[BOOKGROUPNAMELISTCHARGETOTAL] - create a table of guest names including room type and unit and charge for a group booking PAIC = Payment amount with guest totalscurrency symbol
[BOOKGROUPUNITLIST] - create a table of guest names including unit for a group bookingPAID = Paid amount
[BOOKGROUPUNITLISTTOTAL] - create a table PEOP = Number of guest names including unit for a group booking with guest totalsguests
[BOOKGROUPUNITLISTCHARGETOTAL] - create a table of guest names including unit and charge for a group booking with guest totalsPHON = Booking phone
POST == Invoice Variables ==[INVOICENUMBER] - invoice numberBooking postcode
[INVOICENUMBERS] - invoice number if invoicees are involvedPROP = Property name
[INVOICEDATE] - invoice dateRDE0 = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[INVOICEDATERDE1 = Room description 1 from {{#fas:+1day{%A, %e %B, %Ycog}}] - 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. === Invoice Values ===These template variables will display a value form the invoice.(SETTINGS) PROPERTIES> ROOMS > SETUP
RNAM =Room Display Name ROOM === Custom Invoice Values====You have the option to create a custom invoice variable to display a value from an invoice. Available content variables are: Room name
CHA - chargesRQTY = shows the number of rooms for each booking and a total at the bottom
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 STAT = Booking state
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the languageSTUS = Status
DP0 - no decimal placesTOTA = Total price
DP1 - 1 decimal placeUNI2 = Unit first additional information UNI3 = Unit second additional information
DP2 - 2 decimal placesUNIT = Unit name
DP3 - 3 decimal places
DP4 - 4 decimal places Connect the parameters with an underscore.
DESsome description - sum of values with "some description"Examples:
INV - invoicee, add the invoicee number at [BOOKGROUP:PROP_ROOM_BREF_NAME] will display the end. Example: INV20 to show invoicee number 20property name, INV0 will show items not assigned to an invoiceeroom name, INV-1 will show all items from the booking regardless of invoiceenumber and guest name in this order. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking
IT1 - item 1 in the invoice
IT2 - [BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and item 2 room name in the invoice this order.
IT3 === Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - item 3 in the invoicecreate a table of guest names including room type for a group booking
IT4 [BOOKGROUPROOMLISTTOTAL] - item 4 in the invoicecreate a table of guest names including room type for a group booking with guest totals
IT5 [BOOKGROUPROOMLISTCHARGETOTAL] - item 5 in the invoicecreate a table of guest names including room type and charge for a group booking with guest totals
MUL [BOOKGROUPNAMELIST] - multiplier. Example: MUL1.2 will multiply all prices by 1.2 create a table of guest names including room type and unit for a group booking
NUM [BOOKGROUPNAMELISTTOTAL] - show create a table of guest names including room type and unit for a group booking with decimal place (for scripts)guest totals
THO [BOOKGROUPNAMELISTCHARGETOTAL] - thousands separator. THO. will show create a dot as thousand separator. If nothing is set the system will use the default table of guest names including room type and unit and charge for the language a group booking with guest totals
UPS1 [BOOKGROUPUNITLIST] - upsell 1create a table of guest names including unit for a group booking
UPS2 [BOOKGROUPUNITLISTTOTAL] - upsell 2create a table of guest names including unit for a group booking with guest totals
UPS3 [BOOKGROUPUNITLISTCHARGETOTAL] - upsell 3create a table of guest names including unit and charge for a group booking with guest totals
UPS4 == Invoice Variables ==[INVOICENUMBER] - upsell 4invoice number
UPS5 [INVOICENUMBERS] - upsell 5invoice number if invoicees are involved
ONE [INVOICEDATE] - shows only items from the specified booking (not the booking group)invoice date
PAY [INVOICEDATES] - shows payments invoice date invoice number if invoicees are involved
QTY [INVOICEDATE:+1day{%A, %e %B, %Y}] - shows quantityoptional 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.
SEX [INVOICEDATES:+1day{%A, %e %B, %Y}] - status excluded. Calculate the balance of all optional date offset and display format - invoice date invoice items except for the ones with these statusnumber if invoicees are involved, The offset can be any plus or minus any number of days and the status items display can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this statusany valid PHP strftime format string.
SIN - status included. Calculate === Invoice Values ===These template variables will display a value form the balance of all invoice items with matching status, the status items can be a comma separated list. Example: SIN status1,status2,status4 will only show items with this status.
VAT - VAT summary==== Custom Invoice Values====You have the option to create a custom invoice variable to display a value from an invoice. [INVOICEVAL with a selection of the following variables specifies the calculation:
CHA - charges
Connect CON - currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the variables with an underscoreprices by 1. 234
ExamplesDEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the language
[INVOICEVAL:PAY_THO] will show payments with a thousands separatorDP0 - no decimal places
[INVOICEVAL:UPS1_UPS1] will show the sum of upsell DP1 - 1 and upsell 2decimal place
==== Standard Invoice Values====[INVOICEBALANCE] DP2 - invoice balance2 decimal places
[INVOICEBALANCE:50%] DP3 - percentage of invoice balance3 decimal places
[INVOICEBALANCE:DP4 -100] - invoice balance with offset amount4 decimal places
[INVOICEBALANCENUM] DES - As per [INVOICEBALANCE] 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"
[INVOICEBALANCENUMINV - invoicee, add the invoicee number at the end. Example:] INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV- As per 1 will show all items from the booking regardless of invoicee. You can combine INV[INVOICEBALANCE:BOOKINGINVOICEEID]] but to add the value is displayed with a decimal point and no thousands separator (for calculation).invoicee from the booking
[INVOICEPARTBALANCE:status1,status2,!status4:10%] IT1 - Calculate item 1 in the balance of all invoice items with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset is optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offset.
[INVOICEPARTBALANCENUM:status1,status2,status4:10%] IT2 - As per INVOICEPARTBALANCE but item 2 in the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEBALANCE1] IT3 - item 3 in the invoice balance of one booking only, not the booking group
[INVOICEBALANCE1NUM] IT4 - As per [INVOICEBALANCE1] but item 4 in the value is displayed with a decimal point and no thousands separator (for calculation)invoice
[INVOICECHARGES] IT5 - item 5 in the invoice sum of all charges
[INVOICECHARGESMUL - multiplier. Example:50%] - invoice sum of MUL1.2 will multiply all charges with percentage multiplierprices by 1.2
[INVOICECHARGES:NUM -100] - invoice sum of all charges show with offset decimal place (for scripts)
[INVOICECHARGESNUM] THO - As per [INVOICECHARGES] 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
[INVOICECHARGESNUM:] UPS1 - As per [INVOICECHARGES:] but the value is displayed with a decimal point and no thousands separator (for calculation)upsell 1
[INVOICEPARTCHARGES:status1,status2,!status4:10%] UPS2 - Calculate the balance of all invoice charges with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offset.upsell 2
[INVOICEPARTCHARGESNUM:status1,status2,status4:10%] UPS3 - As per INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculation).upsell 3
[INVOICEPAYMENTS] UPS4 - invoice sum of all payments upsell 4
[INVOICEPAYMENTS:50%] UPS5 - invoice sum of all payments with percentage multiplier upsell 5
[INVOICEPAYMENTS:ONE -100] - invoice sum of all payments with offset shows only items from the specified booking (not the booking group)
[INVOICEPAYMENTSNUM] PAY - As per [INVOICEPAYMENTS] but the value is displayed with a decimal point and no thousands separator (for calculation)shows payments
[INVOICEPAYMENTSNUM:50%] QTY - As per [INVOICEPAYMENTS:50%] but the value is displayed with a decimal point and no thousands separator.shows quantity
[INVOICEPARTPAYMENTS:status1,status2,!status4:10%] SEX - status excluded. Calculate the balance of all invoice payments items except for the ones with matching these status and apply optional multiplier or offset. The , the status items can be a comma separated list. To exclude status Example: SEX status1,status2,status4 will not show items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offsetthis status.
[INVOICEPARTPAYMENTSNUMSIN - status included. Calculate the balance of all invoice items with matching status, the status items can be a comma separated list. Example:SIN status1,status2,status4:10%] - As per INVOICEPARTCHARGES but the value is displayed will only show items with a decimal point and no thousands separator (for calculation)this status.
[INVOICEPENDPAY] VAT - all (auto and manual) pending payments including failedVAT summary
[INVOICEPENDPAYNUM] - all (auto and manual) pending payments including failed but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAY1234] - all (auto and manual) pending payments including failed for Connect the specified invoicee (-1 will include all items regardless of invoicee)variables with an underscore.
[INVOICEPENDPAYNUM1234] - all (auto and manual) pending payments including failed for the specified invoicee (-1 will include all items regardless of invoicee) The value is displayed with a decimal point and no thousands separator (for calculation).Examples:
[INVOICEPENDPAYAUTOINVOICEVAL:PAY_THO] - auto pending will show payments before due date with a thousands separator
[INVOICEPENDPAYAUTONUMINVOICEVAL:UPS1_UPS2] - auto pending payments before due date but will show the value is displayed with a decimal point sum of upsell 1 and no thousands separator (for calculation).upsell 2
==== Standard Invoice Values====[INVOICEPENDPAYAUTO1234INVOICEBALANCE] auto pending payments before due date for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (-1 will include all items regardless of invoicee)invoice balance
[INVOICEPENDPAYAUTONUM1234INVOICEBALANCE:50%] auto pending payments before due date for the specified invoicee but the value is displayed with a decimal point and no thousands separator (for calculation) (-1 will include all items regardless percentage of invoicee)invoice balance
[INVOICEPENDPAYFAILINVOICEBALANCE:-100] - failed pending payments (all also past)invoice balance with offset amount
[INVOICEPENDPAYFAILNUMINVOICEBALANCENUM] - failed pending payments (all also past) As per [INVOICEBALANCE] but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYFAIL234INVOICEBALANCENUM:] - failed pending payments As per [INVOICEBALANCE:] but the value is displayed with a decimal point and no thousands separator (all also past) for the specified invoicee (-1 will include all items regardless of invoiceecalculation).
[INVOICEPENDPAYFAILNUM234INVOICEPARTBALANCE:status1,status2,!status4:10%] - failed pending payments (Calculate the balance of all also past) 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 the example !status1. The offset is optional and can be specified invoicee but the value is displayed with after a decimal point and no thousands separator second colon (for calculation:) and it can be a percentage by ending the number with the percent (-1 will include all items regardless of invoicee%)symbol or a numeric value offset.
[INVOICEPENDPAYRULE1INVOICEPARTBALANCENUM:status1,status2,status4:10%] - shows all pending payment for this rule As per INVOICEPARTBALANCE but the value is displayed with a decimal point and no thousands separator (exchange 1 for the rule numbercalculation).
[INVOICEPENDPAYRULENUM1INVOICEBALANCE1] - shows all pending payment for this rule (exchange 1 for invoice balance of one booking only, not the rule number) displayed with a decimal point and no thousands separator (for calculation)booking group
[INVOICEPENDPAYMANUALINVOICEBALANCE1NUM] - manual pending payments As per [INVOICEBALANCE1] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEPENDPAYMANUALNUMINVOICECHARGES] - manual pending payments but the value is displayed with a decimal point and no thousands separator (for calculation).invoice sum of all charges
[INVOICEPENDPAYMANUALNOTDUEINVOICECHARGES:50%] manual pending payments before due date - invoice sum of all charges with percentage multiplier
[INVOICEPENDPAYMANUALNOTDUENUMINVOICECHARGES:-100] manual pending payments before due date but the value is displayed - invoice sum of all charges with a decimal point and no thousands separator (for calculation).offset
[INVOICEPENDPAYMANUALOVERDUEINVOICECHARGESNUM] manual pending payments after due date - As per [INVOICECHARGES] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEPENDPAYMANUALOVERDUENUMINVOICECHARGESNUM:] - As per [INVOICECHARGES:] manual pending payments after due date but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICECREDITSINVOICEPARTCHARGES:status1,status2,!status4:10%] - invoice sum Calculate the balance of all credit invoice charges with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (negative items%)symbol or a numeric value offset.
[INVOICECREDITSINVOICEPARTCHARGESNUM:50status1,status2,status4:10%] - invoice sum of all credit items As per INVOICEPARTCHARGES but the value is displayed with percentage multiplier a decimal point and no thousands separator (for calculation).
[INVOICECREDITS:-100INVOICEPAYMENTS] - invoice sum of all credit items with offset payments
[INVOICECREDITSNUMINVOICEPAYMENTS:50%] - As per [INVOICECREDITS] but the value is displayed invoice sum of all payments with a decimal point and no thousands separator (for calculation)percentage multiplier
[INVOICECREDITSNUMINVOICEPAYMENTS:-100] - As per [INVOICECREDITS:] but the value is displayed invoice sum of all payments with a decimal point and no thousands separator (for calculation)offset
[INVOICEDEBITSINVOICEPAYMENTSNUM] - invoice sum of all debit items As per [INVOICEPAYMENTS] but the value is displayed with a decimal point and no thousands separator (positive itemsfor calculation)
[INVOICEDEBITSINVOICEPAYMENTSNUM:50%] - invoice sum of all debit items As per [INVOICEPAYMENTS:50%] but the value is displayed with percentage multipliera decimal point and no thousands separator.
[INVOICEDEBITSINVOICEPARTPAYMENTS:-100status1,status2,!status4:10%] - invoice sum Calculate the balance of all debit invoice payments with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (%) symbol or a numeric value offset.
[INVOICEDEBITSNUMINVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] - As per [INVOICEDEBITS] INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculations) (for calculationscalculation).
[INVOICEDEBITSNUM:INVOICEPENDPAY] - As per [INVOICEDEBITS:] but the value is displayed with a decimal point all (auto and no thousands separator (for calculationsmanual)pending payments including failed
[INVOICEVATINVOICEPENDPAYNEXTDATE] - invoice sum date of all vat valuethe next pending payment
[INVOICEVATNUMINVOICEPENDPAYNEXTDATE:] - invoice sum date of all vat value for calculations)the next pending payment display can be any valid PHP strftime format string. Information about PHP strftime Strings can be find found here: http://php.net/manual/de/function.strftime.php
[INVOICEFIRSTITEMINVOICEPENDPAYNUM] - price of all (auto and manual) pending payments including failed but the item listed first in the invoicevalue is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEFIRSTITEMNUMINVOICEPENDPAY1234] - price of the item listed first 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)
[INVOICESECONDITEMINVOICEPENDPAYNUM1234] - all (auto and manual) pending payments including failed for the specified invoicee (- price 1 will include all items regardless of the item listed second in the invoiceinvoicee) The value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICESECONDITEMNUMINVOICEPENDPAYAUTO] - price of the item listed second in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations) auto pending payments before due date
[INVOICETHIRDITEMINVOICEPENDPAYAUTONUM] - auto - price of the item listed third in pending payments before due date but the invoicevalue is displayed with a decimal point and no thousands separator (for calculation).
[INVOICETHIRDITEMNUMINVOICEPENDPAYAUTO1234] - price of auto pending payments before due date for the item listed third in the invoice 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)
[INVOICEUPSELL0INVOICEPENDPAYAUTONUM1234] 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) (- base price without upsell 1 will include all items or other charges added laterregardless of invoicee)
[INVOICEUPSELLNUM0INVOICEPENDPAYFAIL] - as per [INVOICEUPSELL1] but the value is displayed with a decimal point and no thousands separator failed pending payments (for calculationsall also past)
[INVOICEUPSELL1INVOICEPENDPAYFAILNUM] - failed pending payments (all also past) 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)
[INVOICEUPSELLNUM1INVOICEPENDPAYFAIL234] - as per [INVOICEUPSELL1] but failed pending payments (all also past) 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)
[INVOICEUPSELLQTY1INVOICEPENDPAYFAILNUM234] - quantity 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)
[INVOICEUPSELLNAME1INVOICEPENDPAYRULE1] - name of shows all pending payment for this rule (exchange 1 for the headline field of upsell item 1 (rule number can be between 1 to 20)
[INVOICEUPSELLSTATUS1INVOICEPENDPAYRULENUM1] - stautus of shows all pending payment for this rule (exchange 1 for the headline field of upsell item 1 rule number) displayed with a decimal point and no thousands separator (number can be between 1 to 20for calculation)
[INVOICEUPSELLHEADLINE1INVOICEPENDPAYMANUAL] - - headline (name and status if used of upsell item 1 (number can be between 1 to 20)manual pending payments
[INVOICEUPSELLDESCRIPTION1INVOICEPENDPAYMANUALNUM] - - description of upsell item 1 manual pending payments but the value is displayed with a decimal point and no thousands separator (number can be between 1 to 20for calculation).
[INVOICEUPSELLAMOUNTNUM1INVOICEPENDPAYMANUALNOTDUE] - amout of upsell item 1 manual pending payments before due date
[INVOICEPENDPAYMANUALNOTDUENUM] manual pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYMANUALOVERDUE] manual 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)
[INVOICEUPSELLTYPE1INVOICECREDITS] - type invoice sum of upsell item 1 all credit items (negative items)
[INVOICEUPSELLPER1INVOICECREDITS:50%] - per invoice sum of upsell item 1 all credit items with percentage multiplier
[INVOICEUPSELLPERIOD1INVOICECREDITS:-100] - period invoice sum of upsell item 1 all credit items with offset
[INVOICECREDITSNUM] - As per [INVOICECREDITS] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEEXTRAITEMDESC1INVOICECREDITSNUM:] - Name 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)
[INVOICEEXTRAITEM1INVOICEDEBITS] - value invoice sum of extra invoice item 1 all debit items (number can be between 0 to 20positive items) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICEEXTRAITEM1INVOICEDEBITS: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 debit items are entered. with percentage multiplier
[INVOICEEXTRAITEMNUM1INVOICEDEBITS:-100] - as per [INVOICEEXTRAITEM1] but the value is displayed invoice sum of all debit items with a decimal point and no thousands separator (for calculations).offset
[INVOICEEXTRAITEMQTY1INVOICEDEBITSNUM] - quantity of extra invoice item 1 As per [INVOICEDEBITS] but the value is displayed with a decimal point and no thousands separator (number can be between 0 to 20for calculations) (for calculations) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICEGROSSINVOICEDEBITSNUM:1] - gross 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)
INVOICEGROSSNUM:1[INVOICEVAT] gross amount - invoice sum of the inserted VAT rate (number is the VAT rate)all vat value
[INVOICENET:1INVOICEVATNUM] - net amount invoice sum of the inserted VAT rate (number is the VAT rateall vat value for calculations)
[INVOICENETNUM:1INVOICEFIRSTITEM] - net amount price of the inserted VAT rate (number is item listed first in the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)invoice
[INVOICEVAT:1INVOICEFIRSTITEMNUM] - VAT amount price of the inserted VAT rate item listed first in the invoice but the value is displayed with a decimal point and no thousands separator (number is the VAT ratefor calculations)
[INVOICEVATNUM:1INVOICESECONDITEM] VAT amount - price of the inserted VAT rate (number is item listed second in the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)invoice
[INVOICEITEMBYDESC:SearchtermINVOICESECONDITEMNUM] - searches price of the item listed second in the invoice for items but the value is displayed with this search term a decimal point and adds them upno thousands separator (for calculations)
[INVOICEITEMBYDESCNUM:SearchtermINVOICETHIRDITEM] - searches price of the item listed third 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:SearchtermINVOICETHIRDITEMNUM] - searches price of the payments for items item listed third in the invoice but the value is displayed with this search term a decimal point and adds them upno thousands separator (for calculations)
[INVOICEPAYMENTBYDESCNUM:SearchtermINVOICEFOURTHITEM] - searches price of the item listed fourth 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 ====[INVOICETABLEINVOICEFOURTHITEMNUM] - price of the item listed fourth in the invoice tablebut the value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICETABLEVATINVOICEFIFTHITEM] - price of the item listed fifth in the invoice table with vat information and vat summary
[INVOICETABLE:$1.1$INVOICEFIFTHITEMNUM] - price of the item listed fifth 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,!status4INVOICEUPSELL0] - Invoice table showing only base price without upsell 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. or other charges added later
[INVOICETABLE2INVOICEUPSELLNUM0] - invoice table as per [INVOICEUPSELL1] but the value is displayed with status fielda decimal point and no thousands separator (for calculations)
[INVOICETABLE2:$1.1$INVOICEUPSELL1] - invoice table with status field and currency multiplier with optional new currency symbol before or after price.value of upsell item 1 (number can be between 0 to 20)
[INVOICETABLECHARGESINVOICEUPSELLNUM1] - invoice table showing charges onlyas per [INVOICEUPSELL1] but the value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICETABLECHARGESINVOICEE1234INVOICEUPSELLQTY1] - invoice table showing charges only assigned quantity of upsell item 1 (number can be between 1 to the specified invoicee, specify the invoicee Id number.20)
[INVOICETABLENOTOTINVOICEUPSELLNAME1] - invoice table without grand totalname of the headline field of upsell item 1 (number can be between 1 to 20)
[INVOICETABLENOTOT:$INVOICEUPSELLSTATUS1] - stautus of the headline field of upsell item 1.(number can be between 1$] - invoice table without grand total and currency multiplier with optional new currency symbol before or after price.to 20)
[INVOICETABLENOTOT2INVOICEUPSELLHEADLINE1] - invoice table with headline (name and status field without grand totalif used of upsell item 1 (number can be between 1 to 20)
[INVOICETABLENOTOT2:$1.1$INVOICEUPSELLDESCRIPTION1] - invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.description of upsell item 1 (number can be between 1 to 20)
[INVOICETABLEVAT:$1.1$INVOICEUPSELLAMOUNTNUM1] - invoice table with vat information and currency multiplier with optional new currency symbol before or after price.amout of upsell item 1
[INVOICETABLEVATCOMPACT] - compact version of invoice table with vat information and vat summary
[INVOICETABLEVATCOMPACT:$1.1$] - compact version of invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVATCOMPACTNOSUM] - compact version of invoice table with vat information without vat summary
[INVOICETABLEVATCOMPACTNOSUM:$1.1$INVOICEUPSELLTYPE1] - compact version type of invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.upsell item 1
[INVOICETABLEVATNOSUMINVOICEUPSELLPER1] - invoice table with vat information without vat summaryper of upsell item 1
[INVOICETABLEVATNOSUM:$1.1$INVOICEUPSELLPERIOD1] - invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.period of upsell item 1
[INVOICETABLEDATEVATNOSUM] - invoice table with vat information and date without vat summary
[INVOICETABLEDATEVATNOSUM:$1.1$INVOICEEXTRAITEMDESC1] - Name of extra invoice table with vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.item 1 (number can be between 0 to 20)
[INVOICETABLEVAT2INVOICEEXTRAITEM1] - value of extra invoice table with vat information and status field 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.
[INVOICETABLEVAT2:$1.1$INVOICEEXTRAITEM1] - value of extra invoice table with vat information and status field and vat summary and currency multiplier with optional new currency symbol before or after priceitem 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.
[INVOICETABLEVAT2NOSUMINVOICEEXTRAITEMNUM1] - invoice table as per [INVOICEEXTRAITEM1] but the value is displayed with vat information a decimal point and status field without vat summaryno thousands separator (for calculations).
[INVOICETABLEVAT2NOSUM:$1.1$INVOICEEXTRAITEMQTY1] - quantity of extra invoice table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or after priceitem 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.
[INVOICETABLEVATCHARGESINVOICEGROSS:1] - invoice table showing charges only gross amount of the inserted VAT rate (number is the VAT rate), value is displayed with vat information a decimal point and vat summaryno thousands separator (for calculations)
[INVOICETABLENOPRICEINVOICEGROSSNUM:1] - invoice table with no price informationgross amount of the inserted VAT rate (number is the VAT rate)
[INVOICETABLEINVOICEEINVOICENET:1] - invoice table excluding items assigned to an invoicee.net amount of the inserted VAT rate (number is the VAT rate)
[INVOICETABLEINVOICEE1234INVOICENETNUM:1] - invoice table for a specific invoicee, specify net amount of the invoicee Id inserted VAT rate (number.is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
[UPSELLTABLEINVOICEVAT:1] - table with all upsell itemsVAT amount of the inserted VAT rate (number is the VAT rate)
[UPSELLTABLEVATINVOICEVATNUM:1] - table VAT amount of the inserted VAT rate (number is the VAT rate), value is displayed with all upsell items with vat information a decimal point and vat summary no thousands separator (for calculations)
[UPSELLTABLENOREFUNDINVOICEITEMBYDESC:Searchterm] - table searches the invoice for items with all upsell items except refundable items this search term and adds them up
==== Custom Invoice Table ====You have [INVOICEITEMBYDESCNUM:Searchterm] - searches the option to create invoice for items with this search term and adds them up, value is displayed with a custom invoice table. Available content variables are: decimal point and no thousands separator (for calculations)
AMO [INVOICEPAYMENTBYDESC:Searchterm] - shows searches the net value (price x quantity)payments for items with this search term and adds them up
CEX [INVOICEPAYMENTBYDESCNUM:Searchterm] - charges excluded searches the payments for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator (charges will not be shownfor calculations)
CON - currency conversion. Example: CONEURUSD === Invoice Table ===These template varibles will convert the first currency (Euros) to the second currency (USD)display an invoice table. CON1.234 would multiply the prices by 1.234==== Standard Invoice Tables ====[INVOICETABLE] - invoice table
CUA [INVOICETABLEVAT] - currency symbol showing after the numbers. Example: CUA€ will show € after the figuresinvoice table with vat information and vat summary
CUB [INVOICETABLE:$1.1$] - invoice table and currency multiplier with optional new currency symbol showing before the numbersor after price. Example: CUB€ will show € before the figures
DAT [INVOICETABLEPART:status1,status2,!status4] - adds Invoice table showing only items with matching status. The status items can be a date column - you have the option to control the format of the date using [[Template_Variables#Date_and_Time|date and time variables]] comma separated list. To exclude status items prefix them with an exclamation mark, for example DAT{%d-%m-%Y}!status1.
DEC [INVOICETABLE2] - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the languageinvoice table with status field
DP0 [INVOICETABLE2:$1.1$] - no decimal placesinvoice table with status field and currency multiplier with optional new currency symbol before or after price.
DP1 [INVOICETABLECHARGES] - 1 decimal placeinvoice table showing charges only
DP2 [INVOICETABLECHARGESINVOICEE1234] - 2 decimal placesinvoice table showing charges only assigned to the specified invoicee, specify the invoicee Id number.
DP3 [INVOICETABLENOTOT] - 3 decimal placesinvoice table without grand total
DP4 [INVOICETABLENOTOT:$1.1$] - 4 decimal placesinvoice table without grand total and currency multiplier with optional new currency symbol before or after price.
GAT [INVOICETABLENOTOT2] - sum for each columninvoice table with status field without grand total
GRP [INVOICETABLENOTOT2:$1.1$] - Group Totalsinvoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price. Displays the same items as a total
GRT [INVOICETABLEVAT:$1.1$] - Grand Total invoice table with vat information and currency multiplier with optional new currency symbol before or after price.
INV - invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV[INVOICETABLEVATCOMPACT] -1 will show all items from the booking regardless compact version of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the bookinginvoice table with vat information and vat summary
LAN [INVOICETABLEVATCOMPACT:$1.1$] - languagecompact version of invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price. Example LANDE will force the language to German
MUL [INVOICETABLEVATCOMPACTNOSUM] - multiplier. Example: MUL1.2 will multiply all prices by 1.2compact version of invoice table with vat information without vat summary
NIN [INVOICETABLEVATCOMPACTNOSUM:$1.1$] - do not show compact version of invoice number table with vat information without vat summary and invoice date on locked invoicescurrency multiplier with optional new currency symbol before or after price.
NOC [INVOICETABLEVATNOSUM] - charges will not be displayed but their invoice table with vat values are still calculated for the information without vat summary (VAT)
NOP [INVOICETABLEVATNOSUM:$1.1$] - payments will not be displayed invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
ONE [INVOICETABLEDATEVATNOSUM] - shows only items from the specified booking (not the booking group)invoice table with vat information and date without vat summary
ORB [INVOICETABLEDATEVATNOSUM:$1.1$] - order by booking, this keeps the items for each booking (room) together in the invoice tablewith vat information and date without vat summary and currency multiplier with optional new currency symbol before or after price.
PAA [INVOICETABLEVAT2] - shows a column invoice table with payment amountsvat information and status field and vat summary
PAY [INVOICETABLEVAT2:$1.1$] - shows payments invoice table with vat information and status field and vat summary and currency multiplier with optional new currency symbol before or after price.
PEN [INVOICETABLEVAT2NOSUM] - shows pending payments descriptioninvoice table with vat information and status field without vat summary
PPA [INVOICETABLEVAT2NOSUM:$1.1$] - shows pending payments amount invoice table with vat information and status field without vat summary and currency multiplier with optional new currency symbol before or after price.
PRI [INVOICETABLEVATCHARGES] - shows prices in a columninvoice table showing charges only with vat information and vat summary
QTY [INVOICETABLENOPRICE] - shows quantityinvoice table with no price information
SEX [INVOICETABLEINVOICEE] - status excluded. Calculate the balance of all invoice table excluding items except for the ones with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this statusassigned to an invoicee.
SIN [INVOICETABLEINVOICEE1234] - status included. Calculate the balance of all invoice items with matching statustable for a specific invoicee, specify the status items can be a comma separated list. Example: SIN status1,status2,status4 will only show items with this statusinvoicee Id number.
STA[UPSELLTABLE] - shows staustable with all upsell items
THO [UPSELLTABLEVAT] - thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the languagetable with all upsell items with vat information and vat summary
TOT [UPSELLTABLENOREFUND] - shows total amountstable with all upsell items except refundable items
VAA - shows VAT amounts==== Custom Invoice Table ====You have the option to create a custom invoice table. Available content variables are:
VAP AMO - shows VAT percentsthe net value (price x quantity)
VAT CEX - VAT summarycharges excluded (charges will not be shown)
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
Connect CUA - currency symbol showing after the variables with an underscorenumbers. Example: CUA€ will show € after the figures
ExamplesCUB - currency 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 [INVOICE:PRI_QTY_CUA€[Template_Variables#Date_and_Time|date and time variables]] will create an invoice table with price and quantity in Euros.for example DAT{%d-%m-%Y}
[INVOICEDEC - Decimal points. Example:PAY_TOT_CEX] DEC, will create an invoice table which will only show paymentsa comma as decimal point.If nothing is set the system will use the default for the language
[INVOICE:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] will create an invoice table with more information.DP0 - no decimal places
== Invoicee Variables ==[INVOICEEBALANCE] DP1 - invoice balance for unassigned invoice items.1 decimal place
[INVOICEEBALANCENUM] DP2 - invoice balance for unassigned invoice items displayed with a 2 decimal point and no thousands separator.places
[INVOICEEBALANCE1234] DP3 - invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).3 decimal places
[INVOICEEBALANCENUM1234] DP4 - invoice balance 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
[INVOICEECHARGES] GAT - invoice charges sum for unassigned invoice items.each column
[INVOICEECHARGESNUM] GRP - invoice charges for unassigned invoice Group Totals. Displays the same items displayed with as a decimal point and no thousands separator.total
[INVOICEECHARGES1234] GRT - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).Grand Total
[INVOICEECHARGESNUM1234] INV - invoice charges 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) displayed with a decimal point and no thousands separator.invoicee from the booking
[INVOICEEPAYMENTS] LAN - invoice payments for unassigned invoice itemslanguage.Example LANDE will force the language to German
[INVOICEEPAYMENTSNUM] MUL - invoice payments for unassigned invoice items displayed with a decimal point and no thousands separatormultiplier.Example: MUL1.2 will multiply all prices by 1.2
[INVOICEEPAYMENTS1234] NIN - do not show invoice payments for number and invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)date on locked invoices
[INVOICEEPAYMENTSNUM1234] NOC - invoice payments charges will not be displayed but their vat values are still calculated for invoice items assigned to invoicee 1234 the vat summary (change 1234 to the required Invoicee Id numberVAT)
[INVOICEENAME] NOP - name of the invoicee account the invoice is assigned to or blankpayments will not be displayed
[INVOICEECODE] ONE - code of shows only items from the invoicee account specified booking (not the invoice is assigned to or blankbooking group)
[INVOICEECURRENCY] ORB - currency of order by booking, this keeps the invoicee account items for each booking (room) together in the invoice is assigned to if it is not the property default or blanktable
[INVOICEETEMPLATE1] PAA - template value 1 of the invoice account the invoice is assigned to or blankshows a column with payment amounts
[INVOICEETEMPLATE2] PAY - template value 2 of the invoice account the invoice is assigned to or blankshows payments
[INVOICEETEMPLATE3] PEN - template value 3 of the invoice account the invoice is assigned to or blankshows pending payments description
[INVOICEETEMPLATE4] PPA - template value 4 of the invoice account the invoice is assigned to or blankshows pending payments amount
[INVOICEETEMPLATE5] PRI - template value 5 of the invoice account the invoice is assigned to or blankshows prices in a column
[INVOICEETEMPLATE6] QTY - template value 6 of the invoice account the invoice is assigned to or blankshows quantity
[INVOICEETEMPLATE7] SEX - template value 7 status excluded. Calculate the balance of all invoice items except for the invoice account ones with these status, the invoice is assigned to or blankstatus items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this status.
[INVOICEETEMPLATE8] SIN - template value 8 status included. Calculate the balance of the all invoice account items with matching status, the invoice is assigned to or blankstatus items can be a comma separated list. Example: SIN status1,status2,status4 will only show items with this status.
== Payment Request Variables ==[PAYURL] STA- Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.shows staus
[PAYURL:25%] THO - Creates thousands separator. THO. will show a payment url for dot as thousand separator. If nothing is set the system will use the payment request default for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.language
[PAYURL:200] TOT - Creates a payment url for the payment request url for a fixed amount. nt.shows total amounts
[PAYLINK] VAA - 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.shows VAT amounts
[PAYLINK:25%] VAP -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 VAT percents
[PAYLINK:200] VAT - Creates a payment link (HTML A tag) for the payment request) for a fixed amount.VAT summary
[PAYBUTTON] - Creates a payment button for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.
[PAYBUTTON:25%] - Creates a payment button for Connect the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emailsvariables with an underscore.
[PAYBUTTONExamples:200] - Creates a payment button for the payment request for a fixed amount.
[PAYPALURLINVOICE:PRI_QTY_CUA€] - Creates a Paypal payment url for the amount will create an invoice table with price and quantity in the booking deposit field if non zero, otherwise the outstanding balanceEuros.
[PAYPALURLINVOICE:25%PAY_TOT_CEX] - Creates a Paypal payment url for a percentage of the outstanding balance. Use 100% to specify the full outstanding balancewill create an invoice table which will only show payments.
[PAYPALURLINVOICE:200PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter create an amountinvoice table with more information.
[PAYPALLINKINVOICE:SIN TRANSPORT] - Creates a Paypal payment link (HTML A tag) will create an invoice table with the Invoice item description for any items with the amount in the booking deposit field if non zero, otherwise the outstanding balanceStatus = Transport.
== Invoicee Variables ==[PAYPALLINK:25%INVOICEEBALANCE] - Creates a Paypal payment link (HTML A tag) invoice balance for a percentage of the outstanding balance. Use 100% to specify the full outstanding balanceunassigned invoice items.
[PAYPALLINK:200INVOICEEBALANCENUM] - Creates a Paypal payment link (HTML A tag) invoice balance for unassigned invoice items displayed with a fixed amount. A zero amount will cause paypal to provide a field to enter an amountdecimal point and no thousands separator.
[PAYPALBUTTONINVOICEEBALANCE1234] - Creates a Paypal payment button invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emailsrequired Invoicee Id number).
[PAYPALBUTTON:25%INVOICEEBALANCENUM1234] - Creates a Paypal payment button invoice balance for a percentage of the outstanding balance. Use 100% invoice items assigned to invoicee 1234 (change 1234 to specify the full outstanding balance. Not recommended for emailsrequired Invoicee Id number) displayed with a decimal point and no thousands separator.
[PAYPALBUTTON:200INVOICEECHARGES] - Creates a Paypal payment button invoice charges 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 [INVOICEECHARGESNUM] - invoice charges 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 ==[INVOICEECHARGES1234] - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).
[REPLACE|searchForThisText|replaceWithThisText|textToSearchINVOICEECHARGESNUM1234] - replace "searchForThisText" invoice charges 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.
== iCal Links ==These template variables will create iCal links which allow the booking to be added to a calendar[INVOICEEPAYMENTS] - invoice payments for unassigned invoice items.
[ICALURLINVOICEEPAYMENTSNUM] - Calendar linkinvoice payments for unassigned invoice items displayed with a decimal point and no thousands separator.
[ICALURL:16INVOICEEPAYMENTS1234] - Calendar link with check-in hour. Replace '16' with invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the hour check-in starts.required Invoicee Id number)
[ICALURL::10INVOICEEPAYMENTSNUM1234] - Calendar link with check-out hour. Replace '10' with invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the hour with the hour check-out ends.required Invoicee Id number)
[ICALURL:::summary textINVOICEENAME] - Calendar link with a summary textname of the invoicee account the invoice is assigned to or blank
[ICALURL::::description textINVOICEECODE] - Calendar link with a descriptive textcode of the invoicee account the invoice is assigned to or blank
Example:[INVOICEECURRENCY] - currency of the invoicee account the invoice is assigned to if it is not the property default or blank
Calendar link with check[INVOICEENOTES] -in time 16:00, check-out time 10:00, value of the summary text "BookingNotes" and field for the description text "Sunny Hotel":invoicee
[ICALURL:16:10:Booking:Sunny HotelINVOICEETEMPLATE1]- template value 1 of the invoice account the invoice is assigned to or blank
== Mathematical Operators ==[INVOICEETEMPLATE2] - template value 2 of the invoice account the invoice is assigned to or blank
Place mathematical operators between two numbers <b>[INVOICEETEMPLATE3] - template value 3 of the invoice account the invoice is assigned to or between two template variables</b> that return a number.blank
[+INVOICEETEMPLATE4] - Example: 2 [+] 3 = 5template value 4 of the invoice account the invoice is assigned to or blank
[-INVOICEETEMPLATE5] - Example: template value 5 [-] 1 = 4of the invoice account the invoice is assigned to or blank
[*INVOICEETEMPLATE6] - Example: 3 [*] 4 = 12template value 6 of the invoice account the invoice is assigned to or blank
[/INVOICEETEMPLATE7] - Example: 15 [/] 5 = 3template value 7 of the invoice account the invoice is assigned to or blank
[MININVOICEETEMPLATE8] - Example: 2 [MIN] 3 = 2template value 8 of the invoice account the invoice is assigned to or blank
[MAXINVOICEETEMPLATE1BR] - Example: 2 [MAX] 3 = 3template value 1 of the invoice account the invoice is assigned to or blank with linkebreak
Brackets are not supported as a way to control processing order, [INVOICEETEMPLATE2BR] - template value 2 of the invoice account the processing order invoice is fixed as *, /, +, -, MIN, MAXassigned to or blank with linkebreak
[INVOICEETEMPLATE3BR] - template value 3 of the invoice account the invoice is assigned to or blank with linkebreak
=== Rounding and controlling decimal places ===[INVOICEETEMPLATE4BR] - template value 4 of the invoice account the invoice is assigned to or blank with linkebreak
==== Default ====[INVOICEETEMPLATE5BR] - template value 5 of the invoice account the invoice is assigned to or blank with linkebreak
2 [/INVOICEETEMPLATE6BR] 3 = 0.66666666666667- 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 the nearest integer ====or blank with linkebreak
2 [/.0INVOICEETEMPLATE8BR] 3 = 1- template value 8 of the invoice account the invoice is assigned to or blank with linkebreak
==== Rounding to 1,2,3 or 4 decimal place(s) ====
2 == Payment Request Variables ==[/.1PAYURL] 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.7
2 [/PAYURL:25%] - Creates a payment url for the payment request for a percentage of the outstanding balance.2] 3 = 0Use 100% to specify the full outstanding balance.67
2 [/PAYURL:200] - Creates a payment url for the payment request url for a fixed amount.3] 3 = 0nt.667
2 [/.4PAYLINK] 3 = 0- 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.6667
[PAYLINK:25%] -Creates a payment link (HTML A tag) for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
<b>This works on all operators including [MINPAYLINK:200] and [MAX]</b>- Creates a payment link (HTML A tag) for the payment request) for a fixed amount.
Note: Always use [PAYBUTTON] - Creates a payment button for the payment request for the amount in the booking deposit field if non zero, otherwise the template variables ending with NUMoutstanding balance. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbolNot recommended for emails.
== Currency Conversion ==[PAYBUTTON:25%] - Creates a payment button for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.
[CONVERTPAYBUTTON:EUR-USD200] - get the actual conversion rate between two currencies, this can be used with math functions to show alternative currency values. All currencies supported by Creates a payment button for the booking page currency selector can be usedpayment request for a fixed amount.
Example: [INVOICECHARGESNUMPAYPALURL] [*.2] [CONVERT:EUR-USD] will convert Creates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise the invoice charge value from Euros to USD with two decimal pointsoutstanding balance.
If you use the multiplier to convert currencies [PAYPALURL:25%] - Creates a Paypal payment url for channels: For example hotel id 123456 and a multiplier percentage of the outstanding balance. Use 100% to convert USD to EUR at todays rate:specify the full outstanding balance.
123456*[CONVERTPAYPALURL:USD200] -EUR]*Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.
or this to convert EUR to USD[PAYPALLINK] - 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:EUR25%] -USD]Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
123456*[CONVERTPAYPALLINK:USD200] -EUR][/]0Creates a Paypal payment link (HTML A tag) for a fixed amount.85 A zero amount will convert cause paypal to provide a field to Euros and divides the price by 0enter an amount.85 which raises it by circa 15%
==Account Variables (account of [PAYPALBUTTON] - Creates a Paypal payment button for the amount in the booking) ==deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.
[ACCOUNTIDPAYPALBUTTON:25%] - account id Creates a Paypal payment button for a percentage of the booked propertyoutstanding balance. Use 100% to specify the full outstanding balance. Not recommended for emails.
[ACCOUNTTEMPLATE1PAYPALBUTTON:200] - Account Template 1Creates 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: [ACCOUNTTEMPLATE2PAYURL:200:HST] - Account Template 2will hide Stripe
[ACCOUNTTEMPLATE3] - Account Template 3== Text Operators ==
[ACCOUNTTEMPLATE4REPLACE|searchForThisText|replaceWithThisText|textToSearch] - Account Template 4 replace "searchForThisText" with "replaceWithThisText" within the text "textToSearch"
[COMMISSIONLIMIT] - shows the available commission amount for the owner account of the booking
[MASTERACCOUNTTEMPLATE1SUBSTR|startCharacterNumber|numberOfCharacters|textToGetSubstringFrom] - Account Template 1 get a sub string from master account"textToGetSubstringFrom" starting at character "startCharacterNumber" (integer, 0 is the first char) with a length of "numberOfCharacters" (integer)
[MASTERACCOUNTTEMPLATE2] - Account Template 2 from master account
1. [MASTERACCOUNTTEMPLATE3SUBSTR|0|4|[GUESTPHONENUM]] - Account Template 3 from master account
[MASTERACCOUNTTEMPLATE4] - 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 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 Place mathematical operators between the two comparison values and the first text, a pipe | is used numbers <b>or between the two texts.Empty text is allowed if you do not want to display anything for template variables</b> that return a conditionnumber.
[IF=+] - Example:if this:equals this:display this text|otherwise display this text2 [+]3 = 5
[IFIN:if this:is contained in this-] - Example:display this text|otherwise display this text5 [-]1 = 4
[IFLIKE:if this:is like this*] - Example:display this text|otherwise display this text3 [*]4 = 12
[IF>:if this:is greater than this/] - Example:display this text|otherwise display this text15 [/]5 = 3
[IF>MIN] - Example: 2 [MIN] 3 =2 [MAX] - Example:if this:2 [MAX] 3 = 3 Brackets are not supported as a way to control processing order, the processing order is greater than or equal fixed as *, /, +, -, MIN, MAX If you want to use * and - in the same calculation, for example you need 20% of the result, then you will need to thisuse the calculation below as a * calculation will be calculated first.  [INVOICECHARGESNUM][*]0.2[-][INVOICESECONDITEMNUM][*]0.2[-][COMMISSIONNUM][*]0.2 <span style="color:display this text|otherwise display this text]#f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span> Property Template 1-8 and Room Template 1-8 can be used to set calculations. If using Room Templates to make a calculation, then use Room Template 8 before Room Template 7.
If you want to see the value 10. Set Room template 6 = [IF<:if this:is less than this:display this text|otherwise display this textROOMTEMPLATE7][+][ROOMTEMPLATE8] and enter 4 in Room template 7 and 6 in Room template 8.
You can set a calculation in Room Templates to show in Property Templates, but not the other way around. So "Property Template1" could pull the calculation of [IF<ROOMTEMPLATE6] and the result =:if this:is less than or equal to this:display this text|otherwise display this text]10.
[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]
=== Rounding and controlling decimal places ===
You can use IF variables inside other IF variables to create complex logic but the internal IF: must be processed before the external IF==== Default ==== There are special versions of each IF constructed with ^ and ~ separators like 2 [IF/] 3 =^this^this^same~different]The special versions are processed first so should be used as the internal IF so it's result can be processed by the outer if.The special versions can also be used if you expect : or | characters within your data0.66666666666667
IF's are processed in ==== Rounding to the following order.i.e. all the [IFnearest integer ====^ will be processed first, then all the [IFIN^ etc.
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 ==

Navigation menu