Changes

Jump to navigation Jump to search

Template Variables

1,264 bytes added, 10:55, 14 October 2019
no edit summary
[CARDLASTFOUR] - last 4 digits of card
 
[CARDFIRSTSIX] - first 6 digits of card
[INVOICEEXTRAITEMQTY1] - quantity of extra invoice item 1 (number can be between 0 to 20)
 
[INVOICEGROSS:1] - gross amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
 
INVOICEGROSSNUM:1] gross amount of the inserted VAT rate (number is the VAT rate)
 
[INVOICENET:1] - net amount of the inserted VAT rate (number is the VAT rate)
 
[INVOICENETNUM:1] - net amount of the inserted VAT rate (number is the VAT rate), value is displayed with a decimal point and no thousands separator (for calculations)
 
[INVOICEVAT:1] - VAT amount of the inserted VAT rate (number is the VAT rate)
 
[INVOICEVATNUM:1] 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)
[UPSELLTABLE] - table with all upsell items
CEX - charges excluded (charges will not be shown)
CON - currency conversion. Example: CONEURUSD will convert the first currency (Euros) to the second currency (USD). CON1.234 would multiply the prices by 1.234
CUA - currency symbol showing after the numbers. Example: CUA€ will show € after the figures
CUB - currency symbol showing before the numbers. Example: CUB€ will show € before the figures
 
DAT - adds a date column
DEC - Decimal points. Example: DEC, will show a comma as decimal point. If nothing is set the system will use the default for the language
MUL - multiplier. Example: MUL1.2 will multiply all prices by 1.2
DAT NOC - adds a date columncharges will not be displayed but their vat values are still calculated for the vat summary (VAT)
PAY - shows payments
[INVOICEETEMPLATE8] - template value 8 of the invoice account the invoice is assigned to or blank
 
== Guest Variables ==
[GUESTIDS] - comma separated list of guest Id's connected to the booking
 
[GUESTFLAGTEXTS] - comma separated list of flag text values for each guest (when not empty) connected to the booking
== Payment Request Variables ==
[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.
 
== Mathematical Operators ==
[MASTERLOGGEDINACCOUNTTEMPLATE4] - Account Template 4 from master account
 
== Smart Template Variables ==
Note== Encoding Template Variables ==   [ENCODEURL: Always use the template variables ending with NUM if numbers are involved. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbol.value] encode value for URL data format
[ENCODEJSON:value] encode value for JSON data format
[ENCODEURL:]
[ENCODEJSON Note:] Always use the template variables ending with NUM if numbers are involved. The math functions will only work with numbers with a decimal point (not a decimal comma) and no thousands separator and no currency symbol.

Navigation menu