I am trying to create a user event script that run...
# suitescript
a
I am trying to create a user event script that runs on before load of a sales order when transformed from an estimate. However when I click the button on estimate to convert (transform) it to a sales order, the
context.type
is logging
edit
Shouldn't it be
transform
and if not how can I know if it is being transformed?
p
Not near a computer to check, but you can probably use the presence of
createdfrom
and the lack of an ID on SO
a
It would have been a good idea, but it appears that there is an id which is the same as the id of the estimate
p
The SO id has the same id as the estimate? WTF?
a
Yup. But you gave me the idea to look at the request parameters. The URL does indicate that it is being transformed from an estimate
Thanks