Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Script only working 95% of the time
I have a custom suitescript created to automatically set the correct tax code for customers who are marked taxable (this is set so that if either the location or ship via change, the script is activated). I also have a suitescript that automatically sets the location if any of 3 customers are selected (we have a generic retail custom created for each of our three locations. When this customer is selected, we want the location to automatically change to the correct location).
The problem is happening on Cash Sales where the customer is any one of the three customers that the suitescript looks for to change the location. Most of the time the customer is selected, the location is changed, and the tax is corrected. But 5% of the time the location is changed and the tax goes blank. It also unchecks the taxable box.