Discussions
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.