Is it possible to have a script stop another scrip...
# suitescript
p
Is it possible to have a script stop another script from running when it is triggered? I have a button that runs a script (copyEstimate.js) that copies items from an estimate to a sales order (the salesorder is not linked to the estimate in anyway). The copying works fine except that another script on salesorder that handles currency conversion (fxConvert.js) is throwing errors. When copying over the items I do not need fxConvert.js to run. How can I tell copyEstimate.js to bypass fxConvert.js?
s
Change
fxConvert.js
to check the context and not run in
COPY
context is my first thought.
Oh I guess the context isn't actually COPY is it
You maybe add a checkbox (defaulted to true) that says to run (or not)
fxConvert
and check that field value in
fxConvert
p
checkbox may be the way to go. thanks!