Setting Up Custom Forms for Printing
To include customer part numbers on printed sales orders or invoices, set up the SCM custom forms provided in the SuiteApp. Before you set up these forms, review the required printing features in Prerequisites for Customer Part Number.
You’ll need to set up custom transaction forms because their default printing type is set to Basic. This applies even if you’re using the Advanced PDF/HTML Templates feature.
To set up the custom forms for printing:
-
Go to Customization > Forms > Transaction Forms.
-
On the Custom Transaction Forms list, click the Customize or Edit link for either of the SCM custom forms:
-
SCM Invoice - Customer Part No.
-
SCM Sales Order - Customer Part No
-
-
On the Custom Transaction Form page, do the following:
-
In the Printing Type field, choose Advanced.
-
In the Print Template field, select the appropriate sales order or invoice print template:
-
SCM Invoice - Customer Part No.
-
SCM Sales Order - Customer Part No.
-
-
-
Click Save.
If you want to use your own advanced print templates, you can manually add the Customer Part Number column.
Here’s how you can add the column to the Standard Sales Order PDF/HTML Template as an example. You can also use these instructions as a guide if you want to customize the existing print templates for customer part numbers.
To update advanced PDF/HTML templates, you’ll need to know enough CSS and HTML. For more information, see Source Code Editing in the Template Editor.
To add the Customer Part Number column to advanced print templates:
-
Go to Customization > Forms > Advanced PDF/HTML Templates.
-
On the Advanced PDF/HTML Templates list, click the Customize link for the Standard Sales Order PDF/HTML Template.
-
On the Advanced PDF/HTML Template page, click Source Code to transfer to this mode.
-
Add the following codes to show the column header and value for the customer part number:
-
To show the Customer Part Number column header before the Item column, add this code at line 87:
<th align="left" colspan="3" style="padding: 10px 6px;">${item.custcol_scm_customerpartnumber@label}</th>
-
To show the customer part number column value, add this code at line 95:
<td align="left" colspan="3">${item.custcol_scm_customerpartnumber}</td>
Note:In your template, you can add the Customer Part Number column before or after the Item column. Add the code in the line that matches where you want the customer part number to appear. You can do the same thing when customizing existing print templates:
-
SCM Invoice - Customer Part No.
-
SCM Sales Order - Customer Part No.
-
-
Click Save.
Click Preview to see the changes before you save. For more information, see Advanced PDF/HTML Templates.