<@U6VBKMYS1> try changing line 11 to `var total = ...
# suitescript
j
@lewisdd try changing line 11 to
var total = context.currentRecord.getValue({
either that or add a line above it,
var currentRecord = context.currentRecord