A question anyone who is currently using Avalara. ...
# general
m
A question anyone who is currently using Avalara. Does the Avalara bundle only work when its a user creating or editing a sales order? Does it actually update the taxes on an order if that order is modified by a script to add lines to it, no user interaction?
s
The api call is done based on save of transaction so it should work.
m
Were in the process of doing UAT for it. We have a script that opens a sales order, adds lines based on certain criteria, then saves the order. We are finding that the tax is not being updated when this process is done.
e
Are you doing the UAT in prod or sandbox? If SB do you have SB connected to Avalara?
m
@Eric B In the sandbox and it's connected to Avalara. When a sales order is initially created and saved, the taxes are being added by Avalara. There is an afterSubmit script that runs, adding any required line items based on what was on the initial order when created. It's after the script adds these line items, Avalara is not making a tax call again and updating the taxes on the order. It's looking like the bundle only runs if the general context is from a user in the UI and not from any server side processes like an afterSubmit script. The afterSubmit script runs first before the Avalara script runs based on the order in the scripted records page.
t
Avalara will work on a aftersubmit script. I would check the scripted records and edit the sequence the scripts will run