function validateLine(scriptContext){ let recCurrent = scriptContext.currentRecord; if(scriptContext.currentRecord.type == “creditmemo”){ log.debug(“scriptContext.mode”,mode); var lineCount = recCurrent.getLineCount({ sublistId: ‘item’ })… Continue reading Setting line number
Tag: validateline
Making Item Rate field mandatory via scripting
The requirement was to make the rate field on item table to be mandatory when submitting an item. Used a client script “ValidateLine” function to show an error message while user submit the item line without rate. This works during create and edit of transaction record.
Showing the On Order Quantity of items in the Sales order
//Info: SZCO-4 Solution:We are going to include a new transaction line field in NetSuite. “ON ORDER” will be the field name, and a decimal number will be the field type. This field is used to display the quantity of the item that is “ON ORDER.” Based on the transaction body level location, the value for… Continue reading Showing the On Order Quantity of items in the Sales order
Alert when an item with quantity greater than Reorder point is selected in the Sales Order
//Info: POW-292