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."
What is the solution to this problem?
Thanks