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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Add Itemline Salesorder on clientevent save
Hi all,
I want to add item discount automatically when I click save button on salesorder, .
I have created some script on event save record, continue to postsourching, .
function mySaveRecord() { nlapiSelectNewLineItem('item'); nlapiSetCurrentLineItemValue('item', 'item', '2402'); } function postSourcing(type, name) { if(type=='item' && name=='item') { if (nlapiGetCurrentLineItemValue('item','item') == '2402') { nlapiSetCurrentLineItemValue('item', 'rate','-100'); nlapiSetCurrentLineItemValue('item', 'taxcode','8'); nlapiCommitLineItem('item'); } } } When I running script above I got error, .
My browser didn't work and not responding, .:h_a_w:
but sometime, there is no error but item can't be add, .
Is there some one can help my problem ??
0