/** * */ public function update($pa_options = null) { if (!$this->get('effective_date', array('getDirectDate' => true))) { $this->set('effective_date', $this->_getMovementDate()); } return parent::update($pa_options); }
public function __construct($pn_id = null) { parent::__construct($pn_id); # call superclass constructor }
/** * */ public function update($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::update($pa_options); }