Gotcha; shouldn't be too bad to extract the busine...
# suitescript
e
Gotcha; shouldn't be too bad to extract the business logic into a separate module/function and just invoke that from both
beforeSubmit
and
afterSubmit