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.
Already tried workflow but don't think this is supported at the moment.
Reason why we need the price to be mandatory is because the Items which were saved without prices are causing our sales order integrations to fail, and we then have to amend them and repush integrations. Hopefully with this preventive measure we would deal with the issue proactively.
I really appreciate any help you can provide. Thank you.