FEAT_MASTER

This commit is contained in:
VENKATESHWARAN 2025-12-04 12:09:20 +05:30
parent 071700de5a
commit 50d22dd74c
2 changed files with 32 additions and 1 deletions

View File

@ -642,6 +642,9 @@ $routes->group("employeeRest", ["filter" => ["authJWT"]], function ($routes) {
// add retail policy
$routes->post("addEmpRetailPolicy", "EmployeeRestController::addEmpRetailPolicy");
// get insurer and policy type
$routes->post("getPolicyTypeAndInsurer", "EmployeeRestController::getPolicyTypeAndInsurer");
});
$routes->get("hrFileDownload", "EmployeeRestController::hrFileDownload");
@ -654,6 +657,8 @@ $routes->get("cdTransactionData", "EmployeeRestController::cdTransactionData");
$routes->match( ['get', 'post'], 'claimsSearch','EmployeeRestController::claimsSearch');
$routes->get("getBackToEnrolledDetails", "EmployeeRestController::getBackToEnrolledDetails");
$routes->post("addEmpRetailPolicy", "EmployeeRestController::addEmpRetailPolicy");
$routes->post("getPolicyTypeAndInsurer", "EmployeeRestController::getPolicyTypeAndInsurer");
// Ticketing System
@ -813,7 +818,6 @@ $routes->group('commission', function($routes) {
});
//BDS BULK UPLOAD
$routes->group('bds_upload', function($routes) {
$routes->match (['get','post'],'list',"PolicyTransactionController::policyBulkUpload");
$routes->get('downloadBDSDumpFile/(:any)',"PolicyTransactionController::downloadBDSDumpFile/$1");

View File

@ -4803,4 +4803,31 @@ class EmployeeRestController extends AdminController
return ['status' => 'failed','message' => 'Coming soon........!'];
}
}
public function getPolicyTypeAndInsurer()
{
$policy_type_ids = [8, 37, 38, 39, 62];
$policy_type = $this->policyTypeModel
->select('id as policy_type_id, policy_type, long_name as policy_type_long_name')
->where('is_active', 1)
->whereIn('id', $policy_type_ids)
->findAll();
$insurer_category = ['general'];
$insurers = $this->insurerModel
->select('id as insurer_id, name as insurer_name, short_name as insurer_short_name')
->where('is_active', 1)
->where('category', $insurer_category)
->findAll();
return $this->respond([
'status' => 'success',
'code' => 200,
'data' => [
'insurer' => $insurers,
'policy_type' => $policy_type
]
], 200);
}
}