The templates for PDF print and e-mail forms are stored in the form editor under the menu item System - Documents.
The placeholders that are visible in the database view are output using the Smarty syntax. This syntax enables a flexible design of the forms. You can find extensive documentation on Smarty here: Smarty Documentation.
Variables (placeholders)
All variables are listed in the database view with a content preview. You can use these variables as you wish in the template to display dynamic content.
Travelmanager Smarty functions
Here is an overview of individual functions that are used in the Travelmanager:
- DblToC: Outputs a numeric value for currency, e.g.: {2.03|DblToC} results in 2.03
- CToDbl: Converts a formatted value into a number, e.g.: {"2.03"|DblToC} results in 2.03
- TimeDisplay: Converts a number into a readable time, e.g.: {930|TimeDisplay} results in 09:30
- cutTextTimetableOutput: Cuts the text above a certain length, e.g.: {"ABCDEF"|cutTextTimetableOutput:2} results in AB..
- generateQRCode: Generates an encrypted QR code with the transaction number as the code, e.g.: {$reservation_id|generateQRCode:$transaction_no}
Printing tickets / receipts
To print a ticket and a receipt simultaneously with two different printers for a ticket sale, proceed as follows:
1. Create the template for ticket and receipt.
2. Set the templates accordingly under System parameters - Printer.
3. Set up the printers for the respective point of sale under System parameters - Point of sale.