sounds to me like it might be handled better with ...
# suitescript
a
sounds to me like it might be handled better with a workflow using the 'Lock Record' option