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
Setting trandate field on newly created voided transaction throws error on SS2.0
Hello Gurus,
I'm voiding Vendor Payment through SS 2.0 like this:
var journalEntryId = transaction.void({ type: record.Type.VENDOR_PAYMENT, id: 50 }); journalEntryId = record.submitFields({ type: record.Type.JOURNAL_ENTRY, id: journalEntryId, values: { memo: 'some memo', trandate: format.parse({ value: '2/19/2020', type: format.Type.DATE }) }, options: { enableSourcing: false, ignoreMandatoryFields : true } });but I get error on record module submitFields: The G/L impact of a voided transaction cannot be changed.
On the UI you can set the trandate '2/19/2020' on before Save on the voiding journal, but in SS 2.0 there is no such possibility - the voiding journal entry is first saved with today's date and after this edited with the desired date which leads to "The G/L impact of a voided transaction cannot be changed."
1