code: protected function updateNumber(SaleInterface $sale)
      {
          if (0 == strlen($sale->getNumber())) {
              $this->numberGenerator->generate($sale);
  
              return true;
          }
  
          return false;
      }
docs: Updates the number.
  
  @param SaleInterface $sale
  
  @return bool Whether the sale number has been update.