/**
  * Formatted Products price getter
  *
  * @return string
  */
 public function getFProductsPrice()
 {
     if ($this->_oProductsPriceList) {
         return oxLang::getInstance()->formatCurrency($this->_oProductsPriceList->getBruttoSum(), $this->getBasketCurrency());
     }
     return null;
 }
Example #2
0
 /**
  * Get most used vat percent:
  *
  * @return double
  */
 public function getAdditionalServicesVatPercent()
 {
     if ($this->_oProductsPriceList) {
         if ($this->getConfig()->getConfigParam('sAdditionalServVATCalcMethod') == 'proportional') {
             return $this->_oProductsPriceList->getProportionalVatPercent();
         } else {
             return $this->_oProductsPriceList->getMostUsedVatPercent();
         }
     }
 }
 /**
  * Test data provider
  *
  * @return array
  */
 public function getSumOfCostOfAllItemsPayPalBasketDataProvider()
 {
     // discounts
     $oProductsPrice = new oxPriceList();
     $oProductsPrice->addToPriceList(new oxPrice(15));
     $dPaymentCost = 3;
     $dWrappingCost = 5;
     return array(array($oProductsPrice, 0, 0, 0, 15), array($oProductsPrice, $dPaymentCost, $dWrappingCost, 1, 24), array($oProductsPrice, -1 * $dPaymentCost, $dWrappingCost, 9.449999999999999, 29.45));
 }