Quick question for anyone using Avalara/Avatax. C...
# suitescript
s
Quick question for anyone using Avalara/Avatax. Can you set the tax fields via server side suitescript? Having a terrible time importing sales orders via a custom RESTlet and setting the tax field properly. I found this on the interwebs -> https://followingnetsuite.com/2018/11/02/toggling-taxable-on-a-sales-order/ <- but was looking for a second opinion
i
how are you setting the tax?
s
so we have both wholesale and retail customers. Wholesale customer are tax exempt. Retail are not. We are setting it via record.setFieldValue('istaxable','F' ); record.setFieldValue('taxitem','' );
where record is a sales order record
it doesn't work unless we go in after the sales order is saved and uncheck
via the UI
b
try setting the custbody_ava_taxoverride or custbody_ava_suspendtaxcall,
if you are desperate, you can try setting taxamountoverride to null in a user event script that runs after avalara's script
it disables the mechanism that avalara uses to disable netsuite's native tax features
162 Views