When trying to update a Rebate Agreement I get thi...
# suitescript
e
When trying to update a Rebate Agreement I get this error, but only for a certain role. Does anyone know what might be causing this, whether it be a permissions issue or a script issue?
s
It says right there it its that customscript causing the problem, look for
setHours
in the code
e
Well sure, but wouldn't a set hours function impact all roles and not select ones?
s
Depends on the deployment of the script
s
from the error description, it's not the setHours function at fault, it's the thing with setHours on it - i.e. if you have foo.setHours it's
foo
that is to blame, not
setHours
. If
foo
is left null due to permissions (directly or indirectly), then yes indeed the role could be at fault.
☝️ 2
e
Thank you!