also remove line param in this block of code==>...
# suitescript
r
also remove line param in this block of code==> var grossamount = rec.getCurrentSublistValue({ sublistId: 'item', fieldId: 'grossamt', line: 0 });