source/Application/Model/VatSelector.php
public function getArticleVat(\OxidEsales\Eshop\Application\Model\Article $oArticle)
    {
        startProfile("_assignPriceInternal");
        // article has its own VAT ?

        if (($dArticleVat = $oArticle->getCustomVAT()) !== null) {
            stopProfile("_assignPriceInternal");

            return $dArticleVat;
        }
        if (($dArticleVat = $this->_getVatForArticleCategory($oArticle)) !== false) {
            stopProfile("_assignPriceInternal");

            return $dArticleVat;
        }

        stopProfile("_assignPriceInternal");

        return \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('dDefaultVAT');
    }
public function getArticleVat(\OxidEsales\Eshop\Application\Model\Article $oArticle)
    {
        startProfile("_assignPriceInternal");
        // article has its own VAT ?

        if (($dArticleVat = $oArticle->getCustomVAT()) !== null) {
            stopProfile("_assignPriceInternal");

            return $dArticleVat;
        }
        if (($dArticleVat = $this->_getVatForArticleCategory($oArticle)) !== false) {
            stopProfile("_assignPriceInternal");

            return $dArticleVat;
        }

        stopProfile("_assignPriceInternal");

        return \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('dDefaultVAT');
    }
public function getArticleVat ( \ OxidEsales \ Eshop \ Application \ Model \ Article $ oArticle ) { startProfile ( "_assignPriceInternal" ) ; // article has its own VAT ? if ( ( $ dArticleVat = $ oArticle -> getCustomVAT ( ) ) !== null ) { stopProfile ( "_assignPriceInternal" ) ; return $ dArticleVat ; } if ( ( $ dArticleVat = $ this -> _getVatForArticleCategory ( $ oArticle ) ) !== false ) { stopProfile ( "_assignPriceInternal" ) ; return $ dArticleVat ; } stopProfile ( "_assignPriceInternal" ) ; return \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'dDefaultVAT' ) ; }
get VAT for given article, can NOT be null

@param \OxidEsales\Eshop\Application\Model\Article $oArticle given article

@return double
get VAT for given article can NOT be null