How to make your own custom print template

This feature was added in vintrace Version 6.1.1

In countries outside of USA, a Work Order is referred to as a Cellar Note. In keeping with regional terminology differences, please substitute Work Order for Cellar Note below.

A vintrace printed work order is made from different template sections for each of the job types.  If you would like to customize the layout for a particular type of job, you can download a copy of the default template, so you can modify them before uploading.  To do this, go to Winery Setup – Templates – Default Print Templates to download the default templates to work from. Click on the filename to download the template that you want.

From there, you can lay out the document as you see fit. Try to keep the tags intact unless you do not want to see them in the template.

Adding in tags

Click on this link to see the list of tags for each of the winery operation.

An important note here is that you always need to add the {{TableStart:info}} opening tag and {{TableEnd:info}} closing tag to the start and end of the document body.

Table start info

For the document header, you need to add {{TableStart:taskGroup}} opening tag and {TableStart:taskGroup}} closing tag (these are already in the default template you would have downloaded above, so just leave them in there).

Header

If you need to add a tag to your template, first select the area you wish to add it. In this example, we will re-add a deleted tag.

Adding tag 1

Next, you can either copy the tag from the tags list of each document and paste it in the template or type the tag directly into the template.

Make sure you enclose the field name with double curly braces, for this example we added the tag {{operationName}}.

You will need to ensure that any formatting applied (e.g. bold, italic, colours, etc.) are applied to the whole tag and field.

Tip: If a tag is appearing on your generated work order (cellar note), check if the spelling is correct or if the tag is supported for the template you are using.

Adding tag 2

Using lists in custom templates

When dealing with lists of items such as the wine list in multi additions, you need to add the opening and closing tag of the list to the template. The {{TableStart:<listName>}} opening tag should always be added to the beginning of the list and the {{TableEnd:<listName>}} closing tag to the end of the list. You need to make sure that both need to appear in the same row or cell.

In the example below we have added the opening tag {{TableStart:wineList}} and closing tag {{TableEnd:wineList}} for the list “wineList” to a start and end of a table in the multi additions template.

Using lists 1

The result is that the table enclosed in the opening and closing tag will be repeated for each entry in the wine list. In the example work order output below, each table is repeated for the 2 vessels in the multi additions list.

Using lists 1-a

Another scenario is adding the opening and closing tag to the same row within a table. For the example below, we have added the opening and closing tag of the list of the bill of materials called “bomItems” to the same row inside a table in the packaging template.

Using lists 2

The result is that each entry in the “bomItems” list will be listed in a row. In the example below, each bill of materials (BOM) for the stock item in the packaging operation is listed in a single row.

Using lists 2-a