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