Doing what <@U2ASTKU79> said, using invoice instea...
# suitescript
j
Doing what @mattdahse said, using invoice instead of Sales Order should eliminate the issue, if that's what it is