Receipt text elements
A receipt layout consists of a number of rows. Each row can contain several columns, depending on the content of the row. The rows and columns can contain different items. Items can be static or dynamic. Dynamic items reflect the data (or language) of the receipt.
Text
A text element can only exist inside a column on a row. A row can have 1 to 4 text columns. A text element can either be static or dynamic and the source (Value Type) of the text can be one of the following:
Free text — A static text that is entered directly into the text element in Receipt Builder. A free text can't be translated with the translation tools. Standard receipts rarely have any free text, except for empty lines. If you modify a receipt and know that you never want to translate it, this is the easiest way to add a static text.
Language — If the value type of a text is 'language', it means that the text is the phrase for a certain label (key) in the language file. The text is semi-static. That is, the text is used as a static text on the receipt but the actual text depends on the current language.
Data — To get a dynamic text, you configure the receipt to fetch its value from a data element in the data file. Data elements can contain either text or numbers. Regardless of which, they are treated the same way.
Data to language — 'Data To Language' is a special construct where a data element in the data file decides which label to use in the language file. For example, the data element can contain the value 'total_label', and the 'total_label' in the language file for English has the phrase 'Total'.
Usage example
Example 33. Usage exampleYou have four rows and two columns. You want to show the text 'Total' in the first column of the first row. In the second column, you want different 'total values', such as different currencies.
In this case, you have a data label called 'totallabel' with the value 'total_label' for the first row. The other rows are empty. In the language file, you have a 'total_label' that points to the phrase 'Total:'.
Properties common for all text elements
Value type — Actual text, language, or data
Value — The value depends on the value type. It 's either the actual text or a reference to the data or language files.
Width — The width of the column the text resides in (defined in percentage of the entire row).
Alignment — The alignment of the text within the column (left, right or center).
Bold — You can only set this property for entire rows. Bold doubles the size of all characters.