Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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."