Would you expect postSourcing() to execute when pr...
# suitescript
c
Would you expect postSourcing() to execute when pressing edit on a transaction? If yes, why?
e
I wouldn't expect it to fire simply by virtue of entering Edit mode, but most records we customize are going to have fields get populated or modified during
pageInit
, and those changes I would expect to trigger
postSourcing
c
It's not clear to me why this inventorylocation update script uses postSourcing in the first place and I'm a little reluctant to remove it in favour of another entry point.
context.sublistId is null at the point it's first triggered though
could just do an early exit on that condition instead of a larger refactoring.
1
e
Might be an interesting test to disable all Workflows and Client Scripts on the record type except for your
postSourcing
, and see if it still gets triggered.