in a script you'd need to loop through all line it...
# suitescript
a
in a script you'd need to loop through all line items on the transaction, or utilize a summary saved search @pbandshea