Smarty Syntax for Forms
Templates for PDF printouts and email forms are stored in the form editor under System > Documents.
The placeholders visible in the database view are rendered using Smarty syntax. This makes it possible to create flexible templates with dynamic content.
Variables and Placeholders
All variables are listed in the database view with a content preview. You can use these variables in the template to display dynamic content.
Travelmanager Smarty Functions
Travelmanager provides additional Smarty functions that can be used in templates:
DblToC: Outputs a numeric value as a currency value, for example{2.03|DblToC}returns2,03.CToDbl: Converts a formatted value into a number, for example{"2,03"|CToDbl}returns2.03.ZeitAnzeige: Converts a number into a readable time, for example{930|ZeitAnzeige}returns09:30.cutTextFahrplanausgabe: Shortens text from a defined length, for example{"ABCDEF"|cutTextFahrplanausgabe:2}returnsAB....generateQRCode: Creates an encrypted QR code using the booking number as the code.
{$reservierung_id|generateQRCode:$vorgang_nr}
Printing Tickets and Receipts
To print a ticket and a receipt on two different printers during a ticket sale:
- Create the templates for the ticket and receipt.
- Configure the templates under
System parameters > Printers. - Configure the printers for the relevant point of sale under
System parameters > Point of sale.