Hi All, I am trying to void an Invoice by using tr...
# suitescript
s
Hi All, I am trying to void an Invoice by using transaction.void. However, I keep getting error message "INVALID RECORD TYPE". Does anyone have experience with this? My code: require(['N/transaction'], function(transaction){ transaction.void({type:transaction.Type.INVOICE, id:3 }) })
r
Have you checked the 'void transactions using reversing journals' preference in Setup?
s
Yes. The setting is checked
I should uncheck the setting. And it’s working now. Thank you @Ryan J
r
No worries, glad I could point you in the right direction