employee single branch update enable
This commit is contained in:
parent
c179dcf8c3
commit
5f17dab463
@ -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') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user