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 22 of file oxpricelist.php.
oxPriceList.addToPriceList | ( | $ | oPrice | ) |
Add an oxPrice object to prices array
oxprice | $oPrice oxprice object |
Definition at line 174 of file oxpricelist.php.
oxPriceList.calculateToPrice | ( | ) |
Recalculate price list to one price: sum total value of prices, and calculate VAT
Definition at line 184 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 130 of file oxpricelist.php.
oxPriceList.getNettoSum | ( | ) |
oxPriceList.getPriceInfo | ( | ) |
Return prices separated to different array elements depending on VAT
Definition at line 110 of file oxpricelist.php.
oxPriceList.getProportionalVatPercent | ( | ) |
Iterates through applied VATs and calculates proportional VAT
Definition at line 146 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 63 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 79 of file oxpricelist.php.
oxPriceList.$_aList = array() [protected] |
Definition at line 15 of file oxpricelist.php.