OXID eShop CE
4.9.6
|
Public Member Functions | |
__construct () | |
getBruttoSum () | |
getNettoSum () | |
getSum ($isNettoMode=true) | |
getVatInfo ($isNettoMode=true) | |
getPriceInfo () | |
getMostUsedVatPercent () | |
getProportionalVatPercent () | |
addToPriceList ($oPrice) | |
calculateToPrice () | |
getCount () |
Protected Attributes | |
$_aList = array() |
Price list class. Deals with a list of oxPrice object. The main reason why we can't just sum oxPrice objects is that they have different VAT percents.
Definition at line 8 of file oxpricelist.php.
oxPriceList::__construct | ( | ) |
Class constructor. The constructor is defined in order to be possible to call parent::__construct() in modules.
Definition at line 23 of file oxpricelist.php.
oxPriceList::addToPriceList | ( | $oPrice | ) |
Add an oxPrice object to prices array
oxprice | $oPrice | oxprice object |
Definition at line 173 of file oxpricelist.php.
oxPriceList::calculateToPrice | ( | ) |
Recalculate price list to one price: sum total value of prices, and calculate VAT
Definition at line 183 of file oxpricelist.php.
oxPriceList::getBruttoSum | ( | ) |
oxPriceList::getCount | ( | ) |
oxPriceList::getMostUsedVatPercent | ( | ) |
Iterates through applied VATs and fetches VAT for delivery. If not VAT was applied - default VAT (myConfig->dDefaultVAT) will be used
Definition at line 131 of file oxpricelist.php.
oxPriceList::getNettoSum | ( | ) |
oxPriceList::getPriceInfo | ( | ) |
Return prices separated to different array elements depending on VAT
Definition at line 111 of file oxpricelist.php.
oxPriceList::getProportionalVatPercent | ( | ) |
Iterates through applied VATs and calculates proportional VAT
Definition at line 148 of file oxpricelist.php.
oxPriceList::getSum | ( | $isNettoMode = true | ) |
Returns the sum of list Netto prices
bool | $isNettoMode | mode in which calculate sum, default netto |
Definition at line 64 of file oxpricelist.php.
oxPriceList::getVatInfo | ( | $isNettoMode = true | ) |
Returns VAT values sum separated to different array elements depending on VAT
bool | $isNettoMode | mode in which calculate sum, default netto |
Definition at line 80 of file oxpricelist.php.
|
protected |
Definition at line 16 of file oxpricelist.php.