it's possible that a routine is running after your...
# suitescript
a
it's possible that a routine is running after your script executes, like onBeforeSubmit or something like that, that sets the status to something else, overriding whatever you set it to