When a user event script executes before load on t...
# suitescript
s
When a user event script executes before load on the print context on a vendor bill payment with credits applied, it usually provides access to the "credit" sublist in the scriptContext.newRecord parameter - however, I just found one account where it's not available and have no idea why. Any ideas why?
s
Permission problem maybe, is it running with elevated permissions and what role is the person where its unable to access this list.
s
Doesn't appear to be permission related unfortunately - seeing this as admin. However, I just changed form associated to the payment and it appeared in the available sublsits. I think I'm getting somewhere now...
s
Yep sounds like the right path then (and also annoying)
s
Ah so annoying - the credit sublist is only available when the form uses advanced pdf templates for printing. Doesn't work when using the basic pdf layout.
I guess that means change of plans...