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!
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
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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