source/Application/Model/Article.php
protected function _preparePrice($dPrice, $dVat, $blCalculationModeNetto = null)
    {
        if ($blCalculationModeNetto === null) {
            $blCalculationModeNetto = $this->_isPriceViewModeNetto();
        }

        $oCurrency = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();

        $blEnterNetPrice = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blEnterNetPrice');
        if ($blCalculationModeNetto && !$blEnterNetPrice) {
            $dPrice = round(\OxidEsales\Eshop\Core\Price::brutto2Netto($dPrice, $dVat), $oCurrency->decimal);
        } elseif (!$blCalculationModeNetto && $blEnterNetPrice) {
            $dPrice = round(\OxidEsales\Eshop\Core\Price::netto2Brutto($dPrice, $dVat), $oCurrency->decimal);
        }

        return $dPrice;
    }
protected function _preparePrice($dPrice, $dVat, $blCalculationModeNetto = null)
    {
        if ($blCalculationModeNetto === null) {
            $blCalculationModeNetto = $this->_isPriceViewModeNetto();
        }

        $oCurrency = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();

        $blEnterNetPrice = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blEnterNetPrice');
        if ($blCalculationModeNetto && !$blEnterNetPrice) {
            $dPrice = round(\OxidEsales\Eshop\Core\Price::brutto2Netto($dPrice, $dVat), $oCurrency->decimal);
        } elseif (!$blCalculationModeNetto && $blEnterNetPrice) {
            $dPrice = round(\OxidEsales\Eshop\Core\Price::netto2Brutto($dPrice, $dVat), $oCurrency->decimal);
        }

        return $dPrice;
    }
protected function _preparePrice ( $ dPrice , $ dVat , $ blCalculationModeNetto = null ) { if ( $ blCalculationModeNetto === null ) { $ blCalculationModeNetto = $ this -> _isPriceViewModeNetto ( ) ; } $ oCurrency = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActShopCurrencyObject ( ) ; $ blEnterNetPrice = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blEnterNetPrice' ) ; if ( $ blCalculationModeNetto && ! $ blEnterNetPrice ) { $ dPrice = round ( \ OxidEsales \ Eshop \ Core \ Price :: brutto2Netto ( $ dPrice , $ dVat ) , $ oCurrency -> decimal ) ; } elseif ( ! $ blCalculationModeNetto && $ blEnterNetPrice ) { $ dPrice = round ( \ OxidEsales \ Eshop \ Core \ Price :: netto2Brutto ( $ dPrice , $ dVat ) , $ oCurrency -> decimal ) ; } return $ dPrice ; }
Depending on view mode prepare price before calculation

@param double $dPrice                 - price
@param double $dVat                   - VAT
@param bool   $blCalculationModeNetto - if calculation mode netto - true

@return double
Depending on view mode prepare price before calculation