Lastly, while your code might work as is, I don't ...
# suitescript
e
Lastly, while your code might work as is, I don't think you need to be doing most of the record loading, the repeated lookups, or the submit fields