Custom rich texts on reports
This feature lets you define custom rich texts (formatted text) and link them to reports. You can use the texts to:
- customize the e-mail used to send a document: subject, message body, CC and BCC recipients;
- print headers or footers in the reports that support them.
You can define each text for a specific company and a specific language, so the same report uses different texts depending on the context.
- Use Search (the magnifying glass icon) to open the Report Layouts page.
- Select the report you need.
- Choose the Custom Texts action. The Report Custom Text page opens, already filtered on the selected report.
Each line on the page is one custom text.
| Field | Description |
|---|---|
| Report ID | Report that the text belongs to. When you select it, the report name is filled in automatically. |
| Report Name | Name of the report. |
| Company Name | Company the text applies to. On a new line the current company is suggested. Leave it blank to use the text in all companies. |
| Language Code | Language of the text. Leave it blank to use the text in any language. |
| Text Key | Type of text. You can choose one of the keys available for the report (see below). |
| Description | Description of the text. It is filled in automatically from the chosen key. |
- EMAIL: available for every report. It defines the e-mail used to send the document.
- HEAD (Header) and FOOT (Footer): available only for reports that support them, and printed on the document. The keys available for a report show up in the list after the report has been run at least once.
Two examples of reports that use the HEAD and FOOT keys:
- the Purchase Return Request uses both header and footer;
- the Customer Detailed Aging uses the footer.
- Select the line and choose the Edit Text action.
- On the Report Custom Text Edit page, fill in these fields:
| Field | Description |
|---|---|
| Custom Subject | Subject of the e-mail. |
| Custom E-Mail CC | Addresses that are always copied. |
| Custom E-Mail BCC | Addresses that are always blind-copied. |
| User E-Mail BCC | If you turn it on and no Custom E-Mail BCC is set, the contact e-mail of the user sending the document is added as BCC. |
- Write the text in the editor below, with any formatting you like (bold, lists, links and so on).
- Close the page. The text is saved automatically.
The e-mail fields only apply to texts with the EMAIL key.
When a text is needed, the system first looks for one defined for the current company and the document language. If it doesn't find one, it uses:
- a text valid for all companies, instead of one for the current company;
- a text with no language (or another language), instead of one in the document language.
When you send a document by e-mail and the report has a text with the EMAIL key, the system automatically fills in the subject, the body (as HTML), CC and BCC from the custom text. If the message already has a body set by another configuration, the custom text isn't applied.
In e-mail texts for issued reminders you can use the #lines# placeholder. When the e-mail is generated, the system replaces it with the list of reminder lines. Lines with a remaining amount show document type, number and due date; other lines show their description.