employee single branch update enable

This commit is contained in:
resicovenba 2017-12-11 12:47:19 +05:30
parent c179dcf8c3
commit 5f17dab463

View File

@ -596,7 +596,8 @@ class Employee_model extends CI_Model
// echo $this->db->affected_rows();exit();
// update role to login table
if ($this->db->affected_rows() == '1') {
$branchCode = $this->get_branch_code($reqBanch['BranchCode'][0]);
// $branchCode = $this->get_branch_code($reqBanch['BranchCode'][0]);
$branchCode = $reqBanch['BranchCode'][0];
$sql = "UPDATE ".STAFF." SET BranchCode='$branchCode' WHERE StaffID='$empFor'";
// update branch to staff table
if ($this->db->query($sql) == '1') {