Common/EventListener/AbstractSaleListener.php
protected function updateNumber(SaleInterface $sale)
    {
        if (0 == strlen($sale->getNumber())) {
            $this->numberGenerator->generate($sale);

            return true;
        }

        return false;
    }
protected function updateNumber(SaleInterface $sale)
    {
        if (0 == strlen($sale->getNumber())) {
            $this->numberGenerator->generate($sale);

            return true;
        }

        return false;
    }
Updates the number.

@param SaleInterface $sale

@return bool Whether the sale number has been update.