How to override tax code in a sales order line tha...
# ask-stanley-ai
n
How to override tax code in a sales order line that has avatax turned on?
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To override the tax code in a sales order line that has Avatax turned on, you can use SuiteScript to set the
custbody_ava_taxoverride
or
custbody_ava_suspendtaxcall
fields. This will disable the mechanism that Avalara uses to disable NetSuite's native tax features. Here is an example of how you might do this:
Copy code
javascript
record.setFieldValue('custbody_ava_taxoverride', 'T');
record.setFieldValue('custbody_ava_suspendtaxcall', 'T');
In this example,
record
is a sales order record. If you are still having trouble, you could try setting the
taxamountoverride
field to null in a user event script that runs after Avalara's script. This could look something like this:
Copy code
javascript
record.setFieldValue('taxamountoverride', null);
Remember, these fields might not be available directly and you might need to customize your form to add these fields. Another approach is to assign tax codes at the item level. The tax code will exempt products. You can use the Avalara tax code guide to find the applicable tax code: https://taxcode.avatax.avalara.com/ Please note that these solutions should be tested in a sandbox environment before being implemented in a live environment.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847046
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846618652
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846618533
Please provide your feedback on this answer.