Ejemplo n.º 1
0
 /**
  * Save the full empoyee profile
  * 
  * @author David Stansfield
  */
 public function saveProfile($data = array())
 {
     if (Model_Employee::saveEmployeeDetails($data) === true) {
         $this->changeJobPosition($data['Position-Level']);
         // -- Save Tax and Pay if employee is from GBS
         // -------------------------------------------
         if ($this->_values['center_id'] == 2) {
             // -- Save Tax and Pay
             // -------------------
             Model_Employee::saveTaxandPay($data);
             if ($this->profileCompleted() === false) {
                 Model_Employee::setProfileAsCompleted();
             }
         }
         return true;
     } else {
         return false;
     }
 }