H Everyone does anyone know if it's possible to tr...
# suitecommerce
s
H Everyone does anyone know if it's possible to trigger tax recalculation using scritable cart or the LiveOrderModel? Do to business reasons we calculate shipping and I need to recalculate tax on the most recent shipping cost which I update using scriptable cart Client Script
c
@Santiago Are you using SuiteTax?
s
Hi @Chris, nope Avalara so the recalculatetax function doesn't work.
c
I can't remember if Avalara allows you to trigger their tax calculation manually. If they do, then maybe you can do something like this
Application.on('after:LiveOrder.update', function afterLiveOrderUpdate(Model, cart) { ... trigger Avalara ... }
Do that on the suitescript side
s
thanks @Chris for your suggestion, I don;t think there is a manual way to trigger Avalara, the way I figure doutr was to change the shipmethod field in a scriptable cart client script.
👍🏻 1