source/Application/Model/Order.php
public function getProductVats($blFormatCurrency = true)
    {
        $aVats = [];
        if ($this->oxorder__oxartvat1->value) {
            $aVats[$this->oxorder__oxartvat1->value] = $this->oxorder__oxartvatprice1->value;
        }
        if ($this->oxorder__oxartvat2->value) {
            $aVats[$this->oxorder__oxartvat2->value] = $this->oxorder__oxartvatprice2->value;
        }

        if ($blFormatCurrency) {
            $oLang = \OxidEsales\Eshop\Core\Registry::getLang();
            $oCur = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
            foreach ($aVats as $sKey => $dVat) {
                $aVats[$sKey] = $oLang->formatCurrency($dVat, $oCur);
            }
        }

        return $aVats;
    }
public function getProductVats($blFormatCurrency = true)
    {
        $aVats = [];
        if ($this->oxorder__oxartvat1->value) {
            $aVats[$this->oxorder__oxartvat1->value] = $this->oxorder__oxartvatprice1->value;
        }
        if ($this->oxorder__oxartvat2->value) {
            $aVats[$this->oxorder__oxartvat2->value] = $this->oxorder__oxartvatprice2->value;
        }

        if ($blFormatCurrency) {
            $oLang = \OxidEsales\Eshop\Core\Registry::getLang();
            $oCur = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
            foreach ($aVats as $sKey => $dVat) {
                $aVats[$sKey] = $oLang->formatCurrency($dVat, $oCur);
            }
        }

        return $aVats;
    }
public function getProductVats ( $ blFormatCurrency = true ) { $ aVats = [ ] ; if ( $ this -> oxorder__oxartvat1 -> value ) { $ aVats [ $ this -> oxorder__oxartvat1 -> value ] = $ this -> oxorder__oxartvatprice1 -> value ; } if ( $ this -> oxorder__oxartvat2 -> value ) { $ aVats [ $ this -> oxorder__oxartvat2 -> value ] = $ this -> oxorder__oxartvatprice2 -> value ; } if ( $ blFormatCurrency ) { $ oLang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) ; $ oCur = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActShopCurrencyObject ( ) ; foreach ( $ aVats as $ sKey => $ dVat ) { $ aVats [ $ sKey ] = $ oLang -> formatCurrency ( $ dVat , $ oCur ) ; } } return $ aVats ; }
Returns array of plain formatted VATs stored in order

@param bool $blFormatCurrency enables currency formatting

@return array
Returns array of plain formatted VATs stored in order