Model/OrderManager.php
public function updateOrderStatus()
    {
        $orderUpdated = false;
        $order = $this->getOrder();

        if (!is_null($order)) {
            $orderPayment = $this->getOrderPayment();
            $order = $this->recalculateAmounts($order);
            $newOrderStatus = $this->calculateOrderStatus($orderPayment, $order);
            $this->persistNewOrderStatus($order, $newOrderStatus);
            $orderUpdated = true;
        }

        return $orderUpdated;
    }
public function updateOrderStatus()
    {
        $orderUpdated = false;
        $order = $this->getOrder();

        if (!is_null($order)) {
            $orderPayment = $this->getOrderPayment();
            $order = $this->recalculateAmounts($order);
            $newOrderStatus = $this->calculateOrderStatus($orderPayment, $order);
            $this->persistNewOrderStatus($order, $newOrderStatus);
            $orderUpdated = true;
        }

        return $orderUpdated;
    }
public function updateOrderStatus ( ) { $ orderUpdated = false ; $ order = $ this -> getOrder ( ) ; if ( ! is_null ( $ order ) ) { $ orderPayment = $ this -> getOrderPayment ( ) ; $ order = $ this -> recalculateAmounts ( $ order ) ; $ newOrderStatus = $ this -> calculateOrderStatus ( $ orderPayment , $ order ) ; $ this -> persistNewOrderStatus ( $ order , $ newOrderStatus ) ; $ orderUpdated = true ; } return $ orderUpdated ; }
Update order manager to status get from order status calculator.

@return bool
Update order manager to status get from order status calculator .