Esempio n. 1
0
 /**
  * Adds another oxPrice object and recalculates current method.
  *
  * @param oxPrice $oPrice object
  */
 public function addPrice(oxPrice $oPrice)
 {
     if ($this->isNettoMode()) {
         $this->add($oPrice->getNettoPrice());
     } else {
         $this->add($oPrice->getBruttoPrice());
     }
 }
Esempio n. 2
0
 /**
  * Depending on view mode prepare price for viewing
  *
  * @param oxPrice $oPrice price object
  *
  * @return double
  */
 protected function _getPriceForView($oPrice)
 {
     if ($this->_isPriceViewModeNetto()) {
         $dPrice = $oPrice->getNettoPrice();
     } else {
         $dPrice = $oPrice->getBruttoPrice();
     }
     return $dPrice;
 }