Definition at line 8 of file oxvatselector.php.
Public Member Functions | |
getUserVat (oxUser $oUser, $blCacheReset=false) | |
getArticleVat (oxArticle $oArticle) | |
getBasketItemVat (oxArticle $oArticle, $oBasket) | |
Protected Member Functions | |
_getForeignCountryUserVat (oxUser $oUser, oxCountry $oCountry) | |
_getVatForArticleCategory (oxArticle $oArticle) | |
Static Protected Attributes | |
static | $_aUserVatCache = array() |
get VAT for user, can NOT be null
oxUser | $oUser given user object | |
bool | $blCacheReset reset cache |
oxObjectException | if wrong country |
Definition at line 26 of file oxvatselector.php.
get vat for user of a foreign country
Definition at line 58 of file oxvatselector.php.
oxVatSelector._getVatForArticleCategory | ( | oxArticle $ | oArticle | ) | [protected] |
return Vat value for oxcategory type assignment only
oxArticle | $oArticle given article |
Definition at line 77 of file oxvatselector.php.
oxVatSelector.getArticleVat | ( | oxArticle $ | oArticle | ) |
get VAT for given article, can NOT be null
oxArticle | $oArticle given article |
Definition at line 122 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 150 of file oxvatselector.php.
oxVatSelector.$_aUserVatCache = array() [static, protected] |
Definition at line 15 of file oxvatselector.php.