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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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