Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Adding line items to RevRec Schedule
I filed this as a support case/defect, but didn't get a useful answer there, so I'm trying the forums. For reference sake, case 1387740 and defect 207916.
I am attempting to add lines on a rev rec schedule using SuiteScript. At this point, I am attempting proof-of-concept scripts in the sandbox debugger.
Through the UI, I can add a new line to an RRS with amount zero. I tried the following code, but no line got added to the RRS.
-------------
var rrs = nlapiLoadRecord('revrecschedule', 7491);
rrs.selectNewLineItem('recurrence');
rrs.setCurrentLineItemValue('recurrence','incomeaccount','182');
rrs.setCurrentLineItemValue('recurrence','defrevaccount','316');
rrs.setCurrentLineItemValue('recurrence','recamount',0);