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