Common/EventListener/AbstractSaleListener.php
protected function handleStateChange(SaleInterface $sale)
    {
        if ($this->configureAcceptedSale($sale)) {
            $this->persistenceHelper->persistAndRecompute($sale, false);
        }
    }
protected function handleStateChange(SaleInterface $sale)
    {
        if ($this->configureAcceptedSale($sale)) {
            $this->persistenceHelper->persistAndRecompute($sale, false);
        }
    }
Handles the state change.

@param SaleInterface $sale