Resolve Sublist Line Item not Committing via Client Script

Issue User is not able to commit a line item via SuiteScript 2.0 Client Script. Solution The reason why the line item is not committing on the script is because the forceSyncSourcing parameter is retains its default value as false. The forceSyncSourcing parameter indicates whether to perform field sourcing synchronously. If set to true, sources dependent field information for… Continue reading Resolve Sublist Line Item not Committing via Client Script

SuiteScript 2.0 Client Script Debugging

Scenario: I recently ran into a problem where I created a Suitelet that downloaded HTML to include in the page. Next, I wanted to add JavaScript. However, when I went to debug the JavaScript in Chrome it threw an error, but the “Sources” tab in Chrome Dev Tools was blank. I saw the red X,… Continue reading SuiteScript 2.0 Client Script Debugging

Use of currentrecord.commitLine(Options) Method with the currentrecord.setCurrentSublistValue(Options) Method via SuiteScript 2.0 Client Script

User would like to set a sublist field’s value on a List Type Sublist using the currentRecord.setCurrentSublistValue(options) method and setting the ignoreFieldChange option to true. There are no errors encountered on the script but the sublist field’s value is not reflected correctly to the UI. The reason for this behavior is because the line item… Continue reading Use of currentrecord.commitLine(Options) Method with the currentrecord.setCurrentSublistValue(Options) Method via SuiteScript 2.0 Client Script

Suitelet Page For Resource Allocation

Scenario: We need to create a suitelet page for resource allocation. The suitelet page should contain similar pages like the same. The Body fields should contain, Project Name. Common project fields. The sublist structure should same as the below image. Solution We can use a client script for the validation and another suitelet for background… Continue reading Suitelet Page For Resource Allocation

Script for Updating shipping cost in ItemFulfilment Record.

This is a Client script for updating shipping costs in the IF record based on a custom field ( Shipping methods). Based on different Ship methods the shipping cost will be set. Except for Ship methods:   ( ‘blank’, Truck (LTL), other, Customer Pickup,  FedExGD Collect, Broker, TBD) The shipping cost will be zero.  in all… Continue reading Script for Updating shipping cost in ItemFulfilment Record.

Case pack quantity updation with the sales order line quantity

Requirement: In the sales orders, we can enter any number of item line quantities. But from the client business perspective, they need to control the quantity based on the item case pack. The quantity should be multiples of the case pack number and if the quantity is not a case pack multiple we need to… Continue reading Case pack quantity updation with the sales order line quantity

Scheduling Fixed Asset Creation

Scenario: If the bill/journal contains lines that don’t have fixed assets created is greater than 100,  The script will create fixed assets with scheduled process. The script will be scheduled for every 1 hour. And the scheduled script will send the email to the bill owner after creating the fixed asset for that bill. Solution:… Continue reading Scheduling Fixed Asset Creation

Automatically creates Fixed Assets from Vendor bill/ Journal

Scenario: Automatically create fixed assets from Bills/Journals when these records are created in Netsuite Solution: When a vendor bill/journal creates corresponding fixed asset records will be created automatically if the line count is less than 10. //JJ UE FA Automation QG-118.js //JJ CS Validations for FA Creation QG-119.js Vendor bill Example:

Add Address Limit Checkbox to Restrict Adding/Editing/Deleting of any Address to the Address book of Customer Record in Netsuite.

Create an entity field(checkbox) and add the condition if the checkbox enabled the customer not allowed to add or delete the address. For achieving the solution we can use the Client script 2.0 : first, need to create a custom entity field in NetSuite with type as a checkbox. Add the enity field to customer… Continue reading Add Address Limit Checkbox to Restrict Adding/Editing/Deleting of any Address to the Address book of Customer Record in Netsuite.