source/Application/Model/BasketReservation.php
public function commitArticleReservation($sArticleId, $dAmount)
    {
        $dReserved = $this->getReservedAmount($sArticleId);

        if ($dReserved < $dAmount) {
            $dAmount = $dReserved;
        }

        $oArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $oArticle->load($sArticleId);

        $this->getReservations()->addItemToBasket($sArticleId, -$dAmount);
        $oArticle->beforeUpdate();
        $oArticle->updateSoldAmount($dAmount);
        $this->_aCurrentlyReserved = null;
    }
public function commitArticleReservation($sArticleId, $dAmount)
    {
        $dReserved = $this->getReservedAmount($sArticleId);

        if ($dReserved < $dAmount) {
            $dAmount = $dReserved;
        }

        $oArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $oArticle->load($sArticleId);

        $this->getReservations()->addItemToBasket($sArticleId, -$dAmount);
        $oArticle->beforeUpdate();
        $oArticle->updateSoldAmount($dAmount);
        $this->_aCurrentlyReserved = null;
    }
public function commitArticleReservation ( $ sArticleId , $ dAmount ) { $ dReserved = $ this -> getReservedAmount ( $ sArticleId ) ; if ( $ dReserved < $ dAmount ) { $ dAmount = $ dReserved ; } $ oArticle = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; $ oArticle -> load ( $ sArticleId ) ; $ this -> getReservations ( ) -> addItemToBasket ( $ sArticleId , - $ dAmount ) ; $ oArticle -> beforeUpdate ( ) ; $ oArticle -> updateSoldAmount ( $ dAmount ) ; $ this -> _aCurrentlyReserved = null ; }
commit reservation of given article amount
deletes this amount from active reservations userBasket,
update sold amount

@param string $sArticleId article id
@param double $dAmount    amount to use
commit reservation of given article amount deletes this amount from active reservations userBasket update sold amount