Here is an example of a search i use to get total ...
# suitescript
n
Here is an example of a search i use to get total line qty for sales orders...