CHANGE_ iAgreeForAddOn API : GWM

This commit is contained in:
bitbucket 2024-04-23 09:46:03 +05:30
parent 68ca777e17
commit f05bb5d5f7
2 changed files with 4 additions and 4 deletions

View File

@ -263,7 +263,7 @@ $routes->group("employeeRest", ["filter" => "authJWT"], function($routes){
$routes->get("getClientPolicy", "EmployeeRestController::getClientPolicy");
$routes->get("getClientDetails", "EmployeeRestController::getClientDetails");
$routes->get("getAddOnPolicy", "EmployeeRestController::getAddOnPolicy");
$routes->get("iAgreeForAddOn", "EmployeeRestController::iAgreeForAddOn");
$routes->post("iAgreeForAddOn", "EmployeeRestController::iAgreeForAddOn");
$routes->get("exportDataByClientPolicyId", "EmployeeRestController::exportDataByClientPolicyId");
$routes->get("getCashDepositData", "EmployeeRestController::getCashDepositData");

View File

@ -1422,9 +1422,9 @@ public function getAddOnPolicy()
public function iAgreeForAddOn()
{
$emp_code = $this->request->getGet('emp_code');
$client_policy_id = $this->request->getGet('client_policy_id');
$client_id = $this->request->getGet('client_id');
$emp_code = $this->request->getPost('emp_code');
$client_policy_id = $this->request->getPost('client_policy_id');
$client_id = $this->request->getPost('client_id');
$this->employeeModel->where('emp_code', $emp_code )
->where('is_active', 1 )