We're in the process of switching to SuiteTax from...
# suitescript
m
We're in the process of switching to SuiteTax from legacy tax with Avalara. In this model, tax calculation is performed in a custom plug-in script. Where in the execution pipeline does this script run? In the past, we could see Avalara's script in the User Event tab on scripted records and we could arrange some of our scripts to run before tax calculation (so we can set tax-related field values) and then some scripts to run after tax is calculated (because we need the transaction total with tax). Where does the SuiteTax plugin run now? It's not listed in the Scripted Records page.
e
Are there no SuiteTax scripts on the record at all? Plugins, I believe, only provide functions that get invoked by Scripts; plugins are not standalone Scripts.
m
There is a UE script from the bundle, but my understanding is you define which tax calculation plugin you want at the Subsidiary level under the tax registrations tab (with SuiteTax you could have multiple providers and plugins) and NS calls the appropriate plugin. Not sure though. The UE script in question is locked so I can't see what it's doing.
e
Right, you specify the Plugin Implementation to use in the configuration, but the actual invocation of that Implementation is done in code by the Script calling a function on the plugin API.
My suspicion would be that ordering the SuiteTax UE is what you want. I'm not sure how else the plugin would get called.
m
Got it. thanks, Eric!
1