Anyone who has encountered an issue when using `tr...
# suitescript
j
Anyone who has encountered an issue when using `transaction.void`— I'm getting error:
Invalid Record Type
even after disabling Accounting Pref: VOID TRANSACTIONS USING REVERSING JOURNALS I added logs and it shows correct invoice and transaction type:
Copy code
var voidRecordrId = transaction.void({
    type: 'invoice',
    id: XXXXXXX
});