Are you doing the itemRec.getField in the loop for...
# suitescript
k
Are you doing the itemRec.getField in the loop for current line item?