source/Application/Model/Article.php
protected function _applyVAT(\OxidEsales\Eshop\Core\Price $oPrice, $dVat)
    {
        startProfile(__FUNCTION__);
        $oPrice->setVAT($dVat);
        /** @var \OxidEsales\Eshop\Application\Model\VatSelector $oVatSelector */
        $oVatSelector = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\VatSelector::class);
        if (($dVat = $oVatSelector->getArticleUserVat($this)) !== false) {
            $oPrice->setUserVat($dVat);
        }
        stopProfile(__FUNCTION__);
    }
protected function _applyVAT(\OxidEsales\Eshop\Core\Price $oPrice, $dVat)
    {
        startProfile(__FUNCTION__);
        $oPrice->setVAT($dVat);
        /** @var \OxidEsales\Eshop\Application\Model\VatSelector $oVatSelector */
        $oVatSelector = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\VatSelector::class);
        if (($dVat = $oVatSelector->getArticleUserVat($this)) !== false) {
            $oPrice->setUserVat($dVat);
        }
        stopProfile(__FUNCTION__);
    }
protected function _applyVAT ( \ OxidEsales \ Eshop \ Core \ Price $ oPrice , $ dVat ) { startProfile ( __FUNCTION__ ) ; $ oPrice -> setVAT ( $ dVat ) ; /** @var \OxidEsales\Eshop\Application\Model\VatSelector $oVatSelector */ $ oVatSelector = \ OxidEsales \ Eshop \ Core \ Registry :: get ( \ OxidEsales \ Eshop \ Application \ Model \ VatSelector :: class ) ; if ( ( $ dVat = $ oVatSelector -> getArticleUserVat ( $ this ) ) !== false ) { $ oPrice -> setUserVat ( $ dVat ) ; } stopProfile ( __FUNCTION__ ) ; }
Applies VAT to article

@param \OxidEsales\Eshop\Core\Price $oPrice Price object
@param double                       $dVat   VAT percent
Applies VAT to article