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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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