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!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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
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