Model/Order.php
public function oePayPalUpdateOrderNumber()
    {
        if ($this->oxorder__oxordernr->value) {
            $updated = (bool) oxNew(\OxidEsales\Eshop\Core\Counter::class)->update($this->_getCounterIdent(), $this->oxorder__oxordernr->value);
        } else {
            $updated = $this->_setNumber();
        }

        return $updated;
    }
public function oePayPalUpdateOrderNumber()
    {
        if ($this->oxorder__oxordernr->value) {
            $updated = (bool) oxNew(\OxidEsales\Eshop\Core\Counter::class)->update($this->_getCounterIdent(), $this->oxorder__oxordernr->value);
        } else {
            $updated = $this->_setNumber();
        }

        return $updated;
    }
public function oePayPalUpdateOrderNumber ( ) { if ( $ this -> oxorder__oxordernr -> value ) { $ updated = ( bool ) oxNew ( \ OxidEsales \ Eshop \ Core \ Counter :: class ) -> update ( $ this -> _getCounterIdent ( ) , $ this -> oxorder__oxordernr -> value ) ; } else { $ updated = $ this -> _setNumber ( ) ; } return $ updated ; }
Updates order number.

@return bool
Updates order number .