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
nlapiSetLineItemValue on Transaction Line Item Amount
This doesn't seem to work with the amount field...
nlapiSetLineItemValue('item','amount',n,100);It works fine with nlapiSetCurrentLineItem though. My objective is to walk through opportunity lines and update amounts. I'd like to avoid nlapiSetCurrentLineItem because it requires selecting each line first, and traversing the lines this way seems to have sync issues. It also yields annoying messages for each line... "The line total amount is not equal to the item price times the quantity. Is this correct?"
Is there any reason why I can't change the amount field with nlapiSetLineItemValue?
Matt
0