OXID eShop CE
4.9.9
|
Public Member Functions | |
getUserVat (oxUser $oUser, $blCacheReset=false) | |
getArticleVat (oxArticle $oArticle) | |
getBasketItemVat (oxArticle $oArticle, $oBasket) | |
getArticleUserVat (oxArticle $oArticle) | |
Public Member Functions inherited from oxSuperCfg | |
__call ($sMethod, $aArgs) | |
__construct () | |
getConfig () | |
setConfig ($oConfig) | |
getSession () | |
setSession ($oSession) | |
getUser () | |
setUser ($oUser) | |
isAdmin () | |
setAdminMode ($blAdmin) |
Protected Member Functions | |
_getForeignCountryUserVat (oxUser $oUser, oxCountry $oCountry) | |
_getVatForArticleCategory (oxArticle $oArticle) | |
_getVatCountry (oxUser $oUser) |
Protected Attributes | |
$_blCatVatSet = null |
Static Protected Attributes | |
static | $_aUserVatCache = array() |
Static Protected Attributes inherited from oxSuperCfg | |
static | $_oConfig = null |
static | $_oSession = null |
static | $_oRights = null |
static | $_oActUser = null |
static | $_blIsAdmin = null |
Class, responsible for retrieving correct vat for users and articles
Definition at line 7 of file oxvatselector.php.
|
protected |
Returns country id which VAT should be applied to. Depending on configuration option either user billing country or shipping country (if available) is returned.
oxUser | $oUser | user object |
Definition at line 193 of file oxvatselector.php.
|
protected |
return Vat value for oxcategory type assignment only
oxArticle | $oArticle | given article |
Definition at line 92 of file oxvatselector.php.
oxVatSelector::getArticleUserVat | ( | oxArticle | $oArticle | ) |
get article user vat
oxArticle | $oArticle | article object |
Definition at line 175 of file oxvatselector.php.
oxVatSelector::getArticleVat | ( | oxArticle | $oArticle | ) |
get VAT for given article, can NOT be null
oxArticle | $oArticle | given article |
Definition at line 132 of file oxvatselector.php.
oxVatSelector::getBasketItemVat | ( | oxArticle | $oArticle, |
$oBasket | |||
) |
Currently returns vats percent that can be applied for basket item ( executes oxVatSelector::getArticleVat()). Can be used to override basket price calculation behaviour (oxarticle::getBasketPrice())
object | $oArticle | article object |
object | $oBasket | oxbasket object |
Definition at line 163 of file oxvatselector.php.
oxVatSelector::getUserVat | ( | oxUser | $oUser, |
$blCacheReset = false |
|||
) |
get VAT for user, can NOT be null
oxUser | $oUser | given user object |
bool | $blCacheReset | reset cache |
oxObjectException | if wrong country |
Definition at line 33 of file oxvatselector.php.
|
staticprotected |
Definition at line 22 of file oxvatselector.php.
|
protected |
Definition at line 15 of file oxvatselector.php.