Disclaimer: This article is based on a solution provided for a specific support case. It has not been formally validated as a general best practice and may not apply to every account configuration. Please test in a sandbox account (if available) before applying to a production environment, and reach out to Zone & Co Support if you run into issues.
This is a customization. Once applied, your organization is responsible for maintaining this template change, including any impact from future updates, bundle upgrades, or configuration changes. We recommend this change be made by someone with technical knowledge of NetSuite/ZonePayroll templates (e.g., a NetSuite administrator or developer), as incorrect syntax can cause the template to error out.
Overview
By default, payslips display the full bank account number. This article explains how to modify your payslip template so that only the last 3 digits of the bank account number are shown, with the remaining digits masked (e.g., ******123).
I. Locating Your Template
- Navigate to Payroll Administration > Payroll Setup > Configuration Wizard
- Select the configuration to update (if you use multi-subsidiary)
- Click Next until you reach the 5th step, Print & Email
- Take note of the name of the template you use — you'll need this in the next section
II. Editing Your Template
- In your Global Search, enter Payroll Template
- Look for your template (the one noted in Section I) on the list, then click Edit
- Locate the following line in the template, near the text Account No:
<td>${row.account}</td>- Replace it with:
<td>${""|pad:"*",row.account.length-3}${row.account.substr(-3)}</td>- Click Save
Important Note
The "" symbols in the replacement code must be typed in manually after pasting — if they're pasted directly (e.g., from a copy-paste that converts them to "smart quotes" or a different character), the template will error out.
Result
Payslips generated from this template will now display the bank account number masked, showing only the last 3 digits (e.g., ******123), instead of the full account number.
If something goes wrong
If the template errors out after saving, double check the "" characters were typed manually and match standard straight quotation marks.