Creating the Dunning PDF Header Template
Creating templates requires knowledge of XML and FreeMarker.
FreeMarker templates are used for dunning PDF letters.
Header templates must be enclosed in <div></div>
tags.
Example
<div>
<!-- put header information here -->
</div>
Information from the company information record and subsidiary record can be displayed in the header, but you must use a specific format, as described in the following table.
Record |
Description |
Usage |
---|---|---|
Subsidiary |
Contains information from the subsidiary record. |
Prefix with |
companyInformation |
Contains information from the company information record. |
Prefix with |
All fields included in the NetSuite records browser can be displayed in the header. See Working with the SuiteScript Records Browser.
In addition to the fields on supported records, you can also use additional fields that are not exposed to SuiteScript. See Synthetic Fields for Scriptable Templates.
Custom fields can also be displayed.
The following examples show the correct format for fields in the dunning header template:
These fields can be added to both PDF and email template types.
logoURL
<span><img src="${companyInformation.logoUrl}"/></span>
Displays the company logo.
If the logo is too big, it overlap elements on the template body. Be aware of the logo size recommended by NetSuite. For more information, see Uploading Your Logo.
Subsidiary logo cannot be displayed because of a current limitation of FreeMarker.
companyname or name
<span>${companyInformation.companyname}</span>
<span>${customer.subsidiary.name}</span>
Displays the company name.
Data is sourced from the subsidiary name in a OneWorld account or the company name in the Company Information page in a non-OneWorld account.
addresstext
<span>${companyInformation.addresstext}</span>
Displays the company billing address.
Subsidiary billing address cannot be displayed because of a current limitation of FreeMarker.
Related Topics
- Dunning Overview
- Creating Dunning Template Records
- Creating Dunning Letter PDF Templates
- Creating the Dunning PDF Footer Template
- Creating the Dunning PDF Body Template
- Including Fields from the Transaction Saved Search in Dunning Templates
- Including Information from NetSuite Records in Dunning Templates