Hagar Ahmed
09/22/2024, 10:01 AMCeligo AI
09/22/2024, 10:01 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems that setting the tax to 0 when creating a purchase order with a script can be a complex task due to the way NetSuite handles tax calculations. If you're using the US tax engine, there is a Tax Override checkbox that can prevent NetSuite from recalculating the tax. However, if you're using a script to set the tax amount, you may encounter issues. For example, if you're trying to set the
taxamountoverride
field, you might encounter a 'rounding error' for any value that is not zero. This could be due to the way NetSuite handles rounding, and it might not be possible to overcome this issue with a script alone.
If you're trying to set the tax code to Non Taxable on certain orders, you might encounter issues if the orders are being created via a third-party tool like Celigo, which uses the taxes coming from another platform like Shopify. In this case, you might need to use an After Submit user event script to set the line tax code to Non Taxable for each line on the Sales Order. However, this might not work if Celigo is set up to always use the Shopify tax rate, as it could override the native functionality.
In general, it's recommended to set up the taxes correctly in NetSuite, and if it disagrees with your API, it's likely that one of them is wrong. You should also be aware that NetSuite might recalculate taxes under certain circumstances, and you might need to have scripts in place to do the calculation instead, as NetSuite won't do it when you override the amount.
******
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
09/22/2024, 10:02 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836284935
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829095066
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828618944
Celigo AI
09/22/2024, 10:02 AM