Ejemplo n.º 1
0
 public function exportDelegation($id_delegation)
 {
     $model = new DelegSettleView();
     $this->delegation = $model->findOne($id_delegation);
     $model = new TetaEmployeerAccounts();
     $this->tetaEmployeerAccounts = $model->fetchRow('PRAC_ID = ' . addslashes($this->delegation->teta_id));
     $this->position = 0;
     $this->insertOG();
     $this->insertTravel();
     $this->insertAdditionalCosts();
     $this->insertOvernight();
     $this->insertDiet();
 }
Ejemplo n.º 2
0
 public function tetatestAction()
 {
     try {
         $model = new TetaEmployeerAccounts();
         $testEmploy = $model->fetchAll(null, null, 1);
         $tetaDb = new TetaEmployeerImport();
         $import = $tetaDb->fetchAll($tetaDb->select()->limit(1));
         $this->view->status = True;
     } catch (Exception $exc) {
         $this->view->status = FALSE;
         $this->view->error = $exc->getMessage();
     }
     $this->renderScript('system/test.phtml');
 }