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.
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