source/Application/Model/Basket.php
public function getArtStockInBasket($sArtId, $sExpiredArtId = null)
    {
        $dArtStock = 0;
        foreach ($this->_aBasketContents as $sItemKey => $oOrderArticle) {
            if ($oOrderArticle && ($sExpiredArtId == null || $sExpiredArtId != $sItemKey)) {
                if ($oOrderArticle->getArticle(true)->getId() == $sArtId) {
                    $dArtStock += $oOrderArticle->getAmount();
                }
            }
        }

        return $dArtStock;
    }
public function getArtStockInBasket($sArtId, $sExpiredArtId = null)
    {
        $dArtStock = 0;
        foreach ($this->_aBasketContents as $sItemKey => $oOrderArticle) {
            if ($oOrderArticle && ($sExpiredArtId == null || $sExpiredArtId != $sItemKey)) {
                if ($oOrderArticle->getArticle(true)->getId() == $sArtId) {
                    $dArtStock += $oOrderArticle->getAmount();
                }
            }
        }

        return $dArtStock;
    }
public function getArtStockInBasket ( $ sArtId , $ sExpiredArtId = null ) { $ dArtStock = 0 ; foreach ( $ this -> _aBasketContents as $ sItemKey => $ oOrderArticle ) { if ( $ oOrderArticle && ( $ sExpiredArtId == null || $ sExpiredArtId != $ sItemKey ) ) { if ( $ oOrderArticle -> getArticle ( true ) -> getId ( ) == $ sArtId ) { $ dArtStock += $ oOrderArticle -> getAmount ( ) ; } } } return $ dArtStock ; }
Returns stock of article in basket, including bundle article

@param string $sArtId        article id
@param string $sExpiredArtId item id of updated article

@return double
Returns stock of article in basket including bundle article