In here: invoice.selectLineItem(‘item’, 1); you...
# suitescript
j
In here: invoice.selectLineItem(‘item’, 1); you want to keep track of which line you are on if you are adding multiple items, obviously. So third arg should probably be a counter.