I need help. Does anyone know why, when I deploy t...
# suitescript
w
I need help. Does anyone know why, when I deploy this code in NetSuite and try to edit a Sales Order, the log doesn't show and it doesn't let me save the order?
a
probably something to do with
handlers
why not just
Copy code
const beforeSubmit = (context) => {...}

return {
    beforeSubmit
}
☝️ 1
a
context.type === context.UserEventType.EDIT
s
also, not the issue but FWIW,
log.debug()
has no such signature as what you're passing. It works, but it's undocumented and not recommended.