/** * 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()); } }
/** * 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; }