Exemplo n.º 1
0
 public function init()
 {
     $value = $this->getValue();
     if ($this->_riseValue === null) {
         $addonModel = new Addon();
         $addonRow = $addonModel->getBrandAddon($this->addonTypeId, $this->customerTypeId, $this->brandId);
         $this->_riseValue = $addonRow->interest_value / 100;
     }
     $value += $this->_riseValue;
     $this->setValue($value);
 }