Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
nlapiCommitLineItem does not work in a loop??? Why not??
Hi-
We are setting rev-rec on a line by line basis using RR schedules attached to the items. I am having a problem with my script... It is supposed to set rev-rec line by line for an order when you save (for lines where the item has a RR schedule attached)... Anyway, the RR start and end dates can be set by looping through the lines, selecting each line and using nlapiSetCurrentLineItemValue and then jumping to the next line (this works great)....
The problem is that I can not do this with the RR schedule (I am guessing that it has something to do with RR schedule being a drop-down, and not a date. I even moved the setting of the RR schedule to a second loop and it still does not work.... Anyway, the first line will set correctly, but then the script stops and the fist line remains selected (the item name is highlighted)...