Sam-I-Am
04/17/2025, 8:37 PMCeligo AI
04/17/2025, 8:38 PMAI generated answer (using internal Slack threads):To restrict Avalara API calls when viewing a transaction, you can modify the AVA_functions script in your NetSuite instance. This script controls the behavior of Avalara's tax calculation and reporting functions. In the AVA_functions script, you can add a condition to check if the transaction is tax exempt before making the API call. If the transaction is tax exempt, you can return from the function early to prevent the API call from being made. This can be done by adding a condition like
if(runtime.executionContext==x y z){return}
where x y z
are the relevant contexts for tax exempt transactions.
However, please note that modifying the AVA_functions script should be done carefully as it can affect the compliance guarantee provided by Avalara. It's recommended to have a careful developer and management oversight when making these changes.
Also, keep in mind that each time you check the Estimate, the Sales Order, and the Invoice in Avatax, it counts as 3 separate API calls. So, reducing the number of checks can also help in reducing the number of API calls.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
04/17/2025, 8:38 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.795080364
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.78780216
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.787356377
Celigo AI
04/17/2025, 8:38 PM