diff --git a/Apollo/api/application/models/Employee_model.php b/Apollo/api/application/models/Employee_model.php index 5caefdef..605098d5 100755 --- a/Apollo/api/application/models/Employee_model.php +++ b/Apollo/api/application/models/Employee_model.php @@ -675,14 +675,14 @@ class Employee_model extends CI_Model $FinanceModuleAccess = $req['FinanceModuleAccess']; $sql = "UPDATE ".LOGIN." SET ListCode ='$listCode' WHERE StaffID='$empFor'"; if ($this->db->query($sql) == '1') { - $sql1 = "UPDATE ".STAFF." SET BranchCode='$branchCode', JobResponsibility='$roleResponsibility', FinanceModuleAccess= '$FinanceModuleAccess' WHERE StaffID='$empFor'"; - if ($this->db->query($sql1) == '1') { - $result['updateEmpbranchStatus'] = true; - $result['message'] = "Successfully employee branch details Updated"; - } else { - $result['updateEmpbranchStatus'] = false; - $result['message'] = "Something Went Wrong."; - } + // $sql1 = "UPDATE ".STAFF." SET BranchCode='$branchCode', JobResponsibility='$roleResponsibility', FinanceModuleAccess= '$FinanceModuleAccess' WHERE StaffID='$empFor'"; + // if ($this->db->query($sql1) == '1') { + // $result['updateEmpbranchStatus'] = true; + // $result['message'] = "Successfully employee branch details Updated"; + // } else { + // $result['updateEmpbranchStatus'] = false; + // $result['message'] = "Something Went Wrong."; + // } } else { $result['updateEmpbranchStatus'] = false; $result['message'] = "Something Went Wrong.";