<@U3Y7UJ1C0> you want the grandTotal to be defined...
# suitescript
t
@mg2017 you want the grandTotal to be defined above your iteration, then just add the amount to it before your return