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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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