Creating the Dunning PDF Header Template

Note:

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 customer.subsidiary if obtaining information from the subsidiary record.

companyInformation

Contains information from the company information record.

Prefix with companyInformation if obtaining information from the company information record.

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:

Note:

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.

Note:

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.

Note:

Subsidiary billing address cannot be displayed because of a current limitation of FreeMarker.

Related Topics

General Notices