source/Application/Model/BasketReservation.php
protected function _reserveArticles($aBasketDiff)
    {
        $blAllowNegativeStock = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blAllowNegativeStock');

        $oReserved = $this->getReservations();
        foreach ($aBasketDiff as $sId => $dAmount) {
            if ($dAmount != 0) {
                $oArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
                if ($oArticle->load($sId)) {
                    $oArticle->reduceStock(-$dAmount, $blAllowNegativeStock);
                    $oReserved->addItemToBasket($sId, -$dAmount);
                }
            }
        }
        $this->_aCurrentlyReserved = null;
    }
protected function _reserveArticles($aBasketDiff)
    {
        $blAllowNegativeStock = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blAllowNegativeStock');

        $oReserved = $this->getReservations();
        foreach ($aBasketDiff as $sId => $dAmount) {
            if ($dAmount != 0) {
                $oArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
                if ($oArticle->load($sId)) {
                    $oArticle->reduceStock(-$dAmount, $blAllowNegativeStock);
                    $oReserved->addItemToBasket($sId, -$dAmount);
                }
            }
        }
        $this->_aCurrentlyReserved = null;
    }
protected function _reserveArticles ( $ aBasketDiff ) { $ blAllowNegativeStock = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blAllowNegativeStock' ) ; $ oReserved = $ this -> getReservations ( ) ; foreach ( $ aBasketDiff as $ sId => $ dAmount ) { if ( $ dAmount != 0 ) { $ oArticle = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; if ( $ oArticle -> load ( $ sId ) ) { $ oArticle -> reduceStock ( - $ dAmount , $ blAllowNegativeStock ) ; $ oReserved -> addItemToBasket ( $ sId , - $ dAmount ) ; } } } $ this -> _aCurrentlyReserved = null ; }
reserve articles given the basket difference array

@param array $aBasketDiff basket difference array

@see oxBasketReservation::_basketDifference
reserve articles given the basket difference array