The Code
field for suppliers is completely optional. It can be used for several purposes, including:
When creating or editing a supplier in the Suppliers tab, enter any combination of letters or numbers in the Code
field:
By default, the supplier’s code will not be shown on printed documents.
The code will, however, show in the Suppliers listing:
and can be entered as a search parameter in dropdown selection menus:
If you wish to add the supplier code to completed forms, edit the theme used to display them. While viewing the theme’s computer code, insert the variable {{ recipient.code }}
at the place in the theme you want the code to appear. This will act as a placeholder variable that inserts the supplier code (when one exists) into your documents.
Example
To show the supplier’s code on printed documents after the supplier’s name, insert {{ recipient.code }}
in the line containing {{ recipient.name }}
as below:
<div style="font-weight: bold">{{ recipient.name }} {{ recipient.code }}</div>
The result will be: