Changes

Jump to navigation Jump to search

Template Variables

13,019 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
[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
[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
[GUESTSNUMBOOKINGS1GUESTSAFULLADDRESSSBR1INC] - the total number first address including city, postcode, sate and country from the guests tab of bookings made by the first guest, a group booking counts as one booking.including cancelled bookings in international format
[GUESTSNUMSTAYS1GUESTSAFULLADDRESSSBR1] - the total number of bookings not cancelled first address including city, postcode, sate and not in country from the future made by guests tab of the first guest, a group booking counts as one booking.in International format
===Cancellation, Management and Guest Login===[CANCELLEDTIMEGUESTSBFULLADDRESSSBR1INC] - date when the first address including city, postcode, sate and country from the guests tab of the booking was including cancelled bookings in European format
CANCELLEDTIME:[GUESTSBFULLADDRESSSBR1] - date when the first address including city, postcode, sate and country from the guests tab of the booking was cancelled display can be any valid PHP strftime in European format string
[CANCELURLGUESTSNUMBOOKINGS1] - URL to view and cancel the total number of bookings made by the first guest, a group booking counts as one booking.
[CANCELDATEGUESTSNUMSTAYS1] - date until when the total number of bookings not cancelled and not in the future made by the first guest, a group booking is cancellable displaying a phrasecounts as one booking.
[CANCELDATEYYYY-MM-DDGUESTSCUSTOMQ1S] - date until when the booking is cancellable displaying a date. If the date is in the past 00-00-0000 will be shownanswer to custom question 1 for all guests
[DAYSTOCANCELGUESTSCUSTOMQ1SINC] - number of days until booking can be answer to custom question 1 for all guests including cancelled bookings
[CANCELUNTILGUESTSCUSTOMQ2S] - shows the number of days between check-in and the last day which can be canecelled. If guest can always cancel it shows 0, if guest can never cancel it shows 9999.answer to custom question 2 for all guests
[GUESTLOGINGUESTSCUSTOMQ2SINC] - URL answer to view custom question 2 for all guests including cancelled bookings
[TURNOVERDAYSGUESTSCUSTOMQ3S] - days until next arrival into the same unit.answer to custom question 3 for all guests
==Date and Time==[GUESTSCUSTOMQ3SINC] - answer to custom question 3 for all guests including cancelled bookings
Many date template variables support PHP strftime format strings between {} brackets [GUESTSCUSTOMQ4S] - answer to create custom date formats. Information on PHP strftime strings is available at [http://php.net/manual/en/function.strftime.php http://php.net/manual/en/function.strftime.php]question 4 for all guests
[GUESTSCUSTOMQ4SINC] - answer to custom question 4 for all guests including cancelled bookings
[CURRENTDATEGUESTSCUSTOMQ5S] - current dateanswer to custom question 5 for all guests
[CURRENTDATEYYYY-MM-DDGUESTSCUSTOMQ5SINC] - current date in YYYY-MM-DD formatanswer to custom question 5 for all guests including cancelled bookings
[CURRENTDATE:{%A, %e %B, %Y}GUESTSCUSTOMQ6S] - current dateanswer to custom question 6 for all guests
[CURRENTDATE:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ6SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 6 for all guests including cancelled bookings
[CURRENTTIMEGUESTSCUSTOMQ7S] - current time and the display can be any valid PHP strftime format string.answer to custom question 7 for all guests
[CURRENTTIME:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ7SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 7 for all guests including cancelled bookings
[DAYSTOCHECKINGUESTSCUSTOMQ7S] - number of days until check-inanswer to custom question 8 for all guests
[INADVANCEGUESTSCUSTOMQ8SINC] - number of days between booking and check-inanswer to custom question 8 for all guests including cancelled bookings
[DAYSBETWEEN:2019-11-01:2019-11-10GUESTSCUSTOMQ9S] - this template variable will calculate the number of days between the :: the dates need answer to be in yyyy-mm-dd format. Template variables can be used custom question 9 for calculation.all guests
Example: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}GUESTSCUSTOMQ9SINC]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today. answer to custom question 9 for all guests including cancelled bookings
[FIRSTNIGHT:{%A, %e %B, %Y}GUESTSCUSTOMQ10S] - first night bookedanswer to custom question 10 for all guests
[FIRSTNIGHT:+1day{%A, %e %B, %Y}GUESTSCUSTOMQ10SINC] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.answer to custom question 10 for all guests including cancelled bookings
===Cancellation, Management and Guest Login===[LASTNIGHT:{%A, %e %B, %Y}CANCELLEDTIME] - last night bookeddate when the booking was cancelled
[LASTNIGHTCANCELLEDTIME:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and when the booking was cancelled display can be any valid PHP strftime format string.
[LEAVINGDAY:{%A, %e %B, %Y}CANCELURL] - check-out URL to view and cancel bookings
[LEAVINGDAY:+1day{%A, %e %B, %Y}CANCELDATE] - optional date offset and display format. The offset can be any plus or minus any number of days and until when the display can be any valid PHP strftime format string.booking is cancellable displaying a phrase
[BOOKINGDATE:{%A, %e %B, %Y}CANCELDATEYYYY-MM-DD] - date until when the booking is cancellable displaying a date. If the dateis in the past 00-00-0000 will be shown
[BOOKINGDATE:+1day{%A, %e %B, %Y}DAYSTOCANCEL] - optional date offset and display format. The offset can be any plus or minus any number of days and the display until booking can be any valid PHP strftime format string.cancelled
[MODIFYDATE:{%A, %e %B, %Y}CANCELUNTIL] - shows the number of days between check-in and the last booking modification date/time, the display day which can be any valid PHP strftime format stringcancelled.If guest can always cancel it shows 0, if guest can never cancel it shows 9999
[PAYMENTDATE:{%A, %e %B, %Y}GUESTLOGIN] - most recent payment dateURL to view bookings
[PAYMENTDATE:+1day{%A, %e %B, %Y}:1:1000TURNOVERDAYS] - optional date offset and display format. The offset can be any plus or minus any number of days and until next arrival into the display can be any valid PHP strftime format string. The second parameter specifies the payment to show, 0 or missing means the most recent payment. The third parameter specifies the invoicee.same unit
[FORMATDATE:[any template variable that creates a dateVACANTDAYS]{%A, %e %B, %Y}] - format the date days from previous checkout to check in the strftime format. The date value could be included by inserting a different template variable containing a date.of current booking
== Booking Group variables Date and Time===== Custom Booking Group Table ===create your own booking group list by specifying the columns in the order you want them to appear.
for example: [BOOKGROUP:PROP_ROOM_BREF_NAMECURRENTDATE] - current date
column parameters[CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format
100[CURRENTDATE:{% = 100A, % widthe %B, %Y}] - current date
ADDR = Booking address[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.
ADUL= [CURRENTTIME] - current time and the number of adultsdisplay can be any valid PHP strftime format string.
ARIV = Arrival [CURRENTTIME:+1day{%A, %e %B, %Y}] - optional dateoffset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
BOPR = Bold prices[DAYSTOCHECKIN] - number of days until check-in
BREF = Booking [INADVANCE] - numberof days between booking and check-in
CITY = Booking city [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.
CHAC = Charges with currency symbolExample: [[DAYSBETWEEN:[FIRSTNIGHT:+5 days{%G-%m-%d}]:[CURRENTDATE:{%G-%m-%d}]] will calculate the days between 5 days after check-in and today.
CHAR = Charges[FIRSTNIGHT:{%A, %e %B, %Y}] - first night booked
CHIL = Number [FIRSTNIGHT:+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 [LASTNIGHT:{%A, %e %B, %Y}] - last night booked
DEPT = Departure [LASTNIGHT:+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 [LEAVINGDAY:{%A, %e %B, %Y}] - check-out
EXSP = extra space between rows[LEAVINGDAY:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be in a custom format.
FLAG = Booking flag text[BOOKINGDATE:{%A, %e %B, %Y}] - booking date
FNAM = Booking first name[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.
GADD = Guest address[MODIFYDATE:{%A, %e %B, %Y}] - last booking modification date/time, the display can be any valid PHP strftime format string.
GCIT = Guest city[PAYMENTDATE:{%A, %e %B, %Y}] - most recent payment date
GCOM = Guest company[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.
GCOU = Guest country[AUTHORIZEUNTIL] - date until which a card is authorized, this is extracted from the most recent authorize booking info code.
GFLA = Guest flag text[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.
GFNA = Guest first name [FORMATDATE:[any template variable that creates a date]{%A, %e %B, %Y}] - custom format the date. The date value could be included by inserting a different template variable containing a date.
GLNA = Guest last name
GMOB = Guest mobileThe following codes can be used in any order between the {} brackets to create custom time and date formats.
GNAM = Guest %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 ("%")
GEMA = Guest Email= 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.
GNOT = Guest notefor example: [BOOKGROUP:PROP_ROOM_BREF_NAME]
GPOS = Guest postcodecolumn parameters
GREF 100% = Guest Id100% width
GSTA ADDR = Guest stateBooking address
GTEL ADUL= Guest phonethe number of adults
ICAN ARIV = Include cancelled bookingsArrival date
LNAM BOPR = Booking last nameBold prices
MOBI BREF = Booking mobilenumber
NAME CITY = Booking full namecity
NOHE CHAC = no headerCharges with currency symbol
NOTE CHAR = Booking noteCharges
ONAM CHIL = Offer Name Number of children
ONLY COUN = Just show the one bookingBooking country
PAIC DEPT = Payment amount with currency symbolDeparture date
PAID EMAI = Paid amountBooking Email
PEOP EXSP = Number of guestsextra space between rows
PHON FLAG = Booking phoneflag text
POST FNAM = Booking postcodefirst name
PROP GADD = Property nameGuest address
RDE0 GCIT = Room description from {{#fas:cog}} (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENTGuest city
RDE1 GCOM = Room description 1 from {{#fas:cog}} (SETTINGS) PROPERTIES> ROOMS > SETUPGuest company
RNAM GCOU = Room Display Name ROOM = Room nameGuest country
RQTY GFLA = shows the number of rooms for each booking and a total at the bottomGuest flag text
STAT GFNA = Booking stateGuest first name
STUS GLNA = StatusGuest last name
TOTA GMOB = Total priceGuest mobile
UNI2 GNAM = Unit first additional information UNI3 = Unit second additional informationGuest full name
UNIT GEMA = Unit nameGuest Email
GNOT = Guest note
Connect the parameters with an underscore. GPOS = Guest postcode
Examples: GREF = Guest Id
[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.GSTA = Guest state
GTEL = Guest phone
[BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and room name in this order.ICAN = Include cancelled bookings
==LNAM = Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - create a table of guest names including room type for a group bookinglast name
[BOOKGROUPROOMLISTTOTAL] - create a table of guest names including room type for a group booking with guest totalsMOBI = Booking mobile
[BOOKGROUPROOMLISTCHARGETOTAL] - create a table of guest names including room type and charge for a group booking with guest totalsNAME = Booking full name
[BOOKGROUPNAMELIST] - create a table of guest names including room type and unit for a group bookingNOHE = no header
[BOOKGROUPNAMELISTTOTAL] - create a table of guest names including room type and unit for a group booking with guest totalsNOTE = Booking note
[BOOKGROUPNAMELISTCHARGETOTAL] - create a table of guest names including room type and unit and charge for a group booking with guest totalsONAM = Offer Name
[BOOKGROUPUNITLIST] - create a table of guest names including unit for a group ONLY = Just show the one booking
[BOOKGROUPUNITLISTTOTAL] - create a table of guest names including unit for a group booking PAIC = Payment amount with guest totalscurrency symbol
[BOOKGROUPUNITLISTCHARGETOTAL] - create a table of guest names including unit and charge for a group booking with guest totalsPAID = Paid amount
PEOP == Invoice Variables ==[INVOICENUMBER] - invoice numberNumber of guests
[INVOICENUMBERS] - invoice number if invoicees are involvedPHON = Booking phone
[INVOICEDATE] - invoice datePOST = Booking postcode
[INVOICEDATES] - invoice date invoice number if invoicees are involvedPROP = Property name
[INVOICEDATERDE0 = Room description 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. (SETTINGS) CHANNEL MANAGER > PROPERTY CONTENT > ROOM CONTENT
[INVOICEDATES+1dayRDE1 = Room description 1 from {%A, %e %B, %Y{#fas:cog}}] - optional date offset and display format - invoice date invoice number if invoicees are involved, The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string. (SETTINGS) PROPERTIES> ROOMS > SETUP
RNAM =Room Display Name ROOM == Invoice Values ===These template variables will display a value form the invoice.Room name
RQTY ==== Custom Invoice Values====You have shows the option to create number of rooms for each booking and a custom invoice variable to display a value from an invoice. Available content variables are: total at the bottom
CHA - chargesSTAT = Booking state
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 STUS = Status
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the languageTOTA = Total price
DP0 - no decimal placesUNI2 = Unit first additional information UNI3 = Unit second additional information
DP1 - 1 decimal placeUNIT = Unit name
DP2 - 2 decimal places
DP3 - 3 decimal placesConnect the parameters with an underscore.
DP4 - 4 decimal places Examples:
DESsome description - sum of values with "some description"[BOOKGROUP:PROP_ROOM_BREF_NAME] will display the property name, room name, booking number and guest name in this order.
INV - invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV-1 will show all items from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking
IT1 - item 1 [BOOKGROUP:BREF_NAME_PROP_ROOM] will display the booking number, guest name property name and room name in the invoicethis order.
IT2 === Booking Group Table with fixed content===[BOOKGROUPROOMLIST] - item 2 in the invoice create a table of guest names including room type for a group booking
IT3 [BOOKGROUPROOMLISTTOTAL] - item 3 in the invoicecreate a table of guest names including room type for a group booking with guest totals
IT4 [BOOKGROUPROOMLISTCHARGETOTAL] - item 4 in the invoicecreate a table of guest names including room type and charge for a group booking with guest totals
IT5 [BOOKGROUPNAMELIST] - item 5 in the invoicecreate a table of guest names including room type and unit for a group booking
MUL [BOOKGROUPNAMELISTTOTAL] - 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 with guest totals
NUM [BOOKGROUPNAMELISTCHARGETOTAL] - show create a table of guest names including room type and unit and charge for a group booking with decimal place (for scripts)guest totals
THO [BOOKGROUPUNITLIST] - 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 unit for the language a group booking
UPS1 [BOOKGROUPUNITLISTTOTAL] - upsell 1create a table of guest names including unit for a group booking with guest totals
UPS2 [BOOKGROUPUNITLISTCHARGETOTAL] - upsell 2create a table of guest names including unit and charge for a group booking with guest totals
UPS3 == Invoice Variables ==[INVOICENUMBER] - upsell 3invoice number
UPS4 [INVOICENUMBERS] - upsell 4invoice number if invoicees are involved
UPS5 [INVOICEDATE] - upsell 5invoice date
ONE [INVOICEDATES] - shows only items from the specified booking (not the booking group)invoice date invoice number if invoicees are involved
PAY [INVOICEDATE:+1day{%A, %e %B, %Y}] - shows payments 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.
QTY [INVOICEDATES:+1day{%A, %e %B, %Y}] - shows quantityoptional date offset and display format - invoice date invoice number if invoicees are involved, The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
SEX - status excluded. Calculate === Invoice Values ===These template variables will display a value form the balance of all invoice items except for the ones with these status, the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this status.
SIN - status included. Calculate ==== Custom Invoice Values====You have the balance of all option to create a custom invoice variable to display a value from an invoice items . [INVOICEVAL with matching status, a selection of the status items can be a comma separated list. Examplefollowing variables specifies the calculation: SIN status1,status2,status4 will only show items with this status.
VAT CHA - VAT summarycharges
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 DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the variables with an underscore. system will use the default for the language
Examples: DP0 - no decimal places
[INVOICEVAL:PAY_THO] will show payments with a thousands separatorDP1 - 1 decimal place
[INVOICEVAL:UPS1_UPS1] will show the sum of upsell 1 and upsell DP2 - 2decimal places
==== Standard Invoice Values====[INVOICEBALANCE] DP3 - invoice balance3 decimal places
[INVOICEBALANCE:50%] DP4 - percentage of invoice balance4 decimal places
[INVOICEBALANCE:DES -100] used as "DESsome description" - invoice balance with offset amountgives the sum of values containing the description "some description"
INV - invoicee, add the invoicee number at the end. Example: INV20 to show invoicee number 20, INV0 will show items not assigned to an invoicee, INV-1 will show all items from the booking regardless of invoicee. You can combine INV[INVOICEBALANCENUMBOOKINGINVOICEEID] - As per [INVOICEBALANCE] but to add the value is displayed with a decimal point and no thousands separator (for calculation).invoicee from the booking
[INVOICEBALANCENUM:] IT1 - As per [INVOICEBALANCE:] but item 1 in the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEPARTBALANCE:status1,status2,!status4:10%] IT2 - Calculate item 2 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%] IT3 - As per INVOICEPARTBALANCE but item 3 in the value is displayed with a decimal point and no thousands separator (for calculation).invoice
[INVOICEBALANCE1] IT4 - item 4 in the invoice balance of one booking only, not the booking group
[INVOICEBALANCE1NUM] IT5 - As per [INVOICEBALANCE1] but item 5 in the value is displayed with a decimal point and no thousands separator (for calculation)invoice
[INVOICECHARGES] MUL - invoice sum of multiplier. Example: MUL1.2 will multiply all charges prices by 1.2
[INVOICECHARGES:50%] NUM - invoice sum of all charges show with percentage multiplierdecimal place (for scripts)
[INVOICECHARGES:THO -100] - invoice sum of all charges with offset thousands separator. THO. will show a dot as thousand separator. If nothing is set the system will use the default for the language
[INVOICECHARGESNUM] UPS1 - As per [INVOICECHARGES] but the value is displayed with a decimal point and no thousands separator (for calculation)upsell 1
[INVOICECHARGESNUM:] UPS2 - As per [INVOICECHARGES:] but the value is displayed with a decimal point and no thousands separator (for calculation)upsell 2
[INVOICEPARTCHARGES:status1,status2,!status4:10%] UPS3 - 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 3
[INVOICEPARTCHARGESNUM:status1,status2,status4:10%] UPS4 - As per INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculation).upsell 4
[INVOICEPAYMENTS] UPS5 - invoice sum of all payments upsell 5
[INVOICEPAYMENTS:50%] ONE - invoice sum of all payments with percentage multiplier shows only items from the specified booking (not the booking group)
[INVOICEPAYMENTS:PAY -100] - invoice sum of all shows payments with offset
[INVOICEPAYMENTSNUM] QTY - As per [INVOICEPAYMENTS] but the value is displayed with a decimal point and no thousands separator (for calculation)shows quantity
[INVOICEPAYMENTSNUM:50%] SEX - As per [INVOICEPAYMENTS:50%] but status excluded. Calculate the balance of all invoice items except for the value is displayed ones with these status, the status items can be a decimal point and no thousands separatorcomma separated list. Example: SEX status1,status2,status4 will not show items with this status.
[INVOICEPARTPAYMENTS:status1,status2,!status4:10%] SIN - status included. Calculate the balance of all invoice payments items with matching status and apply optional multiplier or offset. The , the status items can be a comma separated list. To exclude status Example: SIN status1,status2,status4 will only 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.
[INVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] VAT - As per INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculation).VAT summary
[INVOICEPENDPAY] - all (auto and manual) pending payments including failed
[INVOICEPENDPAYNEXTDATE] - date of Connect the next pending paymentvariables with an underscore.
[INVOICEPENDPAYNEXTDATEExamples:] - date of the next pending payment display can be any valid PHP strftime format string. Information about PHP strftime Strings can be find found here: http://php.net/manual/de/function.strftime.php
[INVOICEPENDPAYNUMINVOICEVAL:PAY_THO] - all (auto and manual) pending will show payments including failed but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAY1234INVOICEVAL:UPS1_UPS2] - all (auto and manual) pending payments including failed for will show the specified invoicee (-sum of upsell 1 will include all items regardless of invoicee)and upsell 2
==== Standard Invoice Values====[INVOICEPENDPAYNUM1234INVOICEBALANCE] - 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).invoice balance
[INVOICEPENDPAYAUTOINVOICEBALANCE:50%] - auto pending payments before due date percentage of invoice balance
[INVOICEPENDPAYAUTONUMINVOICEBALANCE:-100] - auto pending payments before due date but the value is displayed invoice balance with a decimal point and no thousands separator (for calculation).offset amount
[INVOICEPENDPAYAUTO1234INVOICEBALANCENUM] - As per [INVOICEBALANCE] 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).
[INVOICEPENDPAYAUTONUM1234INVOICEBALANCENUM:] - As per [INVOICEBALANCE:] 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).
[INVOICEPENDPAYFAILINVOICEPARTBALANCE:status1,status2,!status4:10%] - failed pending payments Calculate the balance of all invoice items with matching status and apply optional multiplier or offset. The status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset is optional and can be specified after a second colon (:) and it can be a percentage by ending the number with the percent (all also past%)symbol or a numeric value offset.
[INVOICEPENDPAYFAILNUMINVOICEPARTBALANCENUM:status1,status2,status4:10%] - failed pending payments (all also past) As per INVOICEPARTBALANCE but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYFAIL234INVOICEBALANCE1] - failed pending payments (all also past) for invoice balance of one booking only, not the specified invoicee (-1 will include all items regardless of invoicee)booking group
[INVOICEPENDPAYFAILNUM234INVOICEBALANCE1NUM] - failed pending payments (all also past) for the specified invoicee As per [INVOICEBALANCE1] but the value is displayed with a decimal point and no thousands separator (for calculation) (-1 will include all items regardless of invoicee)
[INVOICEPENDPAYRULE1INVOICECHARGES] - shows invoice sum of all pending payment for this rule (exchange 1 for the rule number)charges
[INVOICEPENDPAYRULENUM1INVOICECHARGES:50%] - shows invoice sum of all pending payment for this rule (exchange 1 for the rule number) displayed charges with a decimal point and no thousands separator (for calculation)percentage multiplier
[INVOICEPENDPAYMANUALINVOICECHARGES:-100] - manual pending payments invoice sum of all charges with offset
[INVOICEPENDPAYMANUALNUMINVOICECHARGESNUM] - manual pending payments As per [INVOICECHARGES] but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYMANUALNOTDUEINVOICECHARGESNUM:] manual pending payments before due date - As per [INVOICECHARGES:] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEPENDPAYMANUALNOTDUENUMINVOICEPARTCHARGES:status1,status2,!status4:10%] manual pending payments before due date but - Calculate the value is displayed balance of all invoice charges with matching status and apply optional multiplier or offset. The status items can be a decimal point comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and no thousands separator can be specified after a second colon (for calculation:) and it can be a percentage by ending the number with the percent (%)symbol or a numeric value offset.
[INVOICEPENDPAYMANUALOVERDUEINVOICEPARTCHARGESNUM:status1,status2,status4:10%] manual pending payments after due date - As per INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICEPENDPAYMANUALOVERDUENUMINVOICEPAYMENTS] manual pending - invoice sum of all payments after due date but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICECREDITSINVOICEPAYMENTS:50%] - invoice sum of all credit items (negative items)payments with percentage multiplier
[INVOICECREDITSINVOICEPAYMENTS:50%-100] - invoice sum of all credit items payments with percentage multiplier offset
[INVOICECREDITS:INVOICEPAYMENTSNUM] -100As per [INVOICEPAYMENTS] - invoice sum of all credit items but the value is displayed with offset a decimal point and no thousands separator (for calculation)
[INVOICECREDITSNUMINVOICEPAYMENTSNUM:50%] - As per [INVOICECREDITSINVOICEPAYMENTS:50%] but the value is displayed with a decimal point and no thousands separator (for calculation).
[INVOICECREDITSNUMINVOICEPARTPAYMENTS:status1,status2,!status4:10%] - As per [INVOICECREDITS:] but Calculate the value is displayed balance of all invoice payments with matching status and apply optional multiplier or offset. The status items can be a decimal point comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. The offset optional and no thousands separator can be specified after a second colon (for calculation:) and it can be a percentage by ending the number with the percent (%)symbol or a numeric value offset.
[INVOICEDEBITSINVOICEPARTPAYMENTSNUM:status1,status2,status4:10%] - invoice sum of all debit items As per INVOICEPARTCHARGES but the value is displayed with a decimal point and no thousands separator (positive itemsfor calculation).
[INVOICEDEBITS:50%INVOICEPENDPAY] - invoice sum of all debit items with percentage multiplier(auto and manual) pending payments including failed
[INVOICEDEBITS:-100INVOICEPENDPAYNEXTDATE] - invoice sum date of all debit items with offsetthe next pending payment
[INVOICEDEBITSNUMINVOICEPENDPAYNEXTDATE:] - As per [INVOICEDEBITS] but date of the value is displayed with a decimal point and no thousands separator (for calculations) (for calculations)next pending payment display can be any valid PHP strftime format string. Information about PHP strftime Strings can be find found here: http://php.net/manual/de/function.strftime.php
[INVOICEDEBITSNUM:INVOICEPENDPAYNUM] - As per [INVOICEDEBITS:] all (auto and manual) pending payments including failed but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEVATINVOICEPENDPAY1234] - invoice sum all (auto and manual) pending payments including failed for the specified invoicee (-1 will include all items regardless of all vat valueinvoicee)
[INVOICEVATNUMINVOICEPENDPAYNUM1234] - invoice sum all (auto and manual) pending payments including failed for the specified invoicee (-1 will include all items regardless of all vat invoicee) The value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEFIRSTITEMINVOICEPENDPAYAUTO] - auto - price of the item listed first in the invoicepending payments before due date
[INVOICEFIRSTITEMNUMINVOICEPENDPAYAUTONUM] - price of the item listed first in the invoice auto pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICESECONDITEMINVOICEPENDPAYAUTO1234] 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) (- price 1 will include all items regardless of the item listed second in the invoiceinvoicee)
[INVOICESECONDITEMNUMINVOICEPENDPAYAUTONUM1234] - price of auto pending payments before due date for the item listed second 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)
[INVOICETHIRDITEMINVOICEPENDPAYFAIL] - price of the item listed third in the invoicefailed pending payments (all also past)
[INVOICETHIRDITEMNUMINVOICEPENDPAYFAILNUM] - price of the item listed third in the invoice failed pending payments (all also past) but the value is displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEFOURTHITEMINVOICEPENDPAYFAIL234] - failed pending payments (all also past) for the specified invoicee (- price 1 will include all items regardless of the item listed fourth in the invoiceinvoicee)
[INVOICEFOURTHITEMNUMINVOICEPENDPAYFAILNUM234] - price of failed pending payments (all also past) for the item listed fourth 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)
[INVOICEFIFTHITEMINVOICEPENDPAYRULE1] - price of shows all pending payment for this rule (exchange 1 for the item listed fifth in the invoicerule number)
[INVOICEFIFTHITEMNUMINVOICEPENDPAYRULENUM1] - price of the item listed fifth in the invoice but shows all pending payment for this rule (exchange 1 for the value is rule number) displayed with a decimal point and no thousands separator (for calculationscalculation)
[INVOICEUPSELL0INVOICEPENDPAYMANUAL] - base price without upsell items or other charges added later manual pending payments
[INVOICEUPSELLNUM0INVOICEPENDPAYMANUALNUM] - as per [INVOICEUPSELL1] manual pending payments but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEUPSELL1INVOICEPENDPAYMANUALNOTDUE] - value of upsell item 1 (number can be between 0 to 20)manual pending payments before due date
[INVOICEUPSELLNUM1] - as per [INVOICEUPSELL1INVOICEPENDPAYMANUALNOTDUENUM] manual pending payments before due date but the value is displayed with a decimal point and no thousands separator (for calculationscalculation).
[INVOICEUPSELLQTY1INVOICEPENDPAYMANUALOVERDUE] - quantity of upsell item 1 (number can be between 1 to 20)manual pending payments after due date
[INVOICEUPSELLNAME1INVOICEPENDPAYMANUALOVERDUENUM] manual - name of pending payments after due date but the headline field of upsell item 1 value is displayed with a decimal point and no thousands separator (number can be between 1 to 20for calculation)
[INVOICEUPSELLSTATUS1INVOICECREDITS] - stautus invoice sum of the headline field of upsell item 1 all credit items (number can be between 1 to 20negative items)
[INVOICEUPSELLHEADLINE1INVOICECREDITS:50%] - headline (name and status if used invoice sum of upsell item 1 (number can be between 1 to 20)all credit items with percentage multiplier
[INVOICEUPSELLDESCRIPTION1INVOICECREDITS:-100] - description invoice sum of upsell item 1 (number can be between 1 to 20)all credit items with offset
[INVOICEUPSELLAMOUNTNUM1INVOICECREDITSNUM] - amout of upsell item 1 As per [INVOICECREDITS] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICECREDITSNUM:] - As per [INVOICECREDITS:] but the value is displayed with a decimal point and no thousands separator (for calculation)
[INVOICEDEBITS] - invoice sum of all debit items (positive items)
[INVOICEDEBITS:50%] - invoice sum of all debit items with percentage multiplier
[INVOICEUPSELLTYPE1INVOICEDEBITS:-100] - type invoice sum of upsell item 1 all debit items with offset
[INVOICEUPSELLPER1INVOICEDEBITSNUM] - As per of upsell item 1 [INVOICEDEBITS] but the value is displayed with a decimal point and no thousands separator (for calculations) (for calculations)
[INVOICEUPSELLPERIOD1INVOICEDEBITSNUM:] - period of upsell item 1 As per [INVOICEDEBITS:] but the value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICEVAT] - invoice sum of all vat value
[INVOICEEXTRAITEMDESC1INVOICEVATNUM] - Name invoice sum of extra invoice item 1 (number can be between 0 to 20all vat value for calculations)
[INVOICEEXTRAITEM1INVOICEFIRSTITEM] - value price of extra invoice the item 1 (number can be between 0 to 20) Note: the order goes by the order listed first in the dropdown list not by the order the items are entered. invoice
[INVOICEEXTRAITEM1INVOICEFIRSTITEMNUM] - value price of extra invoice the item 1 (number can be between 0 to 20) Note: the order goes by the order listed first in the dropdown list not by invoice but the order the items are entered. value is displayed with a decimal point and no thousands separator (for calculations)
[INVOICEEXTRAITEMNUM1INVOICESECONDITEM] - as per price of the item listed second in the invoice [INVOICEEXTRAITEM1INVOICESECONDITEMNUM] - price of the item listed second in the invoice but the value is displayed with a decimal point and no thousands separator (for calculations).
[INVOICEEXTRAITEMQTY1INVOICETHIRDITEM] - quantity price of extra invoice the item 1 (number can be between 0 to 20) Note: the order goes by the order listed third in the dropdown list not by the order the items are entered. invoice
[INVOICEGROSS:1INVOICETHIRDITEMNUM] - gross amount price of the inserted VAT rate (number is item listed third in the invoice but the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
INVOICEGROSSNUM:1[INVOICEFOURTHITEM] gross amount - price of the inserted VAT rate (number is item listed fourth in the VAT rate)invoice
[INVOICENET:1INVOICEFOURTHITEMNUM] - net amount price of the inserted VAT rate item listed fourth in the invoice but the value is displayed with a decimal point and no thousands separator (number is the VAT ratefor calculations)
[INVOICENETNUM:1INVOICEFIFTHITEM] - net amount price of the inserted VAT rate (number is item listed fifth in the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)invoice
[INVOICEVAT:1INVOICEFIFTHITEMNUM] - VAT amount price of the inserted VAT rate item listed fifth in the invoice but the value is displayed with a decimal point and no thousands separator (number is the VAT ratefor calculations)
[INVOICEVATNUM:1INVOICEUPSELL0] VAT amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)- base price without upsell items or other charges added later
[INVOICEITEMBYDESC:SearchtermINVOICEUPSELLNUM0] - searches as per [INVOICEUPSELL1] but the invoice for items value is displayed with this search term a decimal point and adds them upno thousands separator (for calculations)
[INVOICEITEMBYDESCNUM:SearchtermINVOICEUPSELL1] - searches the invoice for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator of upsell item 1 (for calculationsnumber can be between 0 to 20)
[INVOICEPAYMENTBYDESC:SearchtermINVOICEUPSELLNUM1] - searches as per [INVOICEUPSELL1] but the payments for items value is displayed with this search term a decimal point and adds them upno thousands separator (for calculations)
[INVOICEPAYMENTBYDESCNUM:SearchtermINVOICEUPSELLQTY1] - searches the payments for items with this search term and adds them up, value is displayed with a decimal point and no thousands separator quantity of upsell item 1 (for calculationsnumber can be between 1 to 20)
=== Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[INVOICETABLEINVOICEUPSELLNAME1] - invoice tablename of the headline field of upsell item 1 (number can be between 1 to 20)
[INVOICETABLEVATINVOICEUPSELLSTATUS1] - invoice table with vat information and vat summarystautus of the headline field of upsell item 1 (number can be between 1 to 20)
[INVOICETABLE:$1.1$INVOICEUPSELLHEADLINE1] - invoice table headline (name and currency multiplier with optional new currency symbol before or after price.status if used of upsell item 1 (number can be between 1 to 20)
[INVOICETABLEPART:status1,status2,!status4INVOICEUPSELLDESCRIPTION1] - Invoice table showing only items with matching status. The status items description of upsell item 1 (number can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1. between 1 to 20)
[INVOICETABLE2INVOICEUPSELLAMOUNTNUM1] - invoice table with status fieldamout of upsell item 1
[INVOICETABLE2:$1.1$] - invoice table with status field and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLECHARGES] - invoice table showing charges only
[INVOICETABLECHARGESINVOICEE1234] - invoice table showing charges only assigned to the specified invoicee, specify the invoicee Id number.
[INVOICETABLENOTOTINVOICEUPSELLTYPE1] - invoice table without grand totaltype of upsell item 1
[INVOICETABLENOTOT:$1.1$INVOICEUPSELLPER1] - invoice table without grand total and currency multiplier with optional new currency symbol before or after price.per of upsell item 1
[INVOICETABLENOTOT2INVOICEUPSELLPERIOD1] - invoice table with status field without grand totalperiod of upsell item 1
[INVOICETABLENOTOT2:$1.1$] - invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.
[INVOICETABLEVAT:$1.1$INVOICEEXTRAITEMDESC1] - Name of extra invoice table with vat information and currency multiplier with optional new currency symbol before or after price.item 1 (number can be between 0 to 20)
[INVOICETABLEVATCOMPACTINVOICEEXTRAITEM1] - compact version value of extra invoice table with vat information and vat summaryitem 1 (number can be between 0 to 20) Note: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICETABLEVATCOMPACT:$1.1$INVOICEEXTRAITEM1] - compact version value of extra invoice table with vat information 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.
[INVOICETABLEVATCOMPACTNOSUMINVOICEEXTRAITEMNUM1] - compact version of invoice table as per [INVOICEEXTRAITEM1] but the value is displayed with vat information without vat summarya decimal point and no thousands separator (for calculations).
[INVOICETABLEVATCOMPACTNOSUM:$1.1$INVOICEEXTRAITEMQTY1] - compact version quantity of extra invoice table with vat information without vat summary item 1 (number can be between 0 to 20) and currency multiplier with optional new currency symbol before or after priceNote: the order goes by the order in the dropdown list not by the order the items are entered.
[INVOICETABLEVATNOSUMINVOICEGROSS:1] - invoice table gross amount of the inserted VAT rate (number is the VAT rate), value is displayed with vat information without vat summarya decimal point and no thousands separator (for calculations)
[INVOICETABLEVATNOSUMINVOICEGROSSNUM:$1.1$] - invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.gross amount of the inserted VAT rate (number is the VAT rate)
[INVOICETABLEDATEVATNOSUMINVOICENET:1] - invoice table with vat information and date without vat summarynet amount of the inserted VAT rate (number is the VAT rate)
[INVOICETABLEDATEVATNOSUMINVOICENETNUM:$1.1$] - invoice table net amount of the inserted VAT rate (number is the VAT rate), value is displayed with vat information a decimal point and date without vat summary and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculations)
[INVOICETABLEVAT2INVOICEVAT:1] - invoice table with vat information and status field and vat summaryVAT amount of the inserted VAT rate (number is the VAT rate)
[INVOICETABLEVAT2INVOICEVATNUM:$1.1$] - invoice table VAT amount of the inserted VAT rate (number is the VAT rate), value is displayed with vat information and status field and vat summary a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculations)
[INVOICETABLEVAT2NOSUMINVOICEITEMBYDESC:Searchterm] - searches the invoice table for items with vat information this search term and status field without vat summaryadds them up
[INVOICETABLEVAT2NOSUMINVOICEITEMBYDESCNUM:$1.1$Searchterm] - searches the invoice table for items with vat information this search term and status field without vat summary adds them up, value is displayed with a decimal point and currency multiplier with optional new currency symbol before or after price.no thousands separator (for calculations)
[INVOICETABLEVATCHARGESINVOICEPAYMENTBYDESC:Searchterm] - invoice table showing charges only searches the payments for items with vat information this search term and vat summaryadds them up
[INVOICETABLENOPRICEINVOICEPAYMENTBYDESCNUM:Searchterm] - invoice table searches the payments for items with this search term and adds them up, value is displayed with a decimal point and no price informationthousands separator (for calculations)
=== Invoice Table ===These template varibles will display an invoice table. ==== Standard Invoice Tables ====[INVOICETABLEINVOICEEINVOICETABLE] - invoice table excluding items assigned to an invoicee.
[INVOICETABLEINVOICEE1234INVOICETABLEVAT] - invoice table for a specific invoicee, specify the invoicee Id number.with vat information and vat summary
[UPSELLTABLEINVOICETABLE:$1.1$] - invoice table and currency multiplier with all upsell itemsoptional new currency symbol before or after price.
[UPSELLTABLEVATINVOICETABLEPART:status1,status2,!status4] - Invoice table showing only items with all upsell matching status. The status items can be a comma separated list. To exclude status items prefix them with vat information and vat summary an exclamation mark, for example !status1.
[UPSELLTABLENOREFUNDINVOICETABLE2] - invoice table with all upsell items except refundable itemsstatus field
==== Custom Invoice Table ====You have the option to create a custom [INVOICETABLE2:$1.1$] - invoice tablewith status field and currency multiplier with optional new currency symbol before or after price. Available content variables are:
AMO [INVOICETABLECHARGES] - shows the net value (price x quantity)invoice table showing charges only
CEX [INVOICETABLECHARGESINVOICEE1234] - invoice table showing charges excluded (charges will not be shown)only assigned to the specified invoicee, specify the invoicee Id number.
CON [INVOICETABLENOTOT] - currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234invoice table without grand total
CUA [INVOICETABLENOTOT:$1.1$] - invoice table without grand total and currency multiplier with optional new currency symbol showing before or after the numbersprice. Example: CUA€ will show € after the figures
CUB [INVOICETABLENOTOT2] - currency symbol showing before the numbers. Example: CUB€ will show € before the figuresinvoice table with status field without grand total
DAT - adds a date column - you have the option to control the format of the date using [[Template_Variables#Date_and_Time|date and time variablesINVOICETABLENOTOT2:$1.1$]] for example DAT{%d -%m-%Y}invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price.
DEC [INVOICETABLEVAT:$1.1$] - Decimal points. Example: DEC, will show a comma as decimal pointinvoice table with vat information and currency multiplier with optional new currency symbol before or after price. If nothing is set the system will use the default for the language
DP0 [INVOICETABLEVATCOMPACT] - no decimal placescompact version of invoice table with vat information and vat summary
DP1 - [INVOICETABLEVATCOMPACT:$1.1 $] decimal place- compact version of invoice table with vat information and vat summary and currency multiplier with optional new currency symbol before or after price.
DP2 [INVOICETABLEVATCOMPACTNOSUM] - 2 decimal placescompact version of invoice table with vat information without vat summary
DP3 [INVOICETABLEVATCOMPACTNOSUM:$1.1$] - 3 decimal placescompact version of invoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
DP4 [INVOICETABLEVATNOSUM] - 4 decimal placesinvoice table with vat information without vat summary
GAT [INVOICETABLEVATNOSUM:$1.1$] - sum for each columninvoice table with vat information without vat summary and currency multiplier with optional new currency symbol before or after price.
GRP [INVOICETABLEDATEVATNOSUM] - Group Totals. Displays the same items as a total invoice table with vat information and date without vat summary
GRT [INVOICETABLEDATEVATNOSUM:$1.1$] - Grand Total invoice table with vat information and date without vat summary 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-1 will show all items from the booking regardless of invoicee. You can combine INV[BOOKINGINVOICEEIDINVOICETABLEVAT2]] to add the invoicee from the booking- invoice table with vat information and status field and vat summary
LAN [INVOICETABLEVAT2:$1.1$] - languageinvoice table with vat information and status field and vat summary and currency multiplier with optional new currency symbol before or after price. Example LANDE will force the language to German
MUL [INVOICETABLEVAT2NOSUM] - multiplier. Example: MUL1.2 will multiply all prices by 1.2invoice table with vat information and status field without vat summary
NIN [INVOICETABLEVAT2NOSUM:$1.1$] - do not show invoice number table with vat information and invoice date on locked invoicesstatus field without vat summary and currency multiplier with optional new currency symbol before or after price.
NOC [INVOICETABLEVATCHARGES] - invoice table showing charges will not be displayed but their only with vat values are still calculated for the information and vat summary (VAT)
NOP [INVOICETABLENOPRICE] - payments will not be displayed invoice table with no price information
ONE [INVOICETABLEINVOICEE] - shows only invoice table excluding items from the specified booking (not the booking group)assigned to an invoicee.
ORB [INVOICETABLEINVOICEE1234] - order by bookinginvoice table for a specific invoicee, this keeps specify the items for each booking (room) together in the tableinvoicee Id number.
PAA [UPSELLTABLE] - shows a column table with payment amountsall upsell items
PAY [UPSELLTABLEVAT] - shows payments table with all upsell items with vat information and vat summary
PEN [UPSELLTABLENOREFUND] - shows pending payments descriptiontable with all upsell items except refundable items
PPA - shows pending payments amount ==== Custom Invoice Table ====You have the option to create a custom invoice table. Available content variables are:
PRI AMO - shows prices in a columnthe net value (price x quantity)
QTY CEX - shows quantitycharges excluded (charges will not be shown)
SEX CON - status excludedcurrency conversion. Calculate Example: CONEURUSD will convert the balance of all invoice items except for first currency (Euros) to the ones with these status, second currency (USD). CON1.234 would multiply the status items can be a comma separated list. Example: SEX status1,status2,status4 will not show items with this statusprices by 1.234
SIN CUA - status included. Calculate the balance of all invoice items with matching status, currency symbol showing after the status items can be a comma separated listnumbers. Example: SIN status1,status2,status4 CUA€ will only show items with this status.€ after the figures
STACUB - shows stauscurrency symbol showing before the numbers. Example: CUB€ will show € before the figures
THO DAT - thousands separator. THO. will show adds a dot as thousand separator. If nothing is set date column - you have the system will use option to control the default format of the date using [[Template_Variables#Date_and_Time|date and time variables]] for the languageexample DAT{%d-%m-%Y}
TOT DEC - shows total amountsDecimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the language
VAA DP0 - shows VAT amountsno decimal places
VAP DP1 - shows VAT percents1 decimal place
VAT DP2 - VAT summary2 decimal places
DP3 - 3 decimal places
Connect the variables with an underscore. DP4 - 4 decimal places
Examples: GAT - sum for each column
[INVOICE:PRI_QTY_CUA€] will create an invoice table with price and quantity in EurosGRP - Group Totals.Displays the same items as a total
[INVOICE:PAY_TOT_CEX] will create an invoice table which will only show payments.GRT - Grand Total
[INVOICEINV - invoicee, add the invoicee number at the end. Example:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_VAA] INV20 to show invoicee number 20, INV0 will create show items not assigned to an invoice table with more informationinvoicee, INV-1 will show all items from the booking regardless of invoicee.You can combine INV[BOOKINGINVOICEEID]] to add the invoicee from the booking
== Invoicee Variables ==[INVOICEEBALANCE] LAN - invoice balance for unassigned invoice itemslanguage.Example LANDE will force the language to German
[INVOICEEBALANCENUM] MUL - invoice balance for unassigned invoice items displayed with a decimal point and no thousands separatormultiplier.Example: MUL1.2 will multiply all prices by 1.2
[INVOICEEBALANCE1234] NIN - do not show invoice balance for number and invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number).date on locked invoices
[INVOICEEBALANCENUM1234] NOC - invoice balance 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) displayed with a decimal point and no thousands separator.
[INVOICEECHARGES] NOP - invoice charges for unassigned invoice items.payments will not be displayed
[INVOICEECHARGESNUM] ONE - invoice charges for unassigned invoice shows only items displayed with a decimal point and no thousands separator.from the specified booking (not the booking group)
[INVOICEECHARGES1234] ORB - invoice charges order by booking, this keeps the items for invoice items assigned to invoicee 1234 each booking (change 1234 to room) together in the required Invoicee Id number).table
[INVOICEECHARGESNUM1234] PAA - invoice charges for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number) displayed shows a column with a decimal point and no thousands separator.payment amounts
[INVOICEEPAYMENTS] PAY - invoice shows payments for unassigned invoice items.
[INVOICEEPAYMENTSNUM] PEN - invoice shows pending payments for unassigned invoice items displayed with a decimal point and no thousands separator.description
[INVOICEEPAYMENTS1234] PPA - invoice shows pending payments for invoice items assigned to invoicee 1234 amount (change 1234 to the required Invoicee Id number)
[INVOICEEPAYMENTSNUM1234] PRI - invoice payments for invoice items assigned to invoicee 1234 (change 1234 to the required Invoicee Id number)shows prices in a column
[INVOICEENAME] QTY - name of the invoicee account the invoice is assigned to or blankshows quantity
[INVOICEECODE] SEX - code status excluded. Calculate the balance of all invoice items except for the invoicee 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.
[INVOICEECURRENCY] SIN - currency status included. Calculate the balance of the invoicee account the all invoice is assigned to if it is not items with matching status, the property default or blankstatus items can be a comma separated list. Example: SIN status1,status2,status4 will only show items with this status.
[INVOICEETEMPLATE1] STA- template value 1 of the invoice account the invoice is assigned to or blankshows staus
[INVOICEETEMPLATE2] THO - template value 2 of thousands separator. THO. will show a dot as thousand separator. If nothing is set the invoice account system will use the invoice is assigned to or blankdefault for the language
[INVOICEETEMPLATE3] TOT - template value 3 of the invoice account the invoice is assigned to or blankshows total amounts
[INVOICEETEMPLATE4] VAA - template value 4 of the invoice account the invoice is assigned to or blankshows VAT amounts
[INVOICEETEMPLATE5] VAP - template value 5 of the invoice account the invoice is assigned to or blankshows VAT percents
[INVOICEETEMPLATE6] VAT - template value 6 of the invoice account the invoice is assigned to or blankVAT summary
[INVOICEETEMPLATE7] - template value 7 of the invoice account the invoice is assigned to or blank
[INVOICEETEMPLATE8] - template value 8 of Connect the invoice account the invoice is assigned to or blankvariables with an underscore.
== Payment Request Variables ==[PAYURL] - Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.Examples:
[PAYURLINVOICE:25%PRI_QTY_CUA€] - Creates a payment url for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balancewill create an invoice table with price and quantity in Euros.
[PAYURLINVOICE:200PAY_TOT_CEX] - Creates a payment url for the payment request url for a fixed amount. ntwill create an invoice table which will only show payments.
[PAYLINKINVOICE:PRI_QTY_CUA_TOT_VAT_QTY_PAY_GRT_AMO_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 balancewill create an invoice table with more information.
[PAYLINKINVOICE:25%SIN TRANSPORT] -Creates a payment link (HTML A tag) for will create an invoice table with the payment request Invoice item description for a percentage of the outstanding balance. Use 100% to specify any items with the full outstanding balanceStatus = Transport.
== Invoicee Variables ==[PAYLINK:200INVOICEEBALANCE] - Creates a payment link (HTML A tag) invoice balance for the payment request) for a fixed amountunassigned invoice items.
[PAYBUTTONINVOICEEBALANCENUM] - Creates a payment button for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding invoice balance. Not recommended for emailsunassigned invoice items displayed with a decimal point and no thousands separator.
[PAYBUTTON:25%INVOICEEBALANCE1234] - Creates a payment button invoice balance for the payment request 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).
[PAYBUTTON:200INVOICEEBALANCENUM1234] - Creates a payment button invoice balance for invoice items assigned to invoicee 1234 (change 1234 to the payment request for required Invoicee Id number) displayed with a fixed amountdecimal point and no thousands separator.
[PAYPALURLINVOICEECHARGES] - Creates a Paypal payment url invoice charges for the amount in the booking deposit field if non zero, otherwise the outstanding balanceunassigned invoice items.
[PAYPALURL:25%INVOICEECHARGESNUM] - Creates a Paypal payment url invoice charges for unassigned invoice items displayed with a percentage of the outstanding balance. Use 100% to specify the full outstanding balancedecimal point and no thousands separator.
[PAYPALURL:200INVOICEECHARGES1234] - Creates a Paypal payment url invoice charges for a fixed amount. A zero amount will cause paypal invoice items assigned to provide a field invoicee 1234 (change 1234 to enter an amountthe required Invoicee Id number).
[PAYPALLINKINVOICEECHARGESNUM1234] - Creates a Paypal payment link invoice charges for invoice items assigned to invoicee 1234 (HTML A tagchange 1234 to the required Invoicee Id number) for the amount in the booking deposit field if non zero, otherwise the outstanding balancedisplayed with a decimal point and no thousands separator.
[PAYPALLINK:25%INVOICEEPAYMENTS] - Creates a Paypal payment link (HTML A tag) invoice payments for a percentage of the outstanding balance. Use 100% to specify the full outstanding balanceunassigned invoice items.
[PAYPALLINK:200INVOICEEPAYMENTSNUM] - Creates a Paypal payment link (HTML A tag) invoice payments 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.
[PAYPALBUTTONINVOICEEPAYMENTS1234] - Creates a Paypal payment button invoice payments 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 emails.required Invoicee Id number)
[PAYPALBUTTON:25%INVOICEEPAYMENTSNUM1234] - Creates a Paypal payment button invoice payments 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 emails.required Invoicee Id number)
[PAYPALBUTTON:200INVOICEENAME] - Creates a Paypal payment button for a fixed amount. A zero amount will cause paypal name of the invoicee account the invoice is assigned to provide a field to enter an amount. Not recommended for emails.or blank
Add a H to exclude a gateway from displaying. Example: [PAYURL:200:HSTINVOICEECODE] will hide Stripe- code of the invoicee account the invoice is assigned to or blank
== Text Operators ==[INVOICEECURRENCY] - currency of the invoicee account the invoice is assigned to if it is not the property default or blank
[REPLACE|searchForThisText|replaceWithThisText|textToSearchINVOICEENOTES] - replace value of the "searchForThisTextNotes" with "replaceWithThisText" within field for the text "textToSearch"invoicee
[SUBSTR|startCharacterNumber|numberOfCharacters|textToGetSubstringFromINVOICEETEMPLATE1] - get a sub string from "textToGetSubstringFrom" starting at character "startCharacterNumber" (integer, 0 template value 1 of the invoice account the invoice is the first char) with a length of "numberOfCharacters" (integer)assigned to or blank
[TRIM| string to trim INVOICEETEMPLATE2] - remove whitespace from template value 2 of the invoice account the start and end of " string invoice is assigned to trim "or blank
== iCal Links ==These [INVOICEETEMPLATE3] - template variables will create iCal links which allow value 3 of the booking to be added invoice account the invoice is assigned to a calendar.or blank
[ICALURLINVOICEETEMPLATE4] - Calendar linktemplate value 4 of the invoice account the invoice is assigned to or blank
[ICALURL:16INVOICEETEMPLATE5] - Calendar link with check-in hour. Replace '16' with template value 5 of the invoice account the hour check-in starts.invoice is assigned to or blank
[ICALURL::10INVOICEETEMPLATE6] - Calendar link with check-out hour. Replace '10' with template value 6 of the hour with invoice account the hour check-out ends.invoice is assigned to or blank
[ICALURL:::summary textINVOICEETEMPLATE7] - Calendar link with a summary texttemplate value 7 of the invoice account the invoice is assigned to or blank
[ICALURL::::description textINVOICEETEMPLATE8] - Calendar link with a descriptive texttemplate value 8 of the invoice account the invoice is assigned to or blank
Example:[INVOICEETEMPLATE1BR] - template value 1 of the invoice account the invoice is assigned to or blank with linkebreak
Calendar link with check[INVOICEETEMPLATE2BR] -in time 16:00, check-out time 10:00, template value 2 of the summary text "Booking" and invoice account the description text "Sunny Hotel":invoice is assigned to or blank with linkebreak
[ICALURL:16:10:Booking:Sunny HotelINVOICEETEMPLATE3BR]- template value 3 of the invoice account the invoice is assigned to or blank with linkebreak
== Mathematical Operators ==[INVOICEETEMPLATE4BR] - template value 4 of the invoice account the invoice is assigned to or blank with linkebreak
Place mathematical operators between two numbers <b>[INVOICEETEMPLATE5BR] - template value 5 of the invoice account the invoice is assigned to or between two template variables</b> that return a number.blank with linkebreak
[+INVOICEETEMPLATE6BR] - Example: 2 [+] 3 = 5template value 6 of the invoice account the invoice is assigned to or blank with linkebreak
[-INVOICEETEMPLATE7BR] - Example: 5 [-] 1 = 4template value 7 of the invoice account the invoice is assigned to or blank with linkebreak
[*INVOICEETEMPLATE8BR] - Example: 3 [*] 4 = 12template value 8 of the invoice account the invoice is assigned to or blank with linkebreak
[/] - Example: 15 [/] 5 = 3
== Payment Request Variables ==[MINPAYURL] - Example: 2 [MIN] 3 = 2Creates a payment url for the payment request for the amount in the booking deposit field if non zero, otherwise the outstanding balance.
[MAXPAYURL:25%] - Example: 2 [MAX] 3 = 3Creates a payment url for the payment request for a percentage of the outstanding balance. Use 100% to specify the full outstanding balance.
Brackets are not supported as [PAYURL:200] - Creates a way to control processing order, payment url for the processing order is payment request url for a fixed as *, /, +, -, MIN, MAXamount. nt.
[PAYLINK] - 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.
=== Rounding and controlling decimal places ===[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.
==== Default ====[PAYLINK:200] - Creates a payment link (HTML A tag) for the payment request) for a fixed amount.
2 [/PAYBUTTON] 3 = 0- 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.66666666666667
==== Rounding [PAYBUTTON:25%] - Creates a payment button for the payment request for a percentage of the outstanding balance. Use 100% to specify the nearest integer ====full outstanding balance. Not recommended for emails.
2 [/PAYBUTTON:200] - Creates a payment button for the payment request for a fixed amount.0] 3 = 1
==== Rounding to 1[PAYPALURL] - Creates a Paypal payment url for the amount in the booking deposit field if non zero,2,3 or 4 decimal place(s) ====otherwise the outstanding balance.
2 [/PAYPALURL:25%] - Creates a Paypal payment url for a percentage of the outstanding balance.1] 3 = 0Use 100% to specify the full outstanding balance.7
2 [/PAYPALURL:200] - Creates a Paypal payment url for a fixed amount.2] 3 = 0A zero amount will cause paypal to provide a field to enter an amount.67
2 [/.3PAYPALLINK] 3 = 0- Creates a Paypal payment link (HTML A tag) for the amount in the booking deposit field if non zero, otherwise the outstanding balance.667
2 [/PAYPALLINK:25%] - Creates a Paypal payment link (HTML A tag) for a percentage of the outstanding balance.4] 3 = 0Use 100% to specify the full outstanding balance.6667
[PAYPALLINK:200] - Creates a Paypal payment link (HTML A tag) for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount.
<b>This works on all operators including [MINPAYPALBUTTON] and [MAX]</b>- Creates a Paypal payment button for the amount in the booking deposit field if non zero, otherwise the outstanding balance. Not recommended for emails.
Note[PAYPALBUTTON: Always use 25%] - Creates a Paypal payment button for a percentage of the outstanding balance. Use 100% to specify the template variables ending with NUMfull outstanding balance. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbolNot recommended for emails.
== Currency Conversion ==[PAYPALBUTTON:200] - Creates a Paypal payment button for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount. Not recommended for emails.
Add a H to exclude a gateway from displaying. Example: [CONVERTPAYURL:EUR-USD200:HST] - 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.will hide Stripe
Example: [INVOICECHARGESNUM] [*.2] [CONVERT:EUR-USD] will convert the invoice charge value from Euros to USD with two decimal points.== Text Operators ==
If you use [REPLACE|searchForThisText|replaceWithThisText|textToSearch] - replace "searchForThisText" with "replaceWithThisText" within the multiplier to convert currencies for channels: For example hotel id 123456 and a multiplier to convert USD to EUR at todays rate:text "textToSearch"
123456*[CONVERT:USD-EUR]*
or this to convert EUR to USD[SUBSTR|startCharacterNumber|numberOfCharacters|textToGetSubstringFrom] - get a sub string from "textToGetSubstringFrom" starting at character "startCharacterNumber" (integer, 0 is the first char) with a length of "numberOfCharacters" (integer)
123456*[CONVERT:EUR-USD]
123456*1. [SUBSTR|0|4|[CONVERT:USD-EURGUESTPHONENUM][/]0.85 will convert to Euros and divides the price by 0.85 which raises it by circa 15%
==Account Variables (account This will test for the first 4 characters of the booking) ==Guest phone number.
[ACCOUNTID] - account id of the booked property
[ACCOUNTTEMPLATE1TRIM| string to trim ] - Account Template 1remove whitespace from the start and end of " string to trim "
[ACCOUNTTEMPLATE2] - Account Template 2== iCal Links ==These template variables will create iCal links which allow the booking to be added to a calendar.
[ACCOUNTTEMPLATE3ICALURL] - Account Template 3Calendar link
[ACCOUNTTEMPLATE4ICALURL:16] - Account Template 4 Calendar link with check-in hour. Replace '16' with the hour check-in starts.
[COMMISSIONLIMITICALURL::10] - shows Calendar link with check-out hour. Replace '10' with the available commission amount for hour with the owner account of the bookinghour check-out ends.
[MASTERACCOUNTTEMPLATE1ICALURL:::summary text] - Account Template 1 from master accountCalendar link with a summary text
[MASTERACCOUNTTEMPLATE2ICALURL::::description text] - Account Template 2 from master accountCalendar link with a descriptive text
[MASTERACCOUNTTEMPLATE3] - Account Template 3 from master accountExample:
[MASTERACCOUNTTEMPLATE4] Calendar link with check- Account Template 4 from master accountin time 16:00, check-out time 10:00, the summary text "Booking" and the description text "Sunny Hotel":
==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. [ICALURL:16:10:Booking:Sunny Hotel]
[LOGGEDINACCOUNTID] - account id of the logged in user== Mathematical Operators ==
[LOGGEDINACCOUNTTEMPLATE1] - Account Template 1Place mathematical operators between two numbers <b>or between two template variables</b> that return a number.
[LOGGEDINACCOUNTTEMPLATE2+] - Account Template Example: 2[+] 3 = 5
[LOGGEDINACCOUNTTEMPLATE3-] - Account Template 3Example: 5 [-] 1 = 4
[LOGGEDINACCOUNTTEMPLATE4*] - Account Template Example: 3 [*] 4 = 12
[LOGGEDINAPIKEY/] - apiKeyExample: 15 [/] 5 = 3
[MASTERLOGGEDINACCOUNTTEMPLATE1MIN] - Account Template 1 from master accountExample: 2 [MIN] 3 = 2
[MASTERLOGGEDINACCOUNTTEMPLATE2MAX] - Account Template Example: 2 from master account[MAX] 3 = 3 Brackets are not supported as a way to control processing order, the processing order is fixed as *, /, +, -, MIN, MAX
[MASTERLOGGEDINACCOUNTTEMPLATE3] If you want to use * and - Account Template 3 from master accountin the same calculation, for example you need 20% of the result, then you will need to use the calculation below as a * calculation will be calculated first.
[MASTERLOGGEDINACCOUNTTEMPLATE4INVOICECHARGESNUM] [*]0.2[-][INVOICESECONDITEMNUM][*]0.2[- Account Template 4 from master account][COMMISSIONNUM][*]0.2
<span style== Smart Logic "color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span> Property Template 1-8 and Room Template 1-8 can be used to set calculations. If using Room Templates to make a calculation, then use Room Template 8 before Room Template Variables ==7.
IF style template variables will compare two values and display a text if the comparison is true and an alternative text if If you want to see the comparison is falsevalue 10. Colons : are used between the two comparison values Set Room template 6 = [ROOMTEMPLATE7][+][ROOMTEMPLATE8] and enter 4 in Room template 7 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 condition6 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 [IFROOMTEMPLATE6] and the result =:if this:equals this:display this text|otherwise display this text]10.
[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]=== Rounding and controlling decimal places ===
[IF>:if this:is greater than this:display this text|otherwise display this text]==== Default ====
2 [IF>/] 3 =:if this:is greater than or equal to this:display this text|otherwise display this text]0.66666666666667
[IF<:if this:is less than this:display this text|otherwise display this text]==== Rounding to the nearest integer ====
2 [IF</.0] 3 =:if this:is less than or equal to this:display this text|otherwise display this text]1
[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 to 1,2,3 or 4 decimal place(s) ====
2 [/.1] 3 = 0.7
You can 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 IF the template variables inside other IF variables to create complex logic but the internal IF: must be processed before the external IFThere are special versions of each IF constructed ending with NUM. The math functions will only work with numbers with ^ a decimal point (not a decimal comma) and ~ separators like no thousands separator and no currency symbol. == Currency Conversion == [IF=^CONVERT:EUR-USD] - get the actual conversion rate between two currencies, this^this^same~different]The special versions are processed first so should can be used as with math functions to show alternative currency values. All currencies supported by the internal IF so it's result booking page currency selector can be processed by used. Example: [INVOICECHARGESNUM] [*.2] [CONVERT:EUR-USD] will convert the outer ifinvoice charge value from Euros to USD with two decimal points.The special versions can also be used if If you expect use the multiplier to convert currencies for channels: For example hotel id 123456 and a multiplier to convert USD to EUR at todays rate: or | characters within your data.
IF's are processed in the following order.i.e. all the 123456*[IF=^ will be processed first, then all the [IFIN^ etc. 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