if you still wanted to do it in an user event scri...
# suitescript
b
if you still wanted to do it in an user event script, you can load and modify the sales order in a loop. After you are done, you do one search to get all the line ids from the different orders