Marc
04/09/2025, 3:04 PMCeligo AI
04/09/2025, 3:04 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems like you're encountering a RangeError because the tax rate received from the NetSuite Connector is lower than the PST rate retrieved from NetSuite. This is causing an automatic recalculation that results in a negative tax rate. The error is likely occurring because NetSuite is trying to recalculate the tax rate even though you're already providing it. This could be due to a discrepancy between the tax rates in Shopify and NetSuite, or due to a misconfiguration in your tax setup. Here are a few things you could try: 1. Check your tax setup, nexus, and tax schedule in NetSuite. Make sure they match with the tax rates you're importing from Shopify. 2. If you're using a script to import the tax rates, make sure you're correctly parsing the tax rates before performing any calculations. For example, if you're using SuiteScript, you might need to use
parseFloat()
to convert the tax rate to a number before performing any calculations. Here's an example:
javascript
var Tax = nlapiGetCurrentLineItemValue('item', 'taxrate1');
Tax = parseFloat(Tax);
var ExVat = 1 + (Tax / 100);
3. If you're using a third-party tax service like Avatax for current transactions, make sure it's not interfering with the tax rates you're importing from Shopify.
Remember, it's important to thoroughly test any changes in a sandbox environment before deploying them to your live environment.
******
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/09/2025, 3:05 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841299474
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839373
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839044631
Celigo AI
04/09/2025, 3:05 PM