CHANGE_ in iAgreeForAddOn API : GWM
This commit is contained in:
parent
23be63e50e
commit
b7ddb87b46
@ -1448,11 +1448,14 @@ public function getAddOnPolicy()
|
|||||||
public function iAgreeForAddOn()
|
public function iAgreeForAddOn()
|
||||||
{
|
{
|
||||||
|
|
||||||
$emp_code = $this->request->getPost('emp_code');
|
|
||||||
$postData = json_decode($this->request->getBody(), true);
|
$postData = json_decode($this->request->getBody(), true);
|
||||||
$client_policy_id = $postData['client_policy_id'];
|
$client_policy_id = $postData['client_policy_id'];
|
||||||
|
$emp_code = $postData['emp_code'];
|
||||||
|
$client_id = $postData['client_id'];
|
||||||
|
|
||||||
$this->employeeModel->where('emp_code', $emp_code )
|
$this->employeeModel->where('emp_code', $emp_code )
|
||||||
|
->where('client_id', $client_id )
|
||||||
->where('is_active', 1 )
|
->where('is_active', 1 )
|
||||||
->set(array('emp_status'=>'enrolled'))
|
->set(array('emp_status'=>'enrolled'))
|
||||||
->update();
|
->update();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user