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 })
})