oxVatSelector Class Reference
List of all members.
Detailed Description
Class, responsible for retrieving correct vat for users and articles
Member Function Documentation
oxVatSelector.getUserVat |
( |
oxUser $ |
oUser, |
|
|
$ |
blCacheReset = false | |
|
) |
| | |
get VAT for user, can NOT be null
- Exceptions:
-
- Parameters:
-
| oxUser | $oUser |
| bool | $blCacheReset |
- Returns:
- double | false
oxVatSelector._getForeignCountryUserVat |
( |
oxUser $ |
oUser, |
|
|
oxCountry $ |
oCountry | |
|
) |
| | [protected] |
get vat for user of a foreign country
- Parameters:
-
- Returns:
- unknown
oxVatSelector._getVatForArticleCategory |
( |
oxArticle $ |
oArticle |
) |
[protected] |
return Vat value for oxcategory type assignment only
- Exceptions:
-
- Parameters:
-
- Returns:
- float | false
oxVatSelector.getArticleVat |
( |
oxArticle $ |
oArticle |
) |
|
get VAT for given article, can NOT be null
- Exceptions:
-
- Parameters:
-
- Returns:
- double
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())
- Parameters:
-
| object | $oArticle article object |
| object | $oBasket oxbasket object |
- Returns:
- double
Member Data Documentation
oxVatSelector.$_aUserVatCache = array() [static, private] |
The documentation for this class was generated from the following file: