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.
Update: Narrative Insights has been restored and is now available.
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.
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.
Journal Entry Line Numbers Mis-Match
I have the following code:
var tranRecord = nlapiLoadRecord('journalentry',tranIntId); tranRecord.setLineItemValue('item','class',tranLine,projClass); tranRecord.setLineItemValue('item','department',tranLine,projDiv); tranRecord.setLineItemValue('item','location',tranLine,projLoc); nlapiSubmitRecord(tranRecord); This loads a journal entry with the given Internal ID and tries to change the line
tranLineclass/department/location depending on what is on the corresponding project.
What this does however, is change the previous line's classifications. For instance, I have a given journal entry whose line 266 I want to change but this code is changing line 265.
I tried changing it to
tranLine + 1but that doesn't seem to change anything.
0