Firstly, I don't know if `N/search` dislikes types...
# suitescript
a
Firstly, I don't know if
N/search
dislikes types being identified from another module. Try
[search.Type.INVOICE, ...]
I wouldn't put it past Netsuite to have different values in their constants.