/** * */ public function insert($pa_options = null) { if (!$this->get('effective_date', array('getDirectDate' => true))) { $this->set('effective_date', $this->_getMovementDate()); } return parent::insert($pa_options); }
/** * */ public function insert($pa_options = null) { if (!$this->get('effective_date', array('getDirectDate' => true))) { $this->set('effective_date', _t('now')); } if (!$this->get('source_info')) { $this->set('source_info', $this->_getStorageLocationInfo()); } return parent::insert($pa_options); }