Resolve HSN Code Error While Setting Via script.

When adding items to a transaction via a User Event Script or using Add Multiple in the UI, the HSN Code is not automatically sourced. This is a known limitation and considered an enhancement request.

Attempting to manually set the HSN Code within a User Event Script and then saving the record will result in the following error:

“Tax Calculation Plugin error: No applicable tax rule was found for this transaction.”

NetSuite uses a before-submit script (India UE GST Transaction) to fetch the HSN Code and calculate taxes based on predefined tax rules.

If we attempt to set the HSN Code after the tax calculation, it triggers the mentioned error.

To resolve this, we should prioritize our script so that it executes before the tax calculation script. This ensures that the tax calculation occurs only after our script has successfully set the HSN Code.

Implementing this change will eliminate the error.

Leave a comment

Your email address will not be published. Required fields are marked *