Report templates: choosing the right template, fitting text and invoice totals

Report templates: choosing the right template, fitting text and invoice totals

Summary / Purpose

Use this article to understand how Transvirtual decides which report template to use (for example for a POD, label or invoice), why the wrong logo or template can print, and how to fix text that is cut off or doesn't fit.

Overview

Transvirtual uses report templates to produce documents such as PODs, labels and invoices. More than one template of the same type can exist at once, so the system has to pick one each time a document is produced. It does this using two settings on the template: the priority number and the data filter.

Page URL

Reports > Configuration and Setup > PDF/Excel Report Template

Before you begin

  • Report templates are edited in the Report Designer. See the PDF and Excel Report Templates for how to copy a system template, edit it and make it active.
  • Changing a template's priority or data filter affects every document of that type. Check the preview before you make a template active.

How To

How a template is chosen

When a document is produced, Transvirtual looks at the active templates of that type and works through them from the highest priority number down. It uses the first template whose data filter matches the document.

  • A higher priority number is checked first. The template you want to use as the default should have the highest number among templates that have no filter.
  • A data filter limits a template to certain documents, for example a particular customer.
  • A template with no data filter matches everything. If it also has a high priority number, it is used for every document of that type, and templates with a lower number are never reached.

Why the wrong logo can print on every POD

A common cause is a copied template that has a higher priority number than the general template and no data filter.

For example, if a customer-specific POD template with priority 102 has no data filter, and the general POD template has priority 100, the customer-specific template is checked first, matches every consignment, and its logo prints on every POD.

To fix it:

  1. Go to Reports > Configuration and Setup > PDF/Excel Report Template and open the Your Templates tab.
  2. Select the POD template that is printing on every document.
  3. In the Data Filter section at the bottom of the template detail, add the conditions that limit it to the right customer. Use Select Field, Logic and Select Value, then click Add Rule. See the Data Filters article for how rules work.
  4. Check the priority numbers. The more specific templates (with a data filter) should sit above the general template.
  5. Click Update to save.

When you copy a template from another account or from a system template, always check that the data filter has come across with it.

Fix PODs that have already been produced

Changing the template does not change PODs that were already generated. Once the data filter is correct, each affected consignment's POD can be regenerated.
To regenerate a POD, open the consignment and navigate to the PODs & Files tab. On the relevant POD card, click Regenerate POD Image. Transvirtual will then regenerate the POD using the template currently assigned at the time of regeneration.


Fix text that won't fit

If long text, such as a suburb, state or route, is cut off in its box on a label or other template, you can make it shrink to fit.

  1. Open the template in the Report Designer.
  2. Click the text box you want to change.
  3. Click the Properties tab at the bottom left of the page, then Text Additional.
  4. Turn on Shrink Font to Fit.
  5. Save the template and check the Preview tab.

Word Wrap, in the same Text Additional options, moves cut-off text onto the next line instead of shrinking it.

What invoice totals can show

The totals at the bottom of an invoice cover the main components only: Base, Tax, Levy and Grand Total. The system doesn't support a subtotal for the individual components inside the Base amount, such as the total weight charge. These can't be itemised in the totals.

Frequently asked questions

A template with that logo had a higher priority number than the general template and no data filter, so it matched every POD. Add a data filter to limit it, then regenerate the affected PODs.

Which template is used when two templates both match?

The one with the higher priority number.

Can I show Base Total components such as fuel levy and weight on an invoice total?

The totals can't be broken down into the components inside Base. See "What invoice totals can show" above.