I found this in SuiteAnswers, but not in a post, so I thought I would post. Was able to remove vendor number from check payee by changing check template from check.entity to check.entity.companyname.
I did get an error in my custom template when I made this change, but resolved by copying entire exact same HTML from custom template with this change and pasted in the standard check template and error did not occur. I had similar issue with removing United States from vendor address on check. I copied code from SuiteAnswers and got an error. I manually typed in exact same code and did not get error.
https://suiteanswers.custhelp.com/app/answers/detail/a_id/67627/loc/en_US
Exclude Auto-Generated Numbers When Printing Checks for Employees and Vendors
Share
Last Updated
01/22/2023
Reading Time
1 min
Answer ID
67627
Applies To
Product: NetSuite 2022.1
Scenario
Auto-Generated Numbers need to be excluded when printing Checks for both Employees and Vendors.
This is achievable by modifying the Advanced PDF Template for Checks to include a conditional statement that will check if there is an Auto-Generated Number for the Vendor and Employee Name.
Solution
- Print Vendor Name without Auto-Generated Numbers
- Navigate to Customization > Forms > Advanced PDF/HTML Templates
- Preferred Check PDF/HTML Template: Click Edit/Customize
- Top Right Corner: Toggle Source Code
- Source Code: Enter ${check.legalname} or ${check.entity.companyname}
- Note: Place the above code at the appropriate line.
- Click Save
- Print Checks for Employees without Auto-Generated Numbers
- Create Custom Transaction Body Field
- Navigate to Customization > List, Records, & Fields > Transaction Body Fields > New
- Label: Enter Label
- Example: Employee Name
- Type: Select Free-Form Text
- Store Value: Enter Checkmark
- Click Applies To
- Purchase: Enter Checkmark
- Click Save
- Modify Advanced PDF Template
- Navigate to Customization > Forms > Advanced PDF/HTML Templates
- Preferred Check Template: Click Edit
- Top Right Corner: Toggle Source Code
- Source Code: Replace ${check.entity} with code below:
- <#if check.entitycontains("VEN")> ${check.entity.companyname<#else>${check.custbody}</#if>
- Click Save