コード例 #1
0
ファイル: Product.php プロジェクト: subashemphasize/test_site
 public function init()
 {
     parent::init();
     if (empty($this->currency)) {
         $this->currency = Am_Currency::getDefault();
     }
 }
コード例 #2
0
ファイル: Invoice.php プロジェクト: grlf/eyedock
 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();
     }
 }