I’m getting a INVALID_RECORD_TYPE error when tryin...
# suitescript
b
I’m getting a INVALID_RECORD_TYPE error when trying
transaction.void({ *type*: 'invoice', id: 25 });
. I see the option to “Void” on the platform and it works, so I’m not sure what’s going on here. Any clues?
f
Do you have "Void Transactions Using Reversal Journals" disabled?
To disable this feature, go to Setup > Accounting > Preferences > Accounting Preferences.
t
Yes, we have disabled that setting
Invoices are voidable through the UI, but we are still getting this error in Suitescript
c
Are you sure "invoice" is the exact string for that type?
t
It is... and the void call is working now. As far as I can tell nothing has changed