Template Variables: Difference between revisions
Jump to navigation
Jump to search
| Line 1,706: | Line 1,706: | ||
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. | 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 :- | |||
Example 1: 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" | Example 1: 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" | ||
| Line 1,730: | Line 1,720: | ||
[<span style="color: #019cde">IF=:[STATUS]:Confirmed:PAID|[IF<^[INADVANCE]^30</span><span style="color: #75d5ad">^Payment Due Date: As soon as possible</span><span style="color: #fe746c">~Payment Due Date: [FIRSTNIGHT:- 30 days]]</span>] | [<span style="color: #019cde">IF=:[STATUS]:Confirmed:PAID|[IF<^[INADVANCE]^30</span><span style="color: #75d5ad">^Payment Due Date: As soon as possible</span><span style="color: #fe746c">~Payment Due Date: [FIRSTNIGHT:- 30 days]]</span>] | ||
[INWORDS] - writes out a number in words. This works in English only. | |||
Expamles: | |||
[INWORDS] 10 will write out then | |||
[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 | |||
== Encoding Template Variables == | == Encoding Template Variables == | ||