public function init() { parent::init(); if (empty($this->currency)) { $this->currency = Am_Currency::getDefault(); } }
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(); } }