David Lopez
02/24/2025, 4:27 PMCeligo AI
02/24/2025, 4:27 PMAI generated answer (using internal Slack threads):To override a tax rate on the line level of an order via SuiteScript, you would need to change the tax code associated with that line. However, it's important to note that you cannot directly edit or override the tax rate field in the Sales Order line by script. If you're using Avalara/Avatax, you might encounter difficulties setting the tax fields via server-side SuiteScript. In this case, you can try setting the
custbody_ava_taxoverride
or custbody_ava_suspendtaxcall
fields. If you're still having trouble, you could try setting taxamountoverride
to null in a user event script that runs after Avalara's script. This would disable the mechanism that Avalara uses to disable NetSuite's native tax features.
If you're using the US tax engine, there is a Tax Override checkbox that prevents NetSuite from recalculating the tax. However, it's not clear if this can be set via SuiteScript.
******
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
02/24/2025, 4:27 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854129851
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845637441
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842301369
Celigo AI
02/24/2025, 4:27 PM