system.kanoa.order.deleteProductionOrderState(workOrderStatusId, userId)
Deletes a production order state. States that are set as reservedBySystem cannot be deleted.
Parameters
workOrderStatusId Integer: Id of the workOrderStatus to delete
userId Integer:Id of the user executing the function
Returns
# of records modified Integer
message String None if success
Example
success, message = system.kanoa.order.deleteProductionOrderState(1, 123)