source/Application/Model/VatSelector.php
protected function _getForeignCountryUserVat(\OxidEsales\Eshop\Application\Model\User $oUser, \OxidEsales\Eshop\Application\Model\Country $oCountry)
    {
        if ($oCountry->isInEU()) {
            if ($oUser->oxuser__oxustid->value) {
                return 0;
            }

            return false;
        }

        return 0;
    }
protected function _getForeignCountryUserVat(\OxidEsales\Eshop\Application\Model\User $oUser, \OxidEsales\Eshop\Application\Model\Country $oCountry)
    {
        if ($oCountry->isInEU()) {
            if ($oUser->oxuser__oxustid->value) {
                return 0;
            }

            return false;
        }

        return 0;
    }
protected function _getForeignCountryUserVat ( \ OxidEsales \ Eshop \ Application \ Model \ User $ oUser , \ OxidEsales \ Eshop \ Application \ Model \ Country $ oCountry ) { if ( $ oCountry -> isInEU ( ) ) { if ( $ oUser -> oxuser__oxustid -> value ) { return 0 ; } return false ; } return 0 ; }
get vat for user of a foreign country

@param \OxidEsales\Eshop\Application\Model\User    $oUser    given user object
@param \OxidEsales\Eshop\Application\Model\Country $oCountry given country object

@return mixed
get vat for user of a foreign country