Esempio n. 1
0
 public function terminateEmployement($empNumber, $terminatedId)
 {
     $date = $this->getValue('date');
     $reasonId = $this->getValue('reason');
     $note = $this->getValue('note');
     if (!empty($terminatedId)) {
         $employeeTerminationRecord = $this->getEmployeeService()->getEmployeeTerminationRecord($terminatedId);
     } else {
         $employeeTerminationRecord = new EmployeeTerminationRecord();
     }
     $employeeTerminationRecord->setDate($date);
     $employeeTerminationRecord->setReasonId($reasonId);
     $employeeTerminationRecord->setEmpNumber($empNumber);
     $employeeTerminationRecord->setNote($note);
     $this->getEmployeeService()->terminateEmployment($employeeTerminationRecord);
 }