Jars
12/01/2022, 5:40 PMInvalid Record Type
even after disabling Accounting Pref: VOID TRANSACTIONS USING REVERSING JOURNALS
I added logs and it shows correct invoice and transaction type:
var voidRecordrId = transaction.void({
type: 'invoice',
id: XXXXXXX
});