This message was deleted.
# ask-stanley-ai
s
This message was deleted.
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that overriding the tax amount in invoices can be achieved using SuiteScript by setting the 'taxamountoverride' field. However, this approach requires heavy scripting to work correctly and is not straightforward. Here is a sample code snippet that was shared in the conversations:
Copy code
javascript
currentRecord.setValue('taxamountoverride', taxTotal)
In this code, 'currentRecord' is the record you are working with, 'taxamountoverride' is the field you want to set, and 'taxTotal' is the value you want to set it to. Please note that this approach was used in the context of overriding the tax total on Return Authorizations and Cash Refunds. The user also mentioned that they had Avalara integration turned off when loading legacy sales orders and invoices. Another user mentioned that for existing transactions that have already charged tax, the Tax Override checkbox doesn't work as expected. Avalara "remembers" the tax and no matter what you do, it won't override the tax if you need to, so you'll need to script it. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.866414309
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.85364747
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851599514
Please provide your feedback on this answer.