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!
Setting Multiselect (Serial Numer) on Line Item
I can’t seem to get the serial number on a line item to populate. This is my post-sourcing function – rate, amount and location are setting correctly but not the serial number.
Any ideas?
if ((nlapiGetFieldValue('custbody12') == 'T') )
{
// alert('sernum ' + nlapiGetFieldValue('custbody31'));
nlapiSetCurrentLineItemValue('item', 'location', 23);
nlapiSetCurrentLineItemValue('item', 'rate', 0);
nlapiSetCurrentLineItemValue('item', 'amount', 0);
nlapiSetCurrentLineItemValue('item', 'serialnumbers', nlapiGetFieldValue('custbody31'));
nlapiCommitLineItem('item')
return true;
}
Thanks as always!
Frank
0