Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Make item base price mandatory
Hello Experts,
I would like to make base price of an item (inventory part) mandatory via a script. Below is the UE script.
function setPriceMandatory()
{
nlapiGetLineItemField('price1','price_1_',1).setMandatory(true);
}
When saving item, it is returning "Please provide values for the following fields in the list: Amount" even though there is a base price set in it. Not sure which part of the script is incorrect or missing.
I identified the internal ids by looking at the xml data of the inventory item.
Ideally it should be a UE script or any script type that can work on csv import context since we usually import hundreds of items at a time.
0