It seems creating a new Sales Order throws an error about Location not being set, upon trying to save, before my beforeSubmit event handler function ever runs. That function is where I'm setting the location.
We needed a more flexible Sales Order location default than the static one set in the Accounting Preferences > Order Management, so I'm trying with scripts or workflows but both have this problem of not running the beforeSubmit before validating the Location field.