OXID eShop CE
6.1.5
|
Public Member Functions | |
__construct () | |
getBruttoSum () | |
getNettoSum () | |
getSum ($isNettoMode=true) | |
getVatInfo ($isNettoMode=true) | |
getPriceInfo () | |
getMostUsedVatPercent () | |
getProportionalVatPercent () | |
addToPriceList ($oPrice) | |
calculateToPrice () | |
getCount () | |
Protected Attributes | |
$_aList = [] | |
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.
OxidEsales\EshopCommunity\Core\PriceList::__construct | ( | ) |
Class constructor. The constructor is defined in order to be possible to call parent::__construct() in modules.
OxidEsales\EshopCommunity\Core\PriceList::addToPriceList | ( | $oPrice | ) |
Add an oxPrice object to prices array
\OxidEsales\Eshop\Core\Price | $oPrice | oxprice object |
OxidEsales\EshopCommunity\Core\PriceList::calculateToPrice | ( | ) |
Recalculate price list to one price: sum total value of prices, and calculate VAT
OxidEsales\EshopCommunity\Core\PriceList::getBruttoSum | ( | ) |
Returns Brutto price sum
OxidEsales\EshopCommunity\Core\PriceList::getCount | ( | ) |
Return count of added oxPrices
OxidEsales\EshopCommunity\Core\PriceList::getMostUsedVatPercent | ( | ) |
Iterates through applied VATs and fetches VAT for delivery. If not VAT was applied - default VAT (myConfig->dDefaultVAT) will be used
OxidEsales\EshopCommunity\Core\PriceList::getNettoSum | ( | ) |
Returns the sum of list Netto prices
OxidEsales\EshopCommunity\Core\PriceList::getPriceInfo | ( | ) |
Return prices separated to different array elements depending on VAT
OxidEsales\EshopCommunity\Core\PriceList::getProportionalVatPercent | ( | ) |
Iterates through applied VATs and calculates proportional VAT
OxidEsales\EshopCommunity\Core\PriceList::getSum | ( | $isNettoMode = true | ) |
Returns the sum of list Netto prices
bool | $isNettoMode | mode in which calculate sum, default netto |
OxidEsales\EshopCommunity\Core\PriceList::getVatInfo | ( | $isNettoMode = true | ) |
Returns VAT values sum separated to different array elements depending on VAT
bool | $isNettoMode | mode in which calculate sum, default netto |
|
protected |