Beispiel #1
0
 public function init()
 {
     parent::init();
     if (empty($this->currency)) {
         $this->currency = Am_Currency::getDefault();
     }
 }
Beispiel #2
0
 public function init()
 {
     parent::init();
     if (empty($this->discount_first)) {
         $this->discount_first = 0.0;
     }
     if (empty($this->discount_second)) {
         $this->discount_second = 0.0;
     }
     if (empty($this->currency)) {
         $this->currency = Am_Currency::getDefault();
     }
 }