Author: Vishnu S
Suitescript Code for getting customer ID from Itemfulfilment Record
Using SUitescript 2.0 function search.lookupFields we can get any fields in sales order, from there we can get customer id for the correspomding customer record. Code snippet:
Issue with search in Extension
The search is not working in the extension. But the search is working in Netsuite.call extension
A Function for showing the validation error message using Javascript
This function can be used to display validation messages in any form like the contact us page. We can pass a message, type, and also the field: which determines under in which ‘div’ the message need to be displayed.
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.
Add an additional column for displaying an image in the Picking ticket PDF document.
Create an additional column for showing the configurator image in the picking ticket (from the Sales order). Check the picking ticket button functionality (Suitelet: JJ SL PickingTicketPrint.js) and update the script as well as the XML file(if available) to add the personalized image corresponding to the item line.
Code for replacing special characters in an URL while passing the URL to an XML file.
URL may contain special characters like &, coma, etc but some special characters will not support on XML. the below code can be used for replacing special characters in the URL.
Adding new column field in Sales order record in Netsuite
For adding a new column field in the Sales record. Go to Customization>List,Records& Fields>Trasaction LIne Fileds 2. Then type the label and id, Check the checkboxes “Sale Item” and “Item Fulfillment” then the column field will be displayed on the Sales order record in Netsuite.
How to Format a variable with two decimal values
For formatting an integer variable with fixed two decimal points (Eg: 12.00, 100.34, 123.00, etc )we can use this method: This method can be used for formatting subtotal, total values in the cart, or checkout pages.
Search is not working in the Extension
The search is not working in the extension. But the search is working in Netsuite. Issue: There are two functions in the extension for getting details of files and folders from the backend(suitescript file), In the execution log of the corresponding ssp application, it is showing as blank object value is not getting. Solution 1:… Continue reading Search is not working in the Extension