Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Script - Approval errors (?)
When performing a status update on a sales order (for approvals), an order cannot be sent to approval if it was already partially fulfilled.
The problem is, when editing a sales order, the script (SOUserEvent) runs and attempts to update the order if it changed and requires approval. Obviously, if it was edited by a sales rep and then saved, it would not go to Pending Approval - which is great.
However, we had the routine running even when edited by the fulfillment center, which changed the sales order status from Pending Fulfillment to Fulfilled, and the routine ran and saw that for some reason (Credit hold, etc) the customer's sales order was to go for approval, and to it set the order to Pending Approval.