Scenario The customer would like to show discount and shipping cost in the sales order pdf as inline. It should be shown even if the PDF is generated via print PDF icon or using Suitelet script. The current PDF is as below. Solution Ensure that following feature is enabled in the NetSuite account Check this… Continue reading Discount and Shipping Cost not showing in PDF even if inline discount shipping is enabled
Category: Suite scripts samples
All the samples related to suite scripts.
Change Class of Settlement Record by taking the value from Line item of another Record.
//Info: JOIN-205 Note:This part is added under Reduce context stage in MapReduce script.‘dataObj’ , which is mentioned initially holds the value of records that the user chooses. This can be done in getInputData stage.
Wave PDF Sample
Here is a sample code for wave PDF using the advanced PDF feature in NetSuite
Return Multiple Values to Next Script Entry Points
There are scenarios where we have to pass or return multiple values to another Entry point, so that value can process as per the requirement.Normally, The first Return statement that holds some specific data in any Entry point is accessible to next Point by logging the context in initial line.This is not feasible in cases… Continue reading Return Multiple Values to Next Script Entry Points
Store Errors in script as a csv file
//Info: JOIN-203 Bugs & errors are common in every script. Usually, we used to Identify these by using try and catch statements.what if there are chances to get ‘n’ number of errors in each part…? its better if we are able identify errors in initial run, save it & continue the next section. Even though… Continue reading Store Errors in script as a csv file
Show different Searches in different Subtabs in a Suitelet Page
How to add values to an email template from a custom record and send email
We can use email templates for easily sending emails between two records having a contact. Email templates are helpful when the emails should follow a specific format or have some common content like company logo and address.Email templates can be accessed using the navigation: Documents> Templates > Email templatesIf needed to add field values from… Continue reading How to add values to an email template from a custom record and send email
Vendor Bill error – “Your formula has an error in it…”
Encountering an error on the Approval Page of transactions may hinder users toperform bulk approval which can also prolong their daily tasks and processes.Users can mass submit for approve, reject, re-submit for approval in the ApproveVendor Bill Page if the Approval Routing = T. The Actions in the Approve Bills Page arethe actions from the… Continue reading Vendor Bill error – “Your formula has an error in it…”
Backend Suitelets
Backend Suitelets are suitelets that do not generate any UI elements. Their sole purpose is to execute backend logic, which can then be parsed by other parts of a custom application. Just like a Suitelet that builds NetSuite pages, a backend Suitelet is invoked by making HTTP GET or POST calls to a NetSuite-generated Suitelet… Continue reading Backend Suitelets
Project Status Field Update by Scripts NCPS-70
Project Status Filed Update Using Map Reduce Script.