The following table lists the newly supported records in SuiteScript for 2024.2.
Author: Amal Mathai
Change Start Date of a Task in Project Record manually
To manually change the start date of a project: Open the task where the update is needed. In the Project Record, set the “Constraint Type” to “Fixed Start.” This allows you to adjust the start date manually.
Adjust the Alignment for Check Advanced PDF/HTML Template
It is a standard behavior within NetSuite for this preference to not work when using an Advanced PDF/HTML Template, because the adjustments that should be made within the template’s code. A workaround for this is to adjust the “top” style to every table that is being printed using the Advanced PDF template. Navigate to Customization > Forms > Advanced PDF/HTML… Continue reading Adjust the Alignment for Check Advanced PDF/HTML Template
Remove Cents Part in Total Amount in Words When Printing Checks
Navigate to Customization > Forms > Advanced PDF/HTML Templates Preferred Check PDF/HTML Template: Click Edit Source Code: Click the Toggle Switch Button Note: If the template is already in Source Code Mode, you may skip Step 3 Press Ctrl + F Search for the code ${check.totalwords} Replace it with this code: <#assign totalWordsArr = check.totalwords?split(‘… Continue reading Remove Cents Part in Total Amount in Words When Printing Checks
List the details of each applied bills in a check PDF template
By default, Apply sublist items are not printed on check templates. However, you can customize the check template as follows to include the Apply sublist. <#if check.apply?has_content> <table > <#list check.apply as apply> <tr> <td >${apply.refnum}</td><td “>${apply.applydate}></td><td >${apply.amount}</td><td “> </tr> </#list></table> </#if>
Check PDF Template- Convert amount to Words
create a new custom field in the Bill Payment Record with a specific formula for default value: Create the Custom Field: Navigate to Customization > Lists, Records, & Fields > Record Types. Select the Bill Payment record type. Click on “New Field”. Set Field Attributes: Fill in the necessary details such as Label, ID, Type,… Continue reading Check PDF Template- Convert amount to Words
Attach Contacts to Basic Projects
When you create a basic project record, the contacts on the customer are not copied to the new project record. To attach a contact to a saved project record: Go to Lists > Relationships > Customers. Click Edit next to the project you want to attach contacts to. Click the Relationships subtab. In the Contact field, select a contact. You can also… Continue reading Attach Contacts to Basic Projects
Suite Script: Update Due date to the last Day of the month (term EOM)
const afterSubmit = (scriptContext) => { try { let newRecord = scriptContext.newRecord; let lookupFields = search.lookupFields({ type: search.Type.TRANSACTION, id: newRecord.id, … Continue reading Suite Script: Update Due date to the last Day of the month (term EOM)
Suite Script: Item receipt Automation for transfer order when item fulfillment is shipped
define([‘N/email’, ‘N/error’, ‘N/record’, ‘N/runtime’, ‘N/search’], /** * @param{email} email * @param{error} error * @param{record} record * @param{record} record * @param{runtime} runtime */ (email, error, record, runtime, search) => { ‘use strict’; /** * Updates the Item Fulfillment record with the reference to the created Item Receipt. * * @param {number} itemReceiptId – The… Continue reading Suite Script: Item receipt Automation for transfer order when item fulfillment is shipped
Summary of Opportunity Search Results: Latest Activities Details of Each Opportunity
To Include key Opportunity information along with details of the latest activity, such as Activity Date, Activity Type, Activity title in the search result. Result Tab Columns: Activity: Date Activity Type Activity Owner Activity Title Additional necessary columns for key opportunity information Summary Type: Set summary type for Activity: Date, Activity Type, Activity Owner, and… Continue reading Summary of Opportunity Search Results: Latest Activities Details of Each Opportunity