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