I did it this way because I have a similar functio...
# suitescript
k
I did it this way because I have a similar function for updateLines which uses the same data in the same format