Merge branch 'dev' of bitbucket.org:jubilian/nhance into dev
@ -11,6 +11,7 @@ use CodeIgniter\Filters\SecureHeaders;
|
|||||||
|
|
||||||
use App\Filters\AuthMVC;
|
use App\Filters\AuthMVC;
|
||||||
use App\Filters\HttpRequestLog;
|
use App\Filters\HttpRequestLog;
|
||||||
|
use App\Filters\CloseDbConnection;
|
||||||
|
|
||||||
use App\Filters\AuthJWT;
|
use App\Filters\AuthJWT;
|
||||||
|
|
||||||
@ -32,7 +33,8 @@ class Filters extends BaseConfig
|
|||||||
'secureheaders' => SecureHeaders::class,
|
'secureheaders' => SecureHeaders::class,
|
||||||
'authMVC' => AuthMVC::class,
|
'authMVC' => AuthMVC::class,
|
||||||
'HttpRequestLog' => HttpRequestLog::class,
|
'HttpRequestLog' => HttpRequestLog::class,
|
||||||
'authJWT' => AuthJWT::class
|
'authJWT' => AuthJWT::class,
|
||||||
|
'CloseDbConnection' => CloseDbConnection::class
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -49,8 +51,7 @@ class Filters extends BaseConfig
|
|||||||
// 'invalidchars',
|
// 'invalidchars',
|
||||||
],
|
],
|
||||||
'after' => [
|
'after' => [
|
||||||
// 'HttpRequestLog',
|
'CloseDbConnection'
|
||||||
//'authMVC',
|
|
||||||
// 'secureheaders',
|
// 'secureheaders',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -254,9 +254,7 @@ $routes->group("/api", ["filter" => "authJWT"], function ($routes) {
|
|||||||
$routes->post("getId", "RestAuthenticationController::getUserIdFromToken");
|
$routes->post("getId", "RestAuthenticationController::getUserIdFromToken");
|
||||||
});
|
});
|
||||||
|
|
||||||
$routes->get("/getEmployeeProfile", "EmployeeRestController::getEmployeeProfile/$1");
|
|
||||||
$routes->post("/editEmployeeProfile", "EmployeeRestController::editEmployeeProfile");
|
|
||||||
$routes->post("/calculatePremium", "EmployeeRestController::calculatePremium");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -288,11 +286,14 @@ $routes->group("employeeRest", ["filter" => "authJWT"], function ($routes) {
|
|||||||
|
|
||||||
$routes->get("getEmployeeOldPolicy", "EmployeeRestController::getEmployeeOldPolicy");
|
$routes->get("getEmployeeOldPolicy", "EmployeeRestController::getEmployeeOldPolicy");
|
||||||
$routes->get("getEmployeeActiveOrInactivePolicy", "EmployeeRestController::getEmployeeActiveOrInactivePolicy");
|
$routes->get("getEmployeeActiveOrInactivePolicy", "EmployeeRestController::getEmployeeActiveOrInactivePolicy");
|
||||||
|
$routes->get("getFEContent", "EmployeeRestController::getFEContent");
|
||||||
|
$routes->get("getAdvertisementImage", "EmployeeRestController::getAdvertisementImage");
|
||||||
});
|
});
|
||||||
|
|
||||||
$routes->post("sendEmail", "EmployeeRestController::send_email");
|
$routes->post("sendEmail", "EmployeeRestController::send_email");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -146,19 +146,20 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
$totals = round($totals, 2);
|
$totals = round($totals, 2);
|
||||||
|
|
||||||
$this->removeOldExportInfoFromBatchFile($export_data);
|
|
||||||
|
|
||||||
|
|
||||||
if (!empty($cash_balance)) {
|
if (!empty($cash_balance)) {
|
||||||
|
|
||||||
if ((int) $cash_balance['balance'] < (int) $totals) {
|
if ((int) $cash_balance['balance'] < (int) $totals) {
|
||||||
|
|
||||||
$this->myLogger->logme('error', 'Inception export failed due to insufficient deposit amount.');
|
$this->myLogger->logme('error', 'Inception export failed due to insufficient deposit amount.');
|
||||||
|
$this->myLogger->logme('error', 'Inception export failed due to insufficient deposit amount. CASH BALANCE : {balance} and TOTAL AMOUNT : {total}', ['balance' => $cash_balance['balance'], 'total' => $totals]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->removeOldExportInfoFromBatchFile($export_data);
|
||||||
|
|
||||||
|
|
||||||
// Log the count of exported data
|
// Log the count of exported data
|
||||||
$count = count($objects);
|
$count = count($objects);
|
||||||
$export_data['count'] = $count;
|
$export_data['count'] = $count;
|
||||||
@ -1221,6 +1222,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
//Endorsement Correction
|
//Endorsement Correction
|
||||||
|
|
||||||
public function importCorrectionValidation($params)
|
public function importCorrectionValidation($params)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -974,6 +974,14 @@ class EmployeeController extends AdminController
|
|||||||
'{INSURER_BRANCH}' =>$value['insurer_branch_city'],
|
'{INSURER_BRANCH}' =>$value['insurer_branch_city'],
|
||||||
'{RELATION}' =>$value['relationship'],
|
'{RELATION}' =>$value['relationship'],
|
||||||
'{TPA_LOGO}' => base_url() . 'public/uploads/logo/' . $value['tpa_logo'],
|
'{TPA_LOGO}' => base_url() . 'public/uploads/logo/' . $value['tpa_logo'],
|
||||||
|
'{MEDI_USER}' => base_url() . 'public/e_card_imgs/medi_uesr.jpg',
|
||||||
|
'{MEDI_INSURER}' => base_url() . 'public/e_card_imgs/Magma.png',
|
||||||
|
'{MEDI_BARCODE}' => base_url() . 'public/e_card_imgs/borcode.jpeg',
|
||||||
|
'{QR_ANDROID}' => base_url() . 'public/e_card_imgs/android.png',
|
||||||
|
'{QR_IOS}' => base_url() . 'public/e_card_imgs/ios.png',
|
||||||
|
'{QR_ANDROID_2}' => base_url() . 'public/e_card_imgs/play_store.png',
|
||||||
|
'{QR_IOS_2}' => base_url() . 'public/e_card_imgs/appstore.png',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Replace placeholders with values in HTML content
|
// Replace placeholders with values in HTML content
|
||||||
@ -1198,6 +1206,14 @@ class EmployeeController extends AdminController
|
|||||||
'{BACK_CARD}' => base_url() . 'public/uploads/template_bg/' . $tpa_id['back_card'],
|
'{BACK_CARD}' => base_url() . 'public/uploads/template_bg/' . $tpa_id['back_card'],
|
||||||
'{TPA_LOGO}' => base_url() . 'public/uploads/logo/' . $tpa_id['tpa_logo'],
|
'{TPA_LOGO}' => base_url() . 'public/uploads/logo/' . $tpa_id['tpa_logo'],
|
||||||
'{INSURER_LOGO}' => base_url() . 'public/assets/images/sample_logo_3.png',
|
'{INSURER_LOGO}' => base_url() . 'public/assets/images/sample_logo_3.png',
|
||||||
|
'{MEDI_USER}' => base_url() . 'public/e_card_imgs/medi_uesr.jpg',
|
||||||
|
'{MEDI_INSURER}' => base_url() . 'public/e_card_imgs/Magma.png',
|
||||||
|
'{MEDI_BARCODE}' => base_url() . 'public/e_card_imgs/borcode.jpeg',
|
||||||
|
'{QR_ANDROID}' => base_url() . 'public/e_card_imgs/android.png',
|
||||||
|
'{QR_IOS}' => base_url() . 'public/e_card_imgs/ios.png',
|
||||||
|
'{QR_ANDROID_2}' => base_url() . 'public/e_card_imgs/play_store.png',
|
||||||
|
'{QR_IOS_2}' => base_url() . 'public/e_card_imgs/appstore.png',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Get the values to replace the placeholders
|
// Get the values to replace the placeholders
|
||||||
|
|||||||
@ -25,6 +25,9 @@ use App\Models\PolicyPremium2Model;
|
|||||||
use App\Models\PolicyTypeModel;
|
use App\Models\PolicyTypeModel;
|
||||||
use App\Models\NotificationModel;
|
use App\Models\NotificationModel;
|
||||||
use App\Models\UserModel;
|
use App\Models\UserModel;
|
||||||
|
use App\Models\FEContentModel;
|
||||||
|
use App\Models\AddImgModel;
|
||||||
|
|
||||||
|
|
||||||
use App\Controllers\Jobs ;
|
use App\Controllers\Jobs ;
|
||||||
use App\Controllers\JobWorker ;
|
use App\Controllers\JobWorker ;
|
||||||
@ -57,6 +60,8 @@ class EmployeeRestController extends AdminController
|
|||||||
protected $policyTypeModel;
|
protected $policyTypeModel;
|
||||||
protected $notificationModel;
|
protected $notificationModel;
|
||||||
protected $userModel;
|
protected $userModel;
|
||||||
|
protected $feContentModel;
|
||||||
|
protected $addImgModel;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
@ -76,6 +81,8 @@ class EmployeeRestController extends AdminController
|
|||||||
$this->policyTypeModel = new PolicyTypeModel();
|
$this->policyTypeModel = new PolicyTypeModel();
|
||||||
$this->notificationModel = new NotificationModel();
|
$this->notificationModel = new NotificationModel();
|
||||||
$this->userModel = new UserModel();
|
$this->userModel = new UserModel();
|
||||||
|
$this->feContentModel = new FEContentModel();
|
||||||
|
$this->addImgModel = new AddImgModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -355,7 +362,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$Gender = $this->employeeModel->where('emp_code',$empCode)->where('relationship','Self')->get()->getRow()->gender;
|
$Gender = $this->employeeModel->where('emp_code',$empCode)->where('relationship','Self')->get()->getRow()->gender;
|
||||||
if($Gender == 'M'){ return 'F'; }else{ return 'M'; }
|
if($Gender == 'M'){ return 'F'; }else{ return 'M'; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function convertDateFormatYMD($dateString)
|
private function convertDateFormatYMD($dateString)
|
||||||
{
|
{
|
||||||
@ -1363,16 +1370,17 @@ public function getAddOnPolicy()
|
|||||||
->where('client_branch_id',$this->request->getGet('client_branch_id'))
|
->where('client_branch_id',$this->request->getGet('client_branch_id'))
|
||||||
->where('is_addon_value',1)->findAll();
|
->where('is_addon_value',1)->findAll();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$clientPolicy = $this->clientPolicyModel->where('client_id',$this->request->getGet('client_id'))
|
$clientPolicy = $this->clientPolicyModel->where('client_id',$this->request->getGet('client_id'))
|
||||||
->where('client_branch_id',$this->request->getGet('client_branch_id'))
|
->where('client_branch_id',$this->request->getGet('client_branch_id'))
|
||||||
->where('policy_status', 1)
|
->where('policy_status', 1)
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
if(count($clientPolicy))
|
if(count($clientPolicy))
|
||||||
{
|
{
|
||||||
$band = $this->employeeModel->where('is_active', 1 )->where('emp_code',$this->request->getGet('emp_code'))->where('client_id',$this->request->getGet('client_id'))->where('client_branch_id',$this->request->getGet('client_branch_id'))->where('family_floater_key','self')->get()->getRow()->band;
|
$band = $this->employeeModel->where('is_active', 1 )->where('emp_code',$this->request->getGet('emp_code'))->where('client_id',$this->request->getGet('client_id'))->where('client_branch_id',$this->request->getGet('client_branch_id'))->where('family_floater_key','self')->get()->getRow()->band;
|
||||||
|
|
||||||
$PolicyData = [];
|
$PolicyData = [];
|
||||||
foreach ($clientPolicy as $key => $array) {
|
foreach ($clientPolicy as $key => $array) {
|
||||||
$responce = [];
|
$responce = [];
|
||||||
@ -1388,9 +1396,16 @@ public function getAddOnPolicy()
|
|||||||
$uniqueData[] = $item;
|
$uniqueData[] = $item;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if (!in_array($item['si'], $siValues)) {
|
if (!in_array($item['si'], $siValues) ) {
|
||||||
$uniqueData[] = $item;
|
|
||||||
$siValues[] = $item['si'];
|
if ($item['policy_grid_id'] == 11 && ($item['max_si'] != 0 || $item['max_si'] != null)) {
|
||||||
|
$uniqueData[] = $item;
|
||||||
|
$siValues[] = $item['si'];
|
||||||
|
}else if($item['policy_grid_id'] != 11){
|
||||||
|
$uniqueData[] = $item;
|
||||||
|
$siValues[] = $item['si'];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2136,41 +2151,20 @@ function policyTermsFiter($terms , $type)
|
|||||||
|
|
||||||
$gmc = [
|
$gmc = [
|
||||||
"sum_insured" => "Sum Insured",
|
"sum_insured" => "Sum Insured",
|
||||||
"member_count" => "Elders Count:",
|
|
||||||
"other_member_min_age" => "Min Age:",
|
|
||||||
"other_member_max_age" => "Min Age:",
|
|
||||||
"waiverofpreexistingdiseases" => "Waiver of Pre-existing Diseases",
|
"waiverofpreexistingdiseases" => "Waiver of Pre-existing Diseases",
|
||||||
|
"maternitycoverage" => "Maternity Coverage",
|
||||||
|
"babyday1cover" => "Baby Day 1 Cover",
|
||||||
"9monthwaitingperiodwaived" => "9-month waiting Period –waived",
|
"9monthwaitingperiodwaived" => "9-month waiting Period –waived",
|
||||||
"coverfromthedateofjoining" => "Cover from the date of Joining",
|
"coverfromthedateofjoining" => "Cover from the date of Joining",
|
||||||
"waiverof1,2,3&4thyearexclusions" => "Waiver of 1, 2, 3 & 4th year Exclusions",
|
"waiverof1,2,3&4thyearexclusions" => "Waiver of 1, 2, 3 & 4th year Exclusions",
|
||||||
"waiverof30dayswaitingperiod" => "Waiver of 30 days waiting period",
|
"waiverof30dayswaitingperiod" => "Waiver of 30 days waiting period",
|
||||||
"prehospitalizationcover" => "Pre Hospitalization Cover",
|
"prehospitalizationcover" => "Pre Hospitalization Cover",
|
||||||
"congenitaldiseasesinternal" => "Congenital Diseases - Internal",
|
|
||||||
"copayzonewisecopay" => "Co-Pay/Zone wise Co Pay",
|
"copayzonewisecopay" => "Co-Pay/Zone wise Co Pay",
|
||||||
"bioabsorbablestenttoriclensmultifocallens" => "Bio absorbable stent / Toric lens/ Multi Focal lens",
|
|
||||||
"roomrentlimit" => "Room Rent Limit",
|
"roomrentlimit" => "Room Rent Limit",
|
||||||
"proportionatedeductionclause" => "Proportionate Deduction Clause",
|
|
||||||
"nursingallowance" => "Nursing Allowance",
|
|
||||||
"ailmentcapping" => "Ailment capping",
|
"ailmentcapping" => "Ailment capping",
|
||||||
"ambulancecharges" => "Ambulance Charges",
|
|
||||||
"airambulance" => "Air Ambulance",
|
|
||||||
"familytransportationbenefit" => "Family Transportation Benefit",
|
|
||||||
"reasonableandcustomarycharges" => "Reasonable and Customary Charges",
|
|
||||||
"daycaretreatment" => "Day Care Treatment",
|
|
||||||
"ayudhtreatmentcover" => "AYUSH treatment cover",
|
|
||||||
"armdcovered" => "ARMD Covered",
|
|
||||||
"suminsuredenhancement" => "Sum Insured enhancement",
|
|
||||||
"automaticsuminsuredreinstatement" => "Automatic Sum Insured reinstatement",
|
|
||||||
"additionalsicknessbenefit" => "Additional Sickness Benefit",
|
|
||||||
"lasiksurgery" => "Lasik Surgery",
|
|
||||||
"midterminclusion" => "Mid Term inclusion",
|
|
||||||
"capd" => "CAPD",
|
|
||||||
"organdonorexpenses" => "Organ donor expenses",
|
|
||||||
"moderntreatmentsasperirdai" => "Modern treatments as per IRDAI",
|
|
||||||
"days_of_discharge" => "Claim Intimation Clause",
|
|
||||||
"days_from_dod" => "Claim Submission",
|
|
||||||
"cataract" => "Cataract"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$finalarray = [];
|
$finalarray = [];
|
||||||
if($type == 'gpa'){
|
if($type == 'gpa'){
|
||||||
@ -2203,4 +2197,46 @@ private function convertDateFormatDisplay($dateString)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getFEContent()
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
$feContentData = $this->feContentModel->findAll();
|
||||||
|
if (count($feContentData) > 0) {
|
||||||
|
|
||||||
|
return $this->respond(['status' => 'success','code' => 200,'data' => $feContentData ],200);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
return $this->respond(['status' => 'failed','code' => 404,'data' => 'No Data'],404);
|
||||||
|
}
|
||||||
|
} catch (\Throwable $th) {
|
||||||
|
return $this->respond(['status' => 'failed','code' => 500,'data' => $th],500);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getAdvertisementImage()
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
$img = $this->addImgModel->where('is_active',1)->findAll();
|
||||||
|
|
||||||
|
if (count($img) > 0) {
|
||||||
|
$data=[];
|
||||||
|
foreach ($img as $key => $value) {
|
||||||
|
$url = base_url('public/uploads/add_image_upload/').$value['name'];
|
||||||
|
array_push($data,$url);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->respond(['status' => 'success','code' => 200,'data' => $data ],200);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
return $this->respond(['status' => 'failed','code' => 404,'data' => 'No Data'],404);
|
||||||
|
}
|
||||||
|
} catch (\Throwable $th) {
|
||||||
|
return $this->respond(['status' => 'failed','code' => 500,'data' => $th],500);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -665,14 +665,14 @@ class EmployeeServiceController extends AdminController
|
|||||||
|
|
||||||
$group_key = rand(100000, 999999);
|
$group_key = rand(100000, 999999);
|
||||||
//for emp table
|
//for emp table
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$data['emp_id'],'emp_code' => $data['emp_code'],'table_name' => 'employees','actions' => 'd','name' => $data['name'],'field_name' => 'emp_status','old_value' => $data['emp_status'],'new_value' => 'deactivate','created_by' => $file['created_by'],'remarks' => 'general deletion','group_key' => $group_key,'file_id' => $file['id']]);
|
$this->empEndorsementModel->save(['pk' => (int)$data['emp_id'],'emp_code' => $data['emp_code'],'table_name' => 'employees','actions' => 'd','name' => $data['name'],'field_name' => 'emp_status','old_value' => $data['emp_status'],'new_value' => 'deactivate','created_by' => $file['created_by'],'remarks' => 'general deletion','group_key' => $group_key,'file_id' => $file['id'],'status' => 'pending']);
|
||||||
// dd( $this->empEndorsementModel->getLastQuery());
|
// dd( $this->empEndorsementModel->getLastQuery());
|
||||||
// $this->empEndorsementModel->save(['pk' => (int)$data['emp_id'],'emp_code' => $data['emp_code'],'table_name' => 'employees','actions' => 'd','name' => $data['name'],'field_name' => 'change_event','old_value' => $data['change_event'],'new_value' => 'deletion','created_by' => $file['created_by'],'remarks' => 'general deletion']);
|
// $this->empEndorsementModel->save(['pk' => (int)$data['emp_id'],'emp_code' => $data['emp_code'],'table_name' => 'employees','actions' => 'd','name' => $data['name'],'field_name' => 'change_event','old_value' => $data['change_event'],'new_value' => 'deletion','created_by' => $file['created_by'],'remarks' => 'general deletion']);
|
||||||
|
|
||||||
// for employee policy table
|
// for employee policy table
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$data['emp_policy_id'],'emp_code' => $data['emp_code'],'table_name' => 'employee_polices','actions' => 'd','name' => $data['name'],'field_name' => 'date_of_exit','old_value' => $data['date_of_exit'],'new_value' => change_date_format($row[4],'d-M-Y','Y-m-d'),'created_by' => $file['created_by'],'remarks' => 'general deletion','group_key' => $group_key,'file_id' => $file['id']]);
|
$this->empEndorsementModel->save(['pk' => (int)$data['emp_policy_id'],'emp_code' => $data['emp_code'],'table_name' => 'employee_polices','actions' => 'd','name' => $data['name'],'field_name' => 'date_of_exit','old_value' => $data['date_of_exit'],'new_value' => change_date_format($row[4],'d-M-Y','Y-m-d'),'created_by' => $file['created_by'],'remarks' => 'general deletion','group_key' => $group_key,'file_id' => $file['id'],'status' => 'pending']);
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$data['emp_policy_id'],'emp_code' => $data['emp_code'],'table_name' => 'employee_polices','actions' => 'd','name' => $data['name'],'field_name' => 'reason_for_exit','old_value' => $data['reason_for_exit'],'new_value' => $row[5],'created_by' => $file['created_by'],'remarks' => 'general deletion','group_key' => $group_key,'file_id' => $file['id']]);
|
$this->empEndorsementModel->save(['pk' => (int)$data['emp_policy_id'],'emp_code' => $data['emp_code'],'table_name' => 'employee_polices','actions' => 'd','name' => $data['name'],'field_name' => 'reason_for_exit','old_value' => $data['reason_for_exit'],'new_value' => $row[5],'created_by' => $file['created_by'],'remarks' => 'general deletion','group_key' => $group_key,'file_id' => $file['id'],'status' => 'pending']);
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$data['emp_policy_id'],'emp_code' => $data['emp_code'],'table_name' => 'employee_polices','actions' => 'd','name' => $data['name'],'field_name' => 'status','old_value' => $data['status'],'new_value' => 'inactive','created_by' => $file['created_by'],'remarks' => 'general deletion','group_key' => $group_key,'file_id' => $file['id']]);
|
$this->empEndorsementModel->save(['pk' => (int)$data['emp_policy_id'],'emp_code' => $data['emp_code'],'table_name' => 'employee_polices','actions' => 'd','name' => $data['name'],'field_name' => 'status','old_value' => $data['status'],'new_value' => 'inactive','created_by' => $file['created_by'],'remarks' => 'general deletion','group_key' => $group_key,'file_id' => $file['id'],'status' => 'pending']);
|
||||||
};
|
};
|
||||||
//iterate each row
|
//iterate each row
|
||||||
foreach ($excel_data as $col_key => $row)
|
foreach ($excel_data as $col_key => $row)
|
||||||
@ -794,7 +794,7 @@ class EmployeeServiceController extends AdminController
|
|||||||
if(!count($existing_endorsements))
|
if(!count($existing_endorsements))
|
||||||
{
|
{
|
||||||
$group_key = rand(100000, 999999);
|
$group_key = rand(100000, 999999);
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$employee['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employees','actions' => 'c','name' => $employee['name'],'field_name' => $field_name,'old_value' => $employee[ $field_name ],'new_value' => $field_value,'created_by' => $file['created_by'],'remarks' => $row[7],'date_of_correction' => change_date_format($row[5],'d-M-Y','Y-m-d'),'group_key' => $group_key,'file_id' => $file['id']]);
|
$this->empEndorsementModel->save(['pk' => (int)$employee['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employees','actions' => 'c','name' => $employee['name'],'field_name' => $field_name,'old_value' => $employee[ $field_name ],'new_value' => $field_value,'created_by' => $file['created_by'],'remarks' => $row[7],'date_of_correction' => change_date_format($row[5],'d-M-Y','Y-m-d'),'group_key' => $group_key,'file_id' => $file['id'],'status' => 'pending']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -855,15 +855,15 @@ class EmployeeServiceController extends AdminController
|
|||||||
//make entry in endorsement table
|
//make entry in endorsement table
|
||||||
if(!count($existing_endorsements))
|
if(!count($existing_endorsements))
|
||||||
{
|
{
|
||||||
|
//transform data to send
|
||||||
foreach ($slab_details['slab_rates'] as $skey => $slab_value)
|
foreach ($slab_details['slab_rates'] as $skey => $slab_value)
|
||||||
{
|
{
|
||||||
if($slab_value['si'] == $row[3])
|
if($slab_value['si'] == $row[3])
|
||||||
{
|
{
|
||||||
$group_key = rand(100000, 999999);
|
$group_key = rand(100000, 999999);
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$employee_policy['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'basic_cover_si','old_value' => $employee_policy['basic_cover_si'],'new_value' => $row[3],'created_by' => $file['created_by'],'remarks' => 'general si enhancement','group_key' => $group_key,'file_id' => $file['id']]);
|
$this->empEndorsementModel->save(['pk' => (int)$employee_policy['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'basic_cover_si','old_value' => $employee_policy['basic_cover_si'],'new_value' => $row[3],'created_by' => $file['created_by'],'remarks' => 'general si enhancement','group_key' => $group_key,'file_id' => $file['id'],'status' => 'pending']);
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$employee_policy['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'premium','old_value' => $employee_policy['premium'],'new_value' => $slab_value['premium'],'created_by' => $file['created_by'],'remarks' => 'general si enhancement','group_key' => $group_key,'file_id' => $file['id']]);
|
$this->empEndorsementModel->save(['pk' => (int)$employee_policy['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'premium','old_value' => $employee_policy['premium'],'new_value' => $slab_value['premium'],'created_by' => $file['created_by'],'remarks' => 'general si enhancement','group_key' => $group_key,'file_id' => $file['id'],'status' => 'pending']);
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$employee_policy['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'si_enhancement_date','old_value' => null,'new_value' => change_date_format($row[4],'d-M-Y','Y-m-d'),'created_by' => $file['created_by'],'remarks' => 'general si enhancement','group_key' => $group_key,'file_id' => $file['id']]);
|
$this->empEndorsementModel->save(['pk' => (int)$employee_policy['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'si_enhancement_date','old_value' => null,'new_value' => change_date_format($row[4],'d-M-Y','Y-m-d'),'created_by' => $file['created_by'],'remarks' => 'general si enhancement','group_key' => $group_key,'file_id' => $file['id'],'status' => 'pending']);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -889,7 +889,7 @@ class EmployeeServiceController extends AdminController
|
|||||||
$slab_details = $this->policiesModel->getPolicySlabRatesForEmpOnboard($file['policy_id'],$file['client_id']);
|
$slab_details = $this->policiesModel->getPolicySlabRatesForEmpOnboard($file['policy_id'],$file['client_id']);
|
||||||
foreach($familiy_data as $fkey => $value)
|
foreach($familiy_data as $fkey => $value)
|
||||||
{
|
{
|
||||||
if($file['id'] == null || $value['temp']['source'] == 'excel' || (($file['action'] == 'dependent_addition' && in_array($value['temp']['source'],[10,11]) && ($slab_details['slab_rates'][0]['premium_type'] == 1 && strtolower($value['relationship']) == 'self') || ($slab_details['slab_rates'][0]['premium_type'] == 1 || $slab_details['slab_rates'][0]['premium_type'] == null)))) //insert data come from excel and from db i.e. ( $file['id'] == null for enrollment data)
|
if($file['id'] == null || $value['temp']['source'] == 'excel' || (($file['action'] == 'dependent_addition' && ($slab_details['slab_rates'][0]['premium_type'] == 1 && strtolower($value['relationship']) == 'self') || ($slab_details['slab_rates'][0]['premium_type'] == 2 || $slab_details['slab_rates'][0]['premium_type'] == null)))) //insert data come from excel and from db i.e. ( $file['id'] == null for enrollment data)
|
||||||
{
|
{
|
||||||
|
|
||||||
$employee = $this->employeeModel->checkExistingEmp($value,$file['client_branch_id']);
|
$employee = $this->employeeModel->checkExistingEmp($value,$file['client_branch_id']);
|
||||||
@ -898,20 +898,20 @@ class EmployeeServiceController extends AdminController
|
|||||||
unset($value['policy_details']);
|
unset($value['policy_details']);
|
||||||
unset($value['temp']);
|
unset($value['temp']);
|
||||||
// Kint::dump($value);
|
// Kint::dump($value);
|
||||||
|
// Kint::dump($temp);
|
||||||
// Kint::dump($policy_data);
|
// Kint::dump($policy_data);
|
||||||
|
// echo '---------------------------------------';
|
||||||
|
|
||||||
//start implemet of si enhancement of grid type 10,11
|
//start implemet of si enhancement of grid type 10,11
|
||||||
if(count($employee) && $file['action'] == 'dependent_addition' && $value['temp']['source'] == 'db' && ( ($slab_details['slab_rates'][0]['premium_type'] == 1 && (strtolower($value['relationship']) == 'self' || $temp['additional_rack_rate_acting_self'])) || ($slab_details['slab_rates'][0]['premium_type'] == 2 || $slab_details['slab_rates'][0]['premium_type'] == null)))
|
if(count($employee) && $file['action'] == 'dependent_addition' && $temp['source'] == 'db' && in_array($value['temp']['grid_id'],[10,11]) && ( ($slab_details['slab_rates'][0]['premium_type'] == 1 && (strtolower($value['relationship']) == 'self' || $temp['additional_rack_rate_acting_self'])) || ($slab_details['slab_rates'][0]['premium_type'] == 2 || $slab_details['slab_rates'][0]['premium_type'] == null)))
|
||||||
{
|
{
|
||||||
$log_message = 'Employee record from DB,Checking SI for - '.$employee[0]['name'].'('.$employee[0]['emp_code'].')';
|
$log_message = 'Employee record from DB,Checking SI for - '.$employee[0]['name'].'('.$employee[0]['emp_code'].')';
|
||||||
$this->myLogger->logme('error',$log_message);
|
$this->myLogger->logme('error',$log_message);
|
||||||
$res = $this->employeesSIEnhanceProcessWhileOnbboard(employee:$employee[0],policy_data: $policy_data,file:$file);// where employee holds existing emp data and policy_data holds new si enhancement
|
$res = $this->employeesSIEnhanceProcessWhileOnbboard(employee:$employee[0],policy_data: $policy_data,file:$file);// where employee holds existing emp data and policy_data holds new si enhancement
|
||||||
if(!$res)
|
|
||||||
{
|
break;//skip db employee
|
||||||
//if endorsement not happend no need to update emp/policy details in DB.
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//end implemet of si enhancement of grid type 10,11
|
//end implemet of si enhancement of grid type
|
||||||
|
|
||||||
//save employee table
|
//save employee table
|
||||||
if(count($employee))
|
if(count($employee))
|
||||||
@ -965,10 +965,12 @@ class EmployeeServiceController extends AdminController
|
|||||||
$log_message .= ' with PK ' . $emp_policy_id;
|
$log_message .= ' with PK ' . $emp_policy_id;
|
||||||
|
|
||||||
//make endorsement entry if action is addition OR Dependt addition
|
//make endorsement entry if action is addition OR Dependt addition
|
||||||
if(($file['action'] == 'dependent_addition' || $file['action'] == 'addition') && $value['temp']['source'] == 'excel')
|
if(($file['action'] == 'dependent_addition' || $file['action'] == 'addition') && $temp['source'] == 'excel')
|
||||||
{
|
{
|
||||||
|
$log_message = $file['action'].' - endorsement'. $value['emp_code'].' - '.$value['name'].' - with policy id'.$emp_policy_id;
|
||||||
|
$this->myLogger->logme('error',$log_message);
|
||||||
$actions = ($file['action'] == 'dependent_addition' ? 'da' : ($file['action'] == 'addition' ? 'a' : NULL));
|
$actions = ($file['action'] == 'dependent_addition' ? 'da' : ($file['action'] == 'addition' ? 'a' : NULL));
|
||||||
$addition_endorse_data = ['pk' => $emp_policy_id,'group_key' => rand(100000, 999999),'emp_cdoe' => $value['emp_code'],'table_name' => 'employee_polices','actions' => $actions,'field_name' => 'basic_cover_si','old_value' => NULL,'new_value' => $policy_data['basic_cover_si'],'remarks' => 'addition endorsement','file_id' => $file['id'],'created_by' => $file['created_by']];
|
$addition_endorse_data = ['pk' => $emp_policy_id,'group_key' => rand(100000, 999999),'emp_code' => $value['emp_code'],'table_name' => 'employee_polices','actions' => $actions,'name' => $value['name'],'field_name' => 'basic_cover_si','old_value' => NULL,'new_value' => $policy_data['basic_cover_si'],'remarks' => 'addition endorsement','file_id' => $file['id'],'created_by' => $file['created_by']];
|
||||||
$this->employeeEndorsementforAddtionAndDependentAddition($addition_endorse_data);
|
$this->employeeEndorsementforAddtionAndDependentAddition($addition_endorse_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -990,14 +992,18 @@ class EmployeeServiceController extends AdminController
|
|||||||
// $employee -> holds existing emp model obj and $policy_data holds new policy changes as array
|
// $employee -> holds existing emp model obj and $policy_data holds new policy changes as array
|
||||||
public function employeesSIEnhanceProcessWhileOnbboard(array $employee,array $policy_data,array $file)
|
public function employeesSIEnhanceProcessWhileOnbboard(array $employee,array $policy_data,array $file)
|
||||||
{
|
{
|
||||||
$employee = $this->employeeModel->where('emp_code', $employee['emp_code'])->where('name',$employee['name'])->where('client_id',$employee['client_id'])->where('client_branch_id',$file['client_id'])->where('is_active',1)->first();
|
|
||||||
|
$employee = $this->employeeModel->where('emp_code', $employee['emp_code'])->where('name',$employee['name'])->where('client_id',$employee['client_id'])->where('client_branch_id',$file['client_branch_id'])->where('is_active',1)->first();
|
||||||
|
// Kint::dump($this->employeeModel->getLastQuery());
|
||||||
|
// dd($employee);
|
||||||
$employee_policy = $this->employeePolicyModel->where('employee_id',$employee['id'])->where('client_policy_id',$file['policy_id'])->first();
|
$employee_policy = $this->employeePolicyModel->where('employee_id',$employee['id'])->where('client_policy_id',$file['policy_id'])->first();
|
||||||
// dd($employee_policy);
|
// dd($employee_policy);
|
||||||
$slab_details = $this->policiesModel->getPolicySlabRatesForEmpOnboard($employee_policy['client_policy_id'],$employee['client_id']);
|
// $slab_details = $this->policiesModel->getPolicySlabRatesForEmpOnboard($employee_policy['client_policy_id'],$employee['client_id']);
|
||||||
|
// dd($slab_details);
|
||||||
|
// $temp_slab_details = ($temp['grid_type'] == 'primary' ? $slab_details['slab_rates'] : $slab_details['additional_slab_info']['slab_rates']);
|
||||||
|
|
||||||
//check si has changed in normal case OR check premium only changed, still treat as SI enhancement in grid type 10
|
//check si has changed in normal case OR check premium only changed, still treat as SI enhancement in grid type 10
|
||||||
if($employee_policy['basic_cover_si'] != $policy_data['basic_cover_si'] || ($policy_data['premimum'] != null && $policy_data['premimum'] != "" && $employee_policy['premimum'] != $policy_data['premimum']))
|
if($employee_policy['basic_cover_si'] != $policy_data['basic_cover_si'] || ($policy_data['premium'] != null && $policy_data['premium'] != "" && $employee_policy['premium'] != $policy_data['premium']))
|
||||||
{
|
{
|
||||||
$existing_endorsements = $this->empEndorsementModel->where('actions','si')
|
$existing_endorsements = $this->empEndorsementModel->where('actions','si')
|
||||||
->where('table_name','employee_polices')
|
->where('table_name','employee_polices')
|
||||||
@ -1006,26 +1012,22 @@ class EmployeeServiceController extends AdminController
|
|||||||
->where('name',$employee['name'])
|
->where('name',$employee['name'])
|
||||||
->where('field_name','basic_cover_si')
|
->where('field_name','basic_cover_si')
|
||||||
->findAll();
|
->findAll();
|
||||||
// dd($existing_endorsements);
|
|
||||||
//make entry in endorsement table
|
//make entry in endorsement table
|
||||||
if(!count($existing_endorsements))
|
if(!count($existing_endorsements))
|
||||||
{
|
{
|
||||||
|
$group_key = rand(100000, 999999);
|
||||||
foreach ($slab_details['slab_rates'] as $skey => $slab_value)
|
$data = array(
|
||||||
{
|
['pk' => (int)$employee_policy['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'basic_cover_si','old_value' => $employee_policy['basic_cover_si'],'new_value' => $policy_data['basic_cover_si'],'created_by' => $file['created_by'],'remarks' => 'general si enhancement via DA','group_key' => $group_key,'file_id' => $file['id']],
|
||||||
if($slab_value['si'] == $policy_data['basic_cover_si'])
|
['pk' => (int)$employee_policy['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'premium','old_value' => $employee_policy['premium'],'new_value' => $policy_data['premium'],'created_by' => $file['created_by'],'remarks' => 'general si enhancement via DA','group_key' => $group_key,'file_id' => $file['id']],
|
||||||
{
|
['pk' => (int)$employee_policy['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'si_enhancement_date','old_value' => null,'new_value' => date('Y-m-d'),'created_by' => $file['created_by'],'remarks' => 'general si enhancement via DA','group_key' => $group_key,'file_id' => $file['id']]
|
||||||
$group_key = rand(100000, 999999);
|
);
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$employee['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'basic_cover_si','old_value' => $employee_policy['basic_cover_si'],'new_value' => $policy_data['basic_cover_si'],'created_by' => $file['created_by'],'remarks' => 'general si enhancement via DA','group_key' => $group_key,'file_id' => $file['id']]);
|
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$employee['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'premium','old_value' => $employee_policy['premium'],'new_value' => $slab_value['premium'],'created_by' => $file['created_by'],'remarks' => 'general si enhancement via DA','group_key' => $group_key,'file_id' => $file['id']]);
|
$this->empEndorsementModel->insertBatch($data);
|
||||||
$this->empEndorsementModel->save(['pk' => (int)$employee['id'],'emp_code' => $employee['emp_code'],'table_name' => 'employee_polices','actions' => 'si','name' => $employee['name'],'field_name' => 'si_enhancement_date','old_value' => null,'new_value' => date('Y-m-d'),'created_by' => $file['created_by'],'remarks' => 'general si enhancement via DA','group_key' => $group_key,'file_id' => $file['id']]);
|
$this->myLogger->logme('error',($employee['emp_code'].' - '.$employee['name'].'- ( NEW/OLD SI - '.$employee_policy['basic_cover_si'].'/'.$policy_data['basic_cover_si'].')'. '( NEW/OLD PREMIUM - '.$employee_policy['premium'].'/'.$policy_data['premium'].') '.' - si enhancement via DA'));
|
||||||
$this->myLogger->logme('error',($employee['emp_code'].' - '.$employee['name'].'- ( NEW/OLD SI - '.$employee_policy['basic_cover_si'].'/'.$policy_data['basic_cover_si'].')'. '( NEW/OLD PREMIUM - '.$employee_policy['premium'].'/'.$policy_data['premimum'].') '.' - si enhancement via DA'));
|
$log_message = 'SI enhancement done during dependent_addition - '.$employee['name'].'('.$employee['emp_code'].')';
|
||||||
$log_message = 'SI enhancement done during dependent_addition - '.$employee[0]['name'].'('.$employee[0]['emp_code'].')';
|
|
||||||
$this->myLogger->logme('error',$log_message);
|
$this->myLogger->logme('error',$log_message);
|
||||||
return true; //retun true when endorsement inserted
|
return true; //retun true when endorsement inserted
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return false; //retun false when endorsement not happend
|
return false; //retun false when endorsement not happend
|
||||||
}
|
}
|
||||||
|
|||||||
@ -190,6 +190,11 @@ class MasterController extends AdminController
|
|||||||
$uploadFilePath = ROOTPATH . 'public/uploads/logo/';
|
$uploadFilePath = ROOTPATH . 'public/uploads/logo/';
|
||||||
$file_name = file_Upload($this->request->getFile('insurer_logo'), $uploadFilePath);
|
$file_name = file_Upload($this->request->getFile('insurer_logo'), $uploadFilePath);
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
|
|
||||||
|
if($this->request->getPost('addition_add_day')){
|
||||||
|
$data['addition_add_day'] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$data['created_by'] = get_session_userid();
|
$data['created_by'] = get_session_userid();
|
||||||
$data['insurer_logo'] = $file_name;
|
$data['insurer_logo'] = $file_name;
|
||||||
|
|
||||||
@ -265,6 +270,12 @@ class MasterController extends AdminController
|
|||||||
$data['insurer_logo'] = $file_name;
|
$data['insurer_logo'] = $file_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->request->getPost('addition_add_day')){
|
||||||
|
$data['addition_add_day'] = 1;
|
||||||
|
}else{
|
||||||
|
$data['addition_add_day'] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$update = $this->insurerModel->update($id,$data);
|
$update = $this->insurerModel->update($id,$data);
|
||||||
if($update){
|
if($update){
|
||||||
echo json_encode(array("status" => true , 'data' => $data));
|
echo json_encode(array("status" => true , 'data' => $data));
|
||||||
|
|||||||
25
app/Filters/CloseDbConnection.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filters;
|
||||||
|
|
||||||
|
use CodeIgniter\HTTP\RequestInterface;
|
||||||
|
use CodeIgniter\HTTP\ResponseInterface;
|
||||||
|
use CodeIgniter\Filters\FilterInterface;
|
||||||
|
use CodeIgniter\Database\Config;
|
||||||
|
|
||||||
|
class CloseDbConnection implements FilterInterface
|
||||||
|
{
|
||||||
|
public function before(RequestInterface $request, $arguments = null)
|
||||||
|
{
|
||||||
|
// No action needed before the request
|
||||||
|
}
|
||||||
|
|
||||||
|
public function after(RequestInterface $request, ResponseInterface $response, $arguments = null)
|
||||||
|
{
|
||||||
|
// Get all database configurations
|
||||||
|
$db = \Config\Database::connect();
|
||||||
|
$log = \Config\Services::mylogger();
|
||||||
|
$log->logme('error','CloseDbConnections....!');
|
||||||
|
$db->close();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -212,10 +212,10 @@ if (! function_exists('transform_objects_to_array_for_si_enhancement')) {
|
|||||||
$obj->no_of_days,
|
$obj->no_of_days,
|
||||||
$obj->old_si_premium,
|
$obj->old_si_premium,
|
||||||
$obj->new_si_premium,
|
$obj->new_si_premium,
|
||||||
$obj->difference_premium,
|
round($obj->difference_premium, 2),
|
||||||
$obj->pro_rata_premimum,
|
$obj->pro_rata_premimum,
|
||||||
$obj->gst,
|
$obj->gst,
|
||||||
$obj->total ,
|
round($obj->total, 2),
|
||||||
$endorsement_id,
|
$endorsement_id,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -15,11 +15,13 @@ if(!function_exists('calculate_days_bw_dates'))
|
|||||||
else{ $passedDateTime = new DateTime($from_date); }
|
else{ $passedDateTime = new DateTime($from_date); }
|
||||||
|
|
||||||
$interval = $currentDateTime->diff($passedDateTime);
|
$interval = $currentDateTime->diff($passedDateTime);
|
||||||
if ($include_start_date) {
|
// $totalDays = $interval->days;
|
||||||
$interval->days += 1;
|
// if ($include_start_date) {
|
||||||
}
|
// $totalDays += 1;
|
||||||
|
// }
|
||||||
|
//$interval->totalDays = $totalDays;
|
||||||
|
return $interval;
|
||||||
|
|
||||||
return $interval;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -601,8 +603,9 @@ if (!function_exists('generate_relationship_code'))
|
|||||||
$relationship = ['self' => 1,'spouse' => 2,'son' => 3,'daughter' => 4,'father' => 5,'mother' => 6,'father-in-law' => 7,'mother-in-law' => 8];
|
$relationship = ['self' => 1,'spouse' => 2,'son' => 3,'daughter' => 4,'father' => 5,'mother' => 6,'father-in-law' => 7,'mother-in-law' => 8];
|
||||||
$slug = \Config\Services::slug();
|
$slug = \Config\Services::slug();
|
||||||
$relationship_code = $slug->slugify($arr['relationship']);
|
$relationship_code = $slug->slugify($arr['relationship']);
|
||||||
|
$emp_type_code = ($relationship_code == 'self' ? 'EMP_TYP_01' : 'EMP_TYP_03');
|
||||||
$relationship_code = $gender[ $arr['gender'] ] . $relationship[ $relationship_code ] ;
|
$relationship_code = $gender[ $arr['gender'] ] . $relationship[ $relationship_code ] ;
|
||||||
return $relationship_code;
|
return ['relationship_code' => $relationship_code,'emp_type_code' => $emp_type_code];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -709,14 +712,30 @@ if (!function_exists('calculate_premimum'))
|
|||||||
$transformed_familiy_member_data['temp']['additional_rack_rate_acting_self'] = false;
|
$transformed_familiy_member_data['temp']['additional_rack_rate_acting_self'] = false;
|
||||||
if(!isset($emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['additional_rack_rate_acting_self']) && $current_grid_info['type'] == 'additional')
|
if(!isset($emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['additional_rack_rate_acting_self']) && $current_grid_info['type'] == 'additional')
|
||||||
{
|
{
|
||||||
$transformed_familiy_member_data['temp']['additional_rack_rate_acting_self'] = true;
|
|
||||||
$emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['additional_rack_rate_acting_self'] = true;
|
if($transformed_familiy_member_data['temp']['action'] != 'DA')
|
||||||
|
{
|
||||||
|
$transformed_familiy_member_data['temp']['additional_rack_rate_acting_self'] = true;
|
||||||
|
$emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['additional_rack_rate_acting_self'] = true;
|
||||||
|
}
|
||||||
|
else// if dependent addition then set employee from db is an acting self
|
||||||
|
{
|
||||||
|
|
||||||
|
if($transformed_familiy_member_data['temp']['source'] == 'db' && $transformed_familiy_member_data['temp']['rata_premimum'])
|
||||||
|
{
|
||||||
|
// echo 'SETTING';
|
||||||
|
$transformed_familiy_member_data['temp']['additional_rack_rate_acting_self'] = true;
|
||||||
|
$emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['additional_rack_rate_acting_self'] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//generate relationship code
|
//generate relationship code
|
||||||
if($transformed_familiy_member_data['temp']['action'] != 'D' && $transformed_familiy_member_data['temp']['action'] != 'C' && $transformed_familiy_member_data['temp']['action'] != 'SI')
|
if($transformed_familiy_member_data['temp']['action'] != 'D' && $transformed_familiy_member_data['temp']['action'] != 'C' && $transformed_familiy_member_data['temp']['action'] != 'SI')
|
||||||
{
|
{
|
||||||
$transformed_familiy_member_data['relationship_code'] = generate_relationship_code($transformed_familiy_member_data);
|
$temp_res = generate_relationship_code($transformed_familiy_member_data);
|
||||||
|
$transformed_familiy_member_data['relationship_code'] = $temp_res['relationship_code'];
|
||||||
|
$transformed_familiy_member_data['emp_type'] = $temp_res['emp_type_code'];
|
||||||
}
|
}
|
||||||
|
|
||||||
//calculate primimum based on grid type
|
//calculate primimum based on grid type
|
||||||
@ -728,7 +747,15 @@ if (!function_exists('calculate_premimum'))
|
|||||||
$transformed_familiy_member_data['temp']['maxage'] = $emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['maxage'];
|
$transformed_familiy_member_data['temp']['maxage'] = $emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['maxage'];
|
||||||
$transformed_familiy_member_data['temp']['maxcount'] = $emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['maxcount'];
|
$transformed_familiy_member_data['temp']['maxcount'] = $emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['maxcount'];
|
||||||
|
|
||||||
$transformed_familiy_member_data['policy_details']['basic_cover_si'] = isset($emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['si']) ? $emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['si'] : $transformed_familiy_member_data['policy_details']['basic_cover_si'];
|
//set self si to all familiy members, except they've come from DB
|
||||||
|
// if(isset($emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['si']))
|
||||||
|
// {
|
||||||
|
if($transformed_familiy_member_data['temp']['source'] != 'db')
|
||||||
|
{
|
||||||
|
$transformed_familiy_member_data['policy_details']['basic_cover_si'] = isset($emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['si']) ? $emp_details_with_empband_max_age_max_count[ $transformed_familiy_member_data['emp_code'] ]['si'] : $transformed_familiy_member_data['policy_details']['basic_cover_si'];
|
||||||
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
// this array hold conditions to allow calculate premium amt
|
// this array hold conditions to allow calculate premium amt
|
||||||
$conditions = [
|
$conditions = [
|
||||||
@ -740,9 +767,12 @@ if (!function_exists('calculate_premimum'))
|
|||||||
'isPrimaryGridPremiumTypeSingle' => $slab_details['slab_rates'][0]['premium_type'] == 1,
|
'isPrimaryGridPremiumTypeSingle' => $slab_details['slab_rates'][0]['premium_type'] == 1,
|
||||||
'isAdditionalPremiumTypeSingle' => isset($slab_details['additional_slab_info']['slab_rates'][0]['premium_type']) ? ( $slab_details['additional_slab_info']['slab_rates'][0]['premium_type'] == 1) : 0,
|
'isAdditionalPremiumTypeSingle' => isset($slab_details['additional_slab_info']['slab_rates'][0]['premium_type']) ? ( $slab_details['additional_slab_info']['slab_rates'][0]['premium_type'] == 1) : 0,
|
||||||
'isCurrentRelationshipSelf' => strtolower($transformed_familiy_member_data['relationship']) == 'self',
|
'isCurrentRelationshipSelf' => strtolower($transformed_familiy_member_data['relationship']) == 'self',
|
||||||
'isBasicCoverCalculatedToCurrentEmployee' => strtolower($transformed_familiy_member_data['policy_details']['basic_cover_si']) != null
|
'isBasicCoverCalculatedToCurrentEmployee' => ($transformed_familiy_member_data['policy_details']['basic_cover_si'] != null && $transformed_familiy_member_data['policy_details']['basic_cover_si'] != 0)
|
||||||
];
|
];
|
||||||
|
// Kint::dump($transformed_familiy_member_data['policy_details']);
|
||||||
|
// echo ($transformed_familiy_member_data['policy_details']['basic_cover_si'] != null && $transformed_familiy_member_data['policy_details']['basic_cover_si'] != 0);
|
||||||
|
// echo ($conditions['isBasicCoverCalculatedToCurrentEmployee']);
|
||||||
|
// echo "<br>";
|
||||||
// same logic for both primay and additional grid type
|
// same logic for both primay and additional grid type
|
||||||
$primaryGridTypeCondition = $conditions['isCurrentActionDependentAddition'] && $conditions['isPrimaryGridType'] && $conditions['isPrimaryGridPremiumTypeSingle'] && $conditions['isCurrentRelationshipSelf'];
|
$primaryGridTypeCondition = $conditions['isCurrentActionDependentAddition'] && $conditions['isPrimaryGridType'] && $conditions['isPrimaryGridPremiumTypeSingle'] && $conditions['isCurrentRelationshipSelf'];
|
||||||
$additionalGridTypeCondition = $conditions['isCurrentActionDependentAddition'] && $conditions['isAdditionalGridType'] && $conditions['isAdditionalPremiumTypeSingle'] && $conditions['isBasicCoverCalculatedToCurrentEmployee'];
|
$additionalGridTypeCondition = $conditions['isCurrentActionDependentAddition'] && $conditions['isAdditionalGridType'] && $conditions['isAdditionalPremiumTypeSingle'] && $conditions['isBasicCoverCalculatedToCurrentEmployee'];
|
||||||
@ -814,6 +844,7 @@ if (!function_exists('transform_excel_data_to_db'))
|
|||||||
$result['temp']['emp_policy_id'] = isset($memArr['temp']['emp_policy_id']) ? $memArr['temp']['emp_policy_id'] : null;
|
$result['temp']['emp_policy_id'] = isset($memArr['temp']['emp_policy_id']) ? $memArr['temp']['emp_policy_id'] : null;
|
||||||
$result['temp']['policy_status'] = isset($memArr['temp']['policy_status']) ? $memArr['temp']['policy_status'] : null;
|
$result['temp']['policy_status'] = isset($memArr['temp']['policy_status']) ? $memArr['temp']['policy_status'] : null;
|
||||||
$result['temp']['emp_status'] = isset($memArr['temp']['emp_status']) ? $memArr['temp']['emp_status'] : null;
|
$result['temp']['emp_status'] = isset($memArr['temp']['emp_status']) ? $memArr['temp']['emp_status'] : null;
|
||||||
|
$result['temp']['rata_premimum'] = isset($memArr['temp']['rata_premimum']) ? $memArr['temp']['rata_premimum'] : 0;
|
||||||
$result['policy_details'] = $policy;
|
$result['policy_details'] = $policy;
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
@ -874,7 +905,7 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$insurer = ($insurer->find($policy_terms['insurer_id']));
|
$insurer = ($insurer->find($policy_terms['insurer_id']));
|
||||||
if($insurer['addition_add_day'] == true)
|
if($insurer['addition_add_day'] == true)
|
||||||
{
|
{
|
||||||
$emp_data['policy_details']['date_coverage'] = (new DateTime($emp_data['policy_details']['date_coverage']))->modify('-1 day')->format('Y-m-d');
|
$emp_data['policy_details']['date_coverage'] = (new DateTime($emp_data['policy_details']['date_coverage']))->modify('+1 day')->format('Y-m-d');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// dd($emp_data);
|
// dd($emp_data);
|
||||||
@ -891,9 +922,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -911,9 +942,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -930,9 +961,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -954,9 +985,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -974,9 +1005,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -995,9 +1026,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -1016,9 +1047,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
||||||
|
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
@ -1039,9 +1070,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -1060,9 +1091,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
$emp_data['policy_details']['basic_cover_si'] = $slab_value['si'];
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
$emp_data['policy_details']['gst'] = (float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.','');
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -1087,9 +1118,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $employee_received_si;
|
$emp_data['policy_details']['basic_cover_si'] = $employee_received_si;
|
||||||
$emp_data['policy_details']['date_coverage'] = isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date'];
|
$emp_data['policy_details']['date_coverage'] = isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date'];
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = ((float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.',''));
|
$emp_data['policy_details']['gst'] = ((float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.',''));
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -1117,9 +1148,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $familiy_si_covered;
|
$emp_data['policy_details']['basic_cover_si'] = $familiy_si_covered;
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = get_premium_for_si(slab_details: $slab_details,si_amount: $familiy_si_covered,band: $employee_received_band);
|
$emp_data['policy_details']['premium'] = get_premium_for_si(slab_details: $slab_details,si_amount: $familiy_si_covered,band: $employee_received_band);
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = ((float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.',''));
|
$emp_data['policy_details']['gst'] = ((float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.',''));
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -1142,9 +1173,9 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $employee_received_si;
|
$emp_data['policy_details']['basic_cover_si'] = $employee_received_si;
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],(calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days + 1));
|
||||||
$emp_data['policy_details']['gst'] = ((float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.',''));
|
$emp_data['policy_details']['gst'] = ((float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.',''));
|
||||||
$is_match_found = true;
|
$is_match_found = true;
|
||||||
break;
|
break;
|
||||||
@ -1167,7 +1198,7 @@ if (!function_exists('premium_calculation_manager'))
|
|||||||
$emp_data['policy_details']['basic_cover_si'] = $employee_received_si;
|
$emp_data['policy_details']['basic_cover_si'] = $employee_received_si;
|
||||||
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
$emp_data['policy_details']['date_coverage'] = (isset($emp_data['policy_details']['date_coverage']) ? $emp_data['policy_details']['date_coverage'] : $policy_terms['policy_start_date']);
|
||||||
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
$emp_data['policy_details']['policy_end_date'] = $policy_terms['policy_end_date'];
|
||||||
$emp_data['policy_details']['days'] = calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days;
|
$emp_data['policy_details']['days'] = (calculate_days_bw_dates($emp_data['policy_details']['date_coverage'],$policy_terms['policy_end_date'])->days + 1);
|
||||||
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
$emp_data['policy_details']['premium'] = $slab_value['premium'];
|
||||||
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
$emp_data['policy_details']['rata_premimum'] = calculate_pro_rata_premimum($emp_data['policy_details']['premium'],$emp_data['policy_details']['days'],calculate_days_bw_dates($policy_terms['policy_start_date'],$policy_terms['policy_end_date'])->days);
|
||||||
$emp_data['policy_details']['gst'] = ((float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.',''));
|
$emp_data['policy_details']['gst'] = ((float) number_format(($emp_data['policy_details']['rata_premimum'] * (18/100)),2,'.',''));
|
||||||
@ -1267,6 +1298,7 @@ if (!function_exists('transform_db_data_to_excel'))
|
|||||||
$row['temp']['emp_policy_id'] = $value['emp_policy_id'];
|
$row['temp']['emp_policy_id'] = $value['emp_policy_id'];
|
||||||
$row['temp']['emp_status'] = $value['emp_status'];
|
$row['temp']['emp_status'] = $value['emp_status'];
|
||||||
$row['temp']['policy_status'] = $value['status'];
|
$row['temp']['policy_status'] = $value['status'];
|
||||||
|
$row['temp']['rata_premimum'] = $value['rata_premimum'];
|
||||||
|
|
||||||
array_push($return_data, ($row));
|
array_push($return_data, ($row));
|
||||||
}
|
}
|
||||||
|
|||||||
21
app/Models/AddImgModel.php
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use CodeIgniter\Model;
|
||||||
|
|
||||||
|
class AddImgModel extends Model
|
||||||
|
{
|
||||||
|
protected $table = 'advertisement_images';
|
||||||
|
protected $primaryKey = 'id';
|
||||||
|
protected $allowedFields = [
|
||||||
|
"id",
|
||||||
|
"name",
|
||||||
|
"created_by",
|
||||||
|
"updated_by",
|
||||||
|
"is_active",
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
@ -39,7 +39,8 @@ class EmployeeModel extends Model
|
|||||||
"is_addon_value",
|
"is_addon_value",
|
||||||
"is_createdby_hr",
|
"is_createdby_hr",
|
||||||
"client_branch_id",
|
"client_branch_id",
|
||||||
"token_time_out"
|
"token_time_out",
|
||||||
|
"emp_type"
|
||||||
];
|
];
|
||||||
|
|
||||||
// Callbacks
|
// Callbacks
|
||||||
|
|||||||
25
app/Models/FEContentModel.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use CodeIgniter\Model;
|
||||||
|
|
||||||
|
class FEContentModel extends Model
|
||||||
|
{
|
||||||
|
protected $table = 'fe_content';
|
||||||
|
protected $primaryKey = 'id';
|
||||||
|
protected $allowedFields = [
|
||||||
|
"id",
|
||||||
|
"type",
|
||||||
|
"content_section",
|
||||||
|
"heading",
|
||||||
|
"content",
|
||||||
|
"notes",
|
||||||
|
"created_by",
|
||||||
|
"updated_by",
|
||||||
|
"is_active",
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
@ -44,7 +44,7 @@ table.dataTable tbody td {
|
|||||||
<div class="col-6" style="align-self: center;">
|
<div class="col-6" style="align-self: center;">
|
||||||
<h4 style="position: relative;">User List</h4>
|
<h4 style="position: relative;">User List</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
<div class="col-6" style="text-align: right; position: relative;top: 56px;">
|
||||||
<button type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-target="#con-close-modal" data-placement="top" title="Add" data-trigger="hover">ADD</button>
|
<button type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-target="#con-close-modal" data-placement="top" title="Add" data-trigger="hover">ADD</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="datatable-buttons" class="table table-hover m-0 table-centered dt-responsive nowrap w-100">
|
<table id="datatable-buttons" class="table table-hover m-0 table-centered dt-responsive w-100">
|
||||||
<thead class="bg-light">
|
<thead class="bg-light">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="font-weight-medium">SNO</th>
|
<th class="font-weight-medium">SNO</th>
|
||||||
@ -48,7 +48,7 @@
|
|||||||
<td><?php echo $file['batch_code'] ?></td>
|
<td><?php echo $file['batch_code'] ?></td>
|
||||||
<td class="reload" data-toggle="tooltip" data-placement="top"
|
<td class="reload" data-toggle="tooltip" data-placement="top"
|
||||||
title="<?php echo $file['file_name'] ?>">
|
title="<?php echo $file['file_name'] ?>">
|
||||||
<?php echo strlen($file['file_name']) > 5 ? substr($file['file_name'], 0, 10) . "..." : $file['file_name'] ?>
|
<?php echo $file['file_name'] ?>
|
||||||
</td>
|
</td>
|
||||||
<td><?php echo $file['client_short_name'] ?></td>
|
<td><?php echo $file['client_short_name'] ?></td>
|
||||||
<td><?php echo $file['branch_name'] ?></td>
|
<td><?php echo $file['branch_name'] ?></td>
|
||||||
@ -58,11 +58,9 @@
|
|||||||
<td><?php echo $file['actions'] ?></td>
|
<td><?php echo $file['actions'] ?></td>
|
||||||
<td><?php echo $file['count'] == null ? '-' : $file['count'] ?></td>
|
<td><?php echo $file['count'] == null ? '-' : $file['count'] ?></td>
|
||||||
|
|
||||||
<td class="indian-number"><?php echo intval($file['amount']) ?></td>
|
<td><?php echo format_indian_number($file['amount'])?></td>
|
||||||
<td class="reload" data-toggle="tooltip" data-placement="top" title="<?php echo date('d-M-Y H:i:a', strtotime($file['created_at'])) ?> by <?php echo get_username($file['created_by']) ?>">
|
<td class="reload">
|
||||||
|
<?php echo date('d-M-Y H:i:a', strtotime($file['created_at'])) ?> by <?php echo get_username($file['created_by']) ?>
|
||||||
<?php echo strlen($file['created_at']) > 5 ? substr(date('d-M-Y H:i:a', strtotime($file['created_at'])), 0, 6) . "..." : $file['created_at'] ?>
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php if ($file['status'] == 'failed') { ?>
|
<?php if ($file['status'] == 'failed') { ?>
|
||||||
|
|||||||
@ -1018,7 +1018,7 @@
|
|||||||
80: "Eighty",
|
80: "Eighty",
|
||||||
90: "Ninety"
|
90: "Ninety"
|
||||||
};
|
};
|
||||||
|
|
||||||
function convertNumberToWords(number) {
|
function convertNumberToWords(number) {
|
||||||
if (number === 0) {
|
if (number === 0) {
|
||||||
return numberWords[number];
|
return numberWords[number];
|
||||||
@ -1027,22 +1027,34 @@
|
|||||||
let word = '';
|
let word = '';
|
||||||
|
|
||||||
if (number >= 10000000) {
|
if (number >= 10000000) {
|
||||||
word += convertNumberToWords(Math.floor(number / 10000000)) + " Crore ";
|
const crore = Math.floor(number / 10000000);
|
||||||
|
if (crore > 0) {
|
||||||
|
word += convertNumberToWords(crore) + " Crore ";
|
||||||
|
}
|
||||||
number %= 10000000;
|
number %= 10000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (number >= 100000) {
|
if (number >= 100000) {
|
||||||
word += convertNumberToWords(Math.floor(number / 100000)) + " Lakh ";
|
const lakh = Math.floor(number / 100000);
|
||||||
|
if (lakh > 0) {
|
||||||
|
word += convertNumberToWords(lakh) + " Lakh ";
|
||||||
|
}
|
||||||
number %= 100000;
|
number %= 100000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (number >= 1000) {
|
if (number >= 1000) {
|
||||||
word += convertNumberToWords(Math.floor(number / 1000)) + " Thousand ";
|
const thousand = Math.floor(number / 1000);
|
||||||
|
if (thousand > 0) {
|
||||||
|
word += convertNumberToWords(thousand) + " Thousand ";
|
||||||
|
}
|
||||||
number %= 1000;
|
number %= 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (number >= 100) {
|
if (number >= 100) {
|
||||||
word += convertNumberToWords(Math.floor(number / 100)) + " Hundred ";
|
const hundred = Math.floor(number / 100);
|
||||||
|
if (hundred > 0) {
|
||||||
|
word += convertNumberToWords(hundred) + " Hundred ";
|
||||||
|
}
|
||||||
number %= 100;
|
number %= 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1059,44 +1071,66 @@
|
|||||||
return word.trim();
|
return word.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function convertCommaNumberToWords(input) {
|
function convertCommaNumberToWords(input) {
|
||||||
|
|
||||||
let number;
|
let number;
|
||||||
if (input instanceof HTMLElement) {
|
if (input instanceof HTMLElement) {
|
||||||
const inputValue = input.value;
|
const inputValue = input.value;
|
||||||
number = parseInt(inputValue.replace(/,/g, ''), 10);
|
number = parseFloat(inputValue.replace(/,/g, ''), 10);
|
||||||
var convert_word_value = convertNumberToWords(number);
|
|
||||||
|
|
||||||
if (input.nextElementSibling !== null) {
|
|
||||||
input.nextElementSibling.textContent = convert_word_value;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
number = parseInt(input.replace(/,/g, ''), 10);
|
number = parseFloat(input.replace(/,/g, ''), 10);
|
||||||
}
|
}
|
||||||
var convert_word_value = convertNumberToWords(number);
|
|
||||||
|
|
||||||
return convert_word_value;
|
const [integerPart, decimalPart] = number.toFixed(2).split('.');
|
||||||
|
const integerWord = convertNumberToWords(parseInt(integerPart, 10));
|
||||||
|
let result = `${integerWord}`;
|
||||||
|
|
||||||
|
console.log('decimalPart',decimalPart)
|
||||||
|
console.log('decimalPart',typeof decimalPart)
|
||||||
|
|
||||||
|
if (decimalPart != '00' && decimalPart != undefined) {
|
||||||
|
result += ` and `;
|
||||||
|
let decimalWord = convertNumberToWords(parseInt(decimalPart, 10))
|
||||||
|
result += `${decimalWord}`
|
||||||
|
result += ` Paisa`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function onlyNumbers(event) {
|
function onlyNumbers(event) {
|
||||||
var charcode;
|
var charcode;
|
||||||
charcode = event.which || event.keyCode;
|
charcode = event.which || event.keyCode;
|
||||||
if (charcode >= 48 && charcode <= 57) return true;
|
if (charcode >= 48 && charcode <= 57 || charcode == 46) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function formatNumber(input, maxLength) {
|
function formatNumber(input, maxLength) {
|
||||||
|
|
||||||
// console.log("input", input);
|
console.log("input", input);
|
||||||
|
console.log("input value", input.value);
|
||||||
|
|
||||||
maxLength = 16;
|
maxLength = 16;
|
||||||
let value = input.value.replace(/\D/g, ''); // Remove non-numeric characters
|
let value = input.value.replace(/[^\d.]/g, ''); // Remove non-numeric characters
|
||||||
|
console.log('Remove non-numeric characters', value)
|
||||||
|
|
||||||
|
|
||||||
// Limit the number of digits
|
// Limit the number of digits
|
||||||
value = value.slice(0, maxLength);
|
value = value.slice(0, maxLength);
|
||||||
|
console.log('Limited value', value);
|
||||||
|
|
||||||
|
|
||||||
// Format the number with commas using Indian numbering system
|
// Format the number with commas using Indian numbering system
|
||||||
value = Number(value).toLocaleString('en-IN');
|
value = parseFloat(value).toLocaleString("en-IN",{
|
||||||
input.value = value;
|
maximumFractionDigits: 2
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log('formetted value', value);
|
||||||
|
|
||||||
|
input.value = (value);
|
||||||
|
|
||||||
basicPayMultiple(input)
|
basicPayMultiple(input)
|
||||||
if (input.id == 'gpa_si') {
|
if (input.id == 'gpa_si') {
|
||||||
|
|||||||
@ -24,8 +24,16 @@
|
|||||||
.table-responsive {
|
.table-responsive {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.word-wrap {
|
||||||
|
word-wrap: break-word;
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<?php $pro_rata_total = 0; $gst_total = 0 ?>
|
||||||
|
|
||||||
<div class="row" id="client_list">
|
<div class="row" id="client_list">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@ -37,7 +45,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
|
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0"
|
||||||
id="tickets-table">
|
id="tickets-table">
|
||||||
<thead class="bg-light">
|
<thead class="bg-light">
|
||||||
<tr>
|
<tr>
|
||||||
@ -67,8 +75,7 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><b><?php echo ($key + 1)?></b></td>
|
<td><b><?php echo ($key + 1)?></b></td>
|
||||||
<td><?php echo $employee['name']?>( <?php echo $employee['emp_code']?> -
|
<td><?php echo $employee['name']?>( <?php echo $employee['emp_code']?> - <?php echo $employee['relationship']?> )</td>
|
||||||
<?php echo $employee['relationship']?> )</td>
|
|
||||||
<td><?php echo $employee['policy_name']?></td>
|
<td><?php echo $employee['policy_name']?></td>
|
||||||
<td><?php echo $employee['insurer_short_name']?></td>
|
<td><?php echo $employee['insurer_short_name']?></td>
|
||||||
<td><?php echo $employee['tpa_id']?></td>
|
<td><?php echo $employee['tpa_id']?></td>
|
||||||
@ -90,10 +97,10 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td class="indian-number"> <?php echo $employee['basic_cover_si']?> </td>
|
<td><?php echo format_indian_number($employee['basic_cover_si'])?> </td>
|
||||||
<td class="indian-number"><?php echo $employee['premium']?></td>
|
<td><?php echo format_indian_number($employee['premium'])?></td>
|
||||||
<td class="indian-number"><?php echo $employee['rata_premimum']?></td>
|
<td><?php $pro_rata_total = $pro_rata_total + $employee['rata_premimum']; echo format_indian_number($employee['rata_premimum'])?></td>
|
||||||
<td class="indian-number"><?php echo $employee['gst']?></td>
|
<td><?php $gst_total = $gst_total + $employee['gst']; echo format_indian_number($employee['gst'])?></td>
|
||||||
<!-- <td>
|
<!-- <td>
|
||||||
<div class="btn-group dropdown">
|
<div class="btn-group dropdown">
|
||||||
<a href="javascript: void(0);"
|
<a href="javascript: void(0);"
|
||||||
@ -128,9 +135,8 @@
|
|||||||
<th></th>
|
<th></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>Total</th>
|
<th>Total</th>
|
||||||
<th class="indian-number"></th>
|
<th><?php echo format_indian_number($pro_rata_total) ?></th>
|
||||||
<th class="indian-number"></th>
|
<th><?php echo format_indian_number($gst_total) ?></th>
|
||||||
<th></th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
@ -152,19 +158,20 @@ $(document).ready(function() {
|
|||||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||||
"<'row'<'col-sm-12'tr>>" +
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||||
"buttons": [{
|
buttons: [{
|
||||||
"extend": 'csv',
|
extend: 'csv',
|
||||||
"text": 'CSV',
|
text: 'CSV',
|
||||||
"title": 'Employee-List',
|
title: 'Employee-List',
|
||||||
"className": 'my_class',
|
className: 'my_class',
|
||||||
"exportOptions": {
|
exportOptions: {
|
||||||
"columns": ':not(:last-child)'
|
columns: ':not(:last-child)', // Adjust as needed
|
||||||
},
|
footer: true // Include the footer in the export
|
||||||
|
}
|
||||||
}],
|
}],
|
||||||
"initComplete": function(settings, json) {
|
initComplete: function(settings, json) {
|
||||||
$('.my_class').css({
|
$('.my_class').css({
|
||||||
"position": "relative",
|
position: "relative",
|
||||||
"left": "82px"
|
left: "82px"
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
language: {
|
language: {
|
||||||
@ -173,70 +180,80 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
paging: true,
|
paging: true,
|
||||||
// pagingType: 'full_numbers'
|
// pagingType: 'full_numbers'
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Function to format a number in Indian Rupees format
|
// // Function to format a number in Indian Rupees format
|
||||||
function formatNumberInIndianRupees(number) {
|
// function formatNumberInIndianRupees(number) {
|
||||||
|
// const maxLength = 24;
|
||||||
|
// let value = number.toString().replace(/[^\d.]/g, ''); // Remove non-numeric characters
|
||||||
|
|
||||||
const maxLength = 16;
|
// // Limit the number of digits before the decimal point
|
||||||
let value = number.toString().replace(/\D/g, ''); // Remove non-numeric characters
|
// if (value.includes('.')) {
|
||||||
|
// let parts = value.split('.');
|
||||||
|
// parts[0] = parts[0].slice(0, maxLength); // Limit the integer part
|
||||||
|
// value = parts.join('.');
|
||||||
|
// } else {
|
||||||
|
// value = value.slice(0, maxLength);
|
||||||
|
// }
|
||||||
|
|
||||||
// Limit the number of digits
|
// // Convert to a number and format with commas using the Indian numbering system
|
||||||
value = value.slice(0, maxLength);
|
// const formattedNumber = Number(value).toLocaleString('en-IN', {
|
||||||
|
// maximumFractionDigits: 2 // Optional: limit to 2 decimal places if required
|
||||||
|
// });
|
||||||
|
|
||||||
// Format the number with commas using Indian numbering system
|
// return formattedNumber;
|
||||||
const formattedNumber = Number(value).toLocaleString('en-IN');
|
// }
|
||||||
|
|
||||||
return formattedNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Function to format numbers based on a class
|
// // Function to format numbers based on a class
|
||||||
function formatNumbersByClass(className) {
|
// function formatNumbersByClass(className) {
|
||||||
const elements = document.querySelectorAll(`.${className}`);
|
// const elements = document.querySelectorAll(`.${className}`);
|
||||||
elements.forEach(element => {
|
// elements.forEach(element => {
|
||||||
const number = parseFloat(element.innerText.replace(/,/g, ''));
|
// const number = parseFloat(element.innerText.replace(/,/g, ''));
|
||||||
|
|
||||||
if (!isNaN(number)) {
|
// if (!isNaN(number)) {
|
||||||
element.innerText = formatNumberInIndianRupees(number);
|
// element.innerText = formatNumberInIndianRupees(number);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Format numbers when the DOM content is loaded
|
// // Format numbers when the DOM content is loaded
|
||||||
document.addEventListener("DOMContentLoaded", function() {
|
// document.addEventListener("DOMContentLoaded", function() {
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
|
|
||||||
|
// formatNumbersByClass('indian-number');
|
||||||
|
|
||||||
|
// }, 500);
|
||||||
|
// });
|
||||||
|
|
||||||
formatNumbersByClass('indian-number');
|
|
||||||
|
|
||||||
}, 500);
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
// $(document).ready(function() {
|
||||||
|
|
||||||
var table = $('#tickets-table').DataTable({
|
// var table = $('#tickets-table').DataTable({
|
||||||
"footer": true
|
// "footer": true
|
||||||
});
|
// });
|
||||||
|
|
||||||
var sumColumn9 = table.column(9).data().reduce(function(a, b) {
|
// var sumColumn9 = table.column(9).data().reduce(function(a, b) {
|
||||||
return parseFloat(a) + parseFloat(b);
|
// return parseFloat(a) + parseFloat(b);
|
||||||
}, 0);
|
// }, 0);
|
||||||
|
|
||||||
console.log(sumColumn9)
|
// console.log(sumColumn9)
|
||||||
|
|
||||||
var sumColumn10 = table.column(10).data().reduce(function(a, b) {
|
// var sumColumn10 = table.column(10).data().reduce(function(a, b) {
|
||||||
return parseFloat(a) + parseFloat(b);
|
// return parseFloat(a) + parseFloat(b);
|
||||||
}, 0);
|
// }, 0);
|
||||||
|
|
||||||
console.log(sumColumn10)
|
// console.log(sumColumn10)
|
||||||
|
|
||||||
$('#tickets-table tfoot th:eq(9)').html(sumColumn9);
|
// $('#tickets-table tfoot th:eq(9)').html(sumColumn9);
|
||||||
$('#tickets-table tfoot th:eq(10)').html(sumColumn10);
|
// $('#tickets-table tfoot th:eq(10)').html(sumColumn10);
|
||||||
});
|
// });
|
||||||
</script>
|
</script>
|
||||||
@ -214,10 +214,27 @@ $(document).ready(function() {
|
|||||||
// console.log('submit called');
|
// console.log('submit called');
|
||||||
|
|
||||||
|
|
||||||
if(!checkValues()){
|
if(checkValues() == 'client'){
|
||||||
|
|
||||||
toastr.warning('Form is Empty', 'warning')
|
toastr.warning('Client is Required', 'warning')
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
}else if(checkValues() == 'policy'){
|
||||||
|
|
||||||
|
toastr.warning('Policy is Required', 'warning')
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}else if(checkValues() == 'branch'){
|
||||||
|
|
||||||
|
toastr.warning('Branch is Required', 'warning')
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}else if(checkValues() == 'event'){
|
||||||
|
|
||||||
|
toastr.warning('Event is Required', 'warning')
|
||||||
|
return false;
|
||||||
|
}else{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -999,26 +1016,26 @@ function checkValues() {
|
|||||||
|
|
||||||
if (!clientId || clientId == '0') {
|
if (!clientId || clientId == '0') {
|
||||||
// alert('Client ID is empty or zero');
|
// alert('Client ID is empty or zero');
|
||||||
return false;
|
return 'client';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!branchId || branchId == '0') {
|
||||||
|
// alert('Branch ID is empty or zero');
|
||||||
|
return 'branch';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!policyId || policyId == '0') {
|
if (!policyId || policyId == '0') {
|
||||||
// alert('Policy ID is empty or zero');
|
// alert('Policy ID is empty or zero');
|
||||||
return false;
|
return 'policy';
|
||||||
}
|
|
||||||
|
|
||||||
if (!branchId || branchId == '0') {
|
|
||||||
// alert('Branch ID is empty or zero');
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!uploadActionType || uploadActionType == '0') {
|
if (!uploadActionType || uploadActionType == '0') {
|
||||||
// alert('Upload action type is empty or zero');
|
// alert('Upload action type is empty or zero');
|
||||||
return false;
|
return 'event';
|
||||||
}
|
}
|
||||||
|
|
||||||
// If all values are valid, return true
|
// If all values are valid, return true
|
||||||
return true;
|
// return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
|
<table class="table table-hover m-0 table-centered dt-responsive w-100" cellspacing="0"
|
||||||
id="tickets-table">
|
id="tickets-table">
|
||||||
<thead class="bg-light">
|
<thead class="bg-light">
|
||||||
<tr>
|
<tr>
|
||||||
@ -35,43 +35,49 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody class="font-12">
|
<tbody class="font-12">
|
||||||
<?php
|
<?php
|
||||||
if(isset($fileList))
|
if (isset($fileList)) {
|
||||||
{
|
|
||||||
foreach ($fileList as $key => $file) { //print_r((json_decode($file['reason'])));
|
foreach ($fileList as $key => $file) { //print_r((json_decode($file['reason'])));
|
||||||
// $reason = json_decode(($file['reason']));
|
// $reason = json_decode(($file['reason']));
|
||||||
// $reason = "{'date':'value data kbckl kcn/aksl'}";
|
// $reason = "{'date':'value data kbckl kcn/aksl'}";
|
||||||
// echo $reason;
|
// echo $reason;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><b><?php echo ($key + 1)?></b></td>
|
<td><b><?php echo ($key + 1) ?></b></td>
|
||||||
<td><?php echo $file['file_name']?></td>
|
<td><?php echo $file['file_name'] ?></td>
|
||||||
<td><?php echo $file['short_name']?></td>
|
<td><?php echo $file['short_name'] ?></td>
|
||||||
<td><?php echo $file['branch_name']?></td>
|
<td><?php echo $file['branch_name'] ?></td>
|
||||||
<td><?php echo $file['policy_name']?></td>
|
<td><?php echo $file['policy_name'] ?></td>
|
||||||
<td><?php echo $file['action']?></td>
|
<td><?php echo $file['action'] ?></td>
|
||||||
<td><?php echo fancy_date_time_format($file['created_at']).' by <strong>'.$file['first_name'].'</strong>'?>
|
<td><?php echo fancy_date_time_format($file['created_at']) . ' by <strong>' . $file['first_name'] . '</strong>' ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if($file['status'] == 'failed')
|
if ($file['status'] == 'failed') {
|
||||||
{
|
echo $file['status'] . " <span class='col-xl-3 col-lg-4 col-sm-6'> <i class='fe-alert-circle' data-toggle='modal' data-target='#file-err-modal' data-err=" . $file['id'] . "></i></span>";
|
||||||
echo $file['status'] . " <span class='col-xl-3 col-lg-4 col-sm-6'> <i class='fe-alert-circle' data-toggle='modal' data-target='#file-err-modal' data-err=".$file['id']."></i></span>";
|
} else if ($file['status'] == 'inprogress') {
|
||||||
|
|
||||||
}else if( $file['status'] == 'inprogress'){
|
|
||||||
|
|
||||||
$tool_tip_text = "Live(s) : {$file['employee_count']}" . " | Total premium : ₹ " . format_indian_number($file['total'],2,',') ." | Click to reload";
|
if ($file['action'] == 'inception' || $file['action'] == 'addition' || $file['action'] == 'dependent_addtion') {
|
||||||
echo '<a data-toggle="tooltip" data-placement="top" data-id="' . $file['status'] . '" class="reload" title="'.$tool_tip_text.'" href="#">' . $file['status'] . '</a>';
|
|
||||||
|
|
||||||
}else{
|
|
||||||
|
|
||||||
$tool_tip_text = "Live(s) : {$file['employee_count']}" . " | Total premium : ₹ " . format_indian_number($file['total'],2,',') ;
|
$tool_tip_text = "Live(s) : {$file['employee_count']}" . " | Total premium : ₹ " . format_indian_number($file['total'], 2, ',') . " | Click to reload";
|
||||||
// $tool_tip_text = "dssd";
|
echo '<a data-toggle="tooltip" data-placement="top" data-id="' . $file['status'] . '" class="reload" title="' . $tool_tip_text . '" href="#">' . $file['status'] . '</a>';
|
||||||
// Total Amount : $file['total']";
|
}
|
||||||
echo '<span data-toggle="tooltip" data-placement="top" data-id="' . $file['status'] . '" title=" '. $tool_tip_text.' ">' . $file['status'] . '</span>';
|
} else if ($file['status'] == 'success') {
|
||||||
}
|
|
||||||
?>
|
if ($file['action'] == 'inception' || $file['action'] == 'addition' || $file['action'] == 'dependent_addtion') {
|
||||||
|
$tool_tip_text = "Live(s) : {$file['employee_count']}" . " | Total premium : ₹ " . format_indian_number($file['total'], 2, ',');
|
||||||
|
// $tool_tip_text = "dssd";
|
||||||
|
// Total Amount : $file['total']";
|
||||||
|
echo '<span data-toggle="tooltip" data-placement="top" data-id="' . $file['status'] . '" title=" ' . $tool_tip_text . ' ">' . $file['status'] . '</span>';
|
||||||
|
}else{
|
||||||
|
echo '<span data-id="' . $file['status'] . '" >' . $file['status'] . '</span>';
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
|
||||||
|
echo '<span data-id="' . $file['status'] . '" >' . $file['status'] . '</span>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
@ -80,30 +86,34 @@
|
|||||||
data-toggle="dropdown" aria-expanded="false"><i
|
data-toggle="dropdown" aria-expanded="false"><i
|
||||||
class="mdi mdi-dots-horizontal"></i></a>
|
class="mdi mdi-dots-horizontal"></i></a>
|
||||||
<div class="dropdown-menu dropdown-menu-right">
|
<div class="dropdown-menu dropdown-menu-right">
|
||||||
<?php if($file['status'] == 'failed') { ?>
|
<?php if ($file['status'] == 'failed') { ?>
|
||||||
<a data-id="<?= htmlspecialchars(json_encode(['client_id' => $file['client_id'], 'client_policy_id' => $file['client_policy_id'], 'action' => $file['action']])) ?>" data-toggle="modal"
|
<a data-id="<?= htmlspecialchars(json_encode(['client_id' => $file['client_id'], 'client_policy_id' => $file['client_policy_id'], 'client_branch_id' => $file['client_branch_id'], 'action' => $file['action']])) ?>"
|
||||||
data-target="#file-upload-modal" class="dropdown-item upload_button" href="#"><i
|
data-toggle="modal" data-target="#file-upload-modal"
|
||||||
|
class="dropdown-item upload_button" href="#"><i
|
||||||
class="mdi mdi-upload mr-2 text-muted font-18 vertical-middle"></i>Re-Upload</a>
|
class="mdi mdi-upload mr-2 text-muted font-18 vertical-middle"></i>Re-Upload</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<a class="dropdown-item"
|
<a class="dropdown-item"
|
||||||
href="<?= base_url("util/download-file-list/").$file['id']; ?>"><i
|
href="<?= base_url("util/download-file-list/") . $file['id']; ?>"><i
|
||||||
class="mdi mdi-download mr-2 text-muted font-18 vertical-middle"></i>Download</a>
|
class="mdi mdi-download mr-2 text-muted font-18 vertical-middle"></i>Download</a>
|
||||||
|
|
||||||
<a data-id="<?php echo $file['id']?>" data-toggle="modal"
|
<a data-id="<?php echo $file['id'] ?>" data-toggle="modal"
|
||||||
data-target="#full-width-modal-emp-list" class="dropdown-item view_emp_list"
|
data-target="#full-width-modal-emp-list" class="dropdown-item view_emp_list"
|
||||||
href="#"><i
|
href="#"><i
|
||||||
class="mdi mdi-eye mr-2 text-muted font-18 vertical-middle"></i>View</a>
|
class="mdi mdi-eye mr-2 text-muted font-18 vertical-middle"></i>View</a>
|
||||||
<?php if($file['status'] == 'success'){?>
|
<?php if ($file['status'] == 'success') { ?>
|
||||||
<a data-id="<?php echo $file['id']?>" class="dropdown-item truncate"
|
|
||||||
href="#"><i
|
|
||||||
|
<a data-id="<?php echo $file['id'] ?>" class="dropdown-item truncate" href="#"><i
|
||||||
class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Truncate</a>
|
class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Truncate</a>
|
||||||
<?php } ?>
|
<?php
|
||||||
|
} ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php }}?>
|
<?php }
|
||||||
|
} ?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -117,7 +127,8 @@
|
|||||||
<div class="modal-dialog modal-full-width">
|
<div class="modal-dialog modal-full-width">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title" id="fullWidthModalLabel">Upload Employee List <span id="title_header_name"></span></h4>
|
<h4 class="modal-title" id="fullWidthModalLabel">Upload Employee List <span
|
||||||
|
id="title_header_name"></span></h4>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body" id="emp_data_success">
|
<div class="modal-body" id="emp_data_success">
|
||||||
@ -140,10 +151,11 @@
|
|||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form class="parsley-examples" id="uploadForm" action="<?php echo base_url().'employee/upload'?>"
|
<form class="parsley-examples" id="uploadForm" action="<?php echo base_url() . 'employee/upload' ?>"
|
||||||
enctype="multipart/form-data">
|
enctype="multipart/form-data">
|
||||||
<input type="hidden" id="file_client_id" name="client_id">
|
<input type="hidden" id="file_client_id" name="client_id">
|
||||||
<input type="hidden" id="file_policy_id" name="policy_id">
|
<input type="hidden" id="file_policy_id" name="policy_id">
|
||||||
|
<input type="hidden" id="file_branch_id" name="branch_id">
|
||||||
<input type="hidden" id="file_upload_actions" name="upload-action-type">
|
<input type="hidden" id="file_upload_actions" name="upload-action-type">
|
||||||
<input type="file" id="fileInput" name="emplist" required
|
<input type="file" id="fileInput" name="emplist" required
|
||||||
accept=" application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel,application/vnd.oasis.opendocument.spreadsheet">
|
accept=" application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel,application/vnd.oasis.opendocument.spreadsheet">
|
||||||
@ -174,7 +186,7 @@ $('body').on('click', '.view_emp_list', function() {
|
|||||||
|
|
||||||
$('.loader').fadeIn();
|
$('.loader').fadeIn();
|
||||||
$('.loader-mask').fadeIn();
|
$('.loader-mask').fadeIn();
|
||||||
var uri = '<?= base_url('util/view-success-emp-list')?>?' + queryString
|
var uri = '<?= base_url('util/view-success-emp-list') ?>?' + queryString
|
||||||
console.log(uri)
|
console.log(uri)
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -234,79 +246,81 @@ $('body').on('click', '.upload_button', function() {
|
|||||||
console.log(fileId); // Use fileId as needed
|
console.log(fileId); // Use fileId as needed
|
||||||
$('#file_client_id').val(fileId.client_id)
|
$('#file_client_id').val(fileId.client_id)
|
||||||
$('#file_policy_id').val(fileId.client_policy_id)
|
$('#file_policy_id').val(fileId.client_policy_id)
|
||||||
|
$('#file_branch_id').val(fileId.client_branch_id)
|
||||||
$('#file_upload_actions').val(fileId.action)
|
$('#file_upload_actions').val(fileId.action)
|
||||||
})
|
})
|
||||||
|
|
||||||
$('body').on('click', '.truncate', function() {
|
$('body').on('click', '.truncate', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
// console.log(event);
|
// console.log(event);
|
||||||
var fileId = JSON.parse(this.getAttribute('data-id'));
|
var fileId = JSON.parse(this.getAttribute('data-id'));
|
||||||
// alert('Hi' + fileId);
|
// alert('Hi' + fileId);
|
||||||
|
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "Do you want to truncate data from uploaded file?",
|
title: "Do you want to truncate data from uploaded file?",
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: "Delete",
|
confirmButtonText: "Delete",
|
||||||
confirmButtonColor: "#ff3333",
|
confirmButtonColor: "#ff3333",
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
|
|
||||||
console.log(result);
|
console.log(result);
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
$('.loader').fadeIn();
|
$('.loader').fadeIn();
|
||||||
$('.loader-mask').fadeIn();
|
$('.loader-mask').fadeIn();
|
||||||
var apiURL = '<?php echo base_url();?>' + 'employee/truncate/' + fileId;
|
var apiURL = '<?php echo base_url(); ?>' + 'employee/truncate/' + fileId;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: apiURL,
|
url: apiURL,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
// "Content-Type": "application/json",
|
// "Content-Type": "application/json",
|
||||||
"X-Requested-With": "XMLHttpRequest"
|
"X-Requested-With": "XMLHttpRequest"
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
// console.log(response.code);
|
// console.log(response.code);
|
||||||
// console.log(response.dataStatus);
|
// console.log(response.dataStatus);
|
||||||
// console.log(response.data);
|
// console.log(response.data);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.loader').fadeOut();
|
$('.loader').fadeOut();
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
|
|
||||||
if (response.code === 200 && response.dataStatus === true && response.data !== "") {
|
if (response.code === 200 && response.dataStatus === true && response
|
||||||
Swal.fire({
|
.data !== "") {
|
||||||
title: "Deleted!",
|
Swal.fire({
|
||||||
// text: "Data from truncated",
|
title: "Deleted!",
|
||||||
icon: "success"
|
// text: "Data from truncated",
|
||||||
});
|
icon: "success"
|
||||||
} else if (response.code === 404 && response.dataStatus === false) {
|
});
|
||||||
console.error('no data found', response);
|
} else if (response.code === 404 && response.dataStatus === false) {
|
||||||
Swal.fire({
|
console.error('no data found', response);
|
||||||
title: "Failed!",
|
Swal.fire({
|
||||||
text: response.message,
|
title: "Failed!",
|
||||||
icon: "error"
|
text: response.message,
|
||||||
});
|
icon: "error"
|
||||||
} else {
|
});
|
||||||
|
} else {
|
||||||
Swal.fire({
|
|
||||||
title: "Failed!",
|
|
||||||
text: 'Something went wrong! Try later',
|
|
||||||
icon: "error"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function(xhr, status, error) {
|
|
||||||
setTimeout(function() {
|
|
||||||
$('.loader').fadeOut();
|
|
||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
|
||||||
}, 1000);
|
|
||||||
|
|
||||||
console.error('Error fetching data from API:', error);
|
Swal.fire({
|
||||||
toastr.error('Something went wrong! Try later', 'Error');
|
title: "Failed!",
|
||||||
}
|
text: 'Something went wrong! Try later',
|
||||||
});
|
icon: "error"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
},
|
||||||
|
error: function(xhr, status, error) {
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.loader').fadeOut();
|
||||||
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
console.error('Error fetching data from API:', error);
|
||||||
|
toastr.error('Something went wrong! Try later', 'Error');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -347,7 +361,7 @@ $('#uploadForm').submit(function() {
|
|||||||
toastr.success(
|
toastr.success(
|
||||||
'File upload successs, Data validation is in-progress',
|
'File upload successs, Data validation is in-progress',
|
||||||
'success');
|
'success');
|
||||||
|
$('.close').click()
|
||||||
window.location.reload(true);
|
window.location.reload(true);
|
||||||
} else if (response.code === 404 && response.dataStatus === false) {
|
} else if (response.code === 404 && response.dataStatus === false) {
|
||||||
console.error('no data found', response);
|
console.error('no data found', response);
|
||||||
@ -383,32 +397,32 @@ $('body').on('click', '.reload', function() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('#tickets-table').DataTable({
|
$('#tickets-table').DataTable({
|
||||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||||
"<'row'<'col-sm-12'tr>>" +
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||||
"buttons": [{
|
"buttons": [{
|
||||||
"extend": 'csv',
|
"extend": 'csv',
|
||||||
"text": 'CSV',
|
"text": 'CSV',
|
||||||
"title": 'Employee-Upload-List',
|
"title": 'Employee-Upload-List',
|
||||||
"className": 'my_class',
|
"className": 'my_class',
|
||||||
"exportOptions": {
|
"exportOptions": {
|
||||||
"columns": ':not(:last-child)'
|
"columns": ':not(:last-child)'
|
||||||
},
|
|
||||||
}],
|
|
||||||
"initComplete": function(settings, json) {
|
|
||||||
$('.my_class').css({
|
|
||||||
"position": "relative",
|
|
||||||
"left": "79px"
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
}],
|
||||||
|
"initComplete": function(settings, json) {
|
||||||
|
$('.my_class').css({
|
||||||
|
"position": "relative",
|
||||||
|
"left": "79px"
|
||||||
|
});
|
||||||
|
},
|
||||||
language: {
|
language: {
|
||||||
search: "_INPUT_",
|
search: "_INPUT_",
|
||||||
searchPlaceholder: "Search..."
|
searchPlaceholder: "Search..."
|
||||||
},
|
},
|
||||||
paging: true ,
|
paging: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,3 +1,65 @@
|
|||||||
|
<style>
|
||||||
|
.switch {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 54px;
|
||||||
|
height: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch input {
|
||||||
|
opacity: 0;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slider {
|
||||||
|
position: absolute;
|
||||||
|
cursor: pointer;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: #ccc;
|
||||||
|
-webkit-transition: .4s;
|
||||||
|
transition: .4s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slider:before {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
height: 19px;
|
||||||
|
width: 19px;
|
||||||
|
left: 4px;
|
||||||
|
bottom: 4px;
|
||||||
|
background-color: white;
|
||||||
|
-webkit-transition: .4s;
|
||||||
|
transition: .4s;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:checked + .slider {
|
||||||
|
background-color: #2196F3;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:focus + .slider {
|
||||||
|
box-shadow: 0 0 1px #2196F3;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:checked + .slider:before {
|
||||||
|
-webkit-transform: translateX(26px);
|
||||||
|
-ms-transform: translateX(26px);
|
||||||
|
transform: translateX(26px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Rounded sliders */
|
||||||
|
.slider.round {
|
||||||
|
border-radius: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slider.round:before {
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<div class="tab-pane fade active show" id="general-q-tab">
|
<div class="tab-pane fade active show" id="general-q-tab">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
@ -16,10 +78,20 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="short_name">Insurer Short Name<span class="text-danger">*</span></label>
|
<label for="short_name">Insurer Short Name<span class="text-danger">*</span></label>
|
||||||
<input type="text" class="form-control" id="short_name" placeholder="Enter Short Name" value="<?= isset($insurer['short_name']) ? $insurer['short_name'] : '' ?>" name="short_name" required minlength="3" maxlength="8">
|
<input type="text" class="form-control" id="short_name" placeholder="Enter Short Name" value="<?= isset($insurer['short_name']) ? $insurer['short_name'] : '' ?>" name="short_name" required minlength="3" maxlength="8">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-2">
|
||||||
|
<label class="switch" style="position: absolute;top: 32px;left: 17px;">
|
||||||
|
<input id="addition_add_day" type="checkbox" name="addition_add_day" <?= (isset($insurer['addition_add_day']) && $insurer['addition_add_day'] == 1) ? 'checked' : '' ?>>
|
||||||
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
|
</label>
|
||||||
|
<label for="is_download_btn" style="position: relative;top: 30px;left: 82px;">Add one day to date of coverage when Addition/Dependent addition</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<div class="col-6" style="align-self: center;">
|
<div class="col-6" style="align-self: center;">
|
||||||
<h4 style="position: relative;">Insurer List</h4>
|
<h4 style="position: relative;">Insurer List</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
<div class="col-6" style="text-align: right; position: relative;top: 56px;">
|
||||||
<a href="<?= base_url("master/insurer/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
|
<a href="<?= base_url("master/insurer/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<div class="col-6" style="align-self: center;">
|
<div class="col-6" style="align-self: center;">
|
||||||
<h4 style="position: relative;">KYC List</h4>
|
<h4 style="position: relative;">KYC List</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
<div class="col-6" style="text-align: right; position: relative;top: 56px;">
|
||||||
<a href="<?= base_url("master/kyc/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
|
<a href="<?= base_url("master/kyc/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -139,7 +139,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
toastr.options = {
|
toastr.options = {
|
||||||
"timeOut": 5000,
|
"timeOut": 2000,
|
||||||
"closeButton": true,
|
"closeButton": true,
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -30,6 +30,18 @@
|
|||||||
a:hover {
|
a:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* .auth-fluid {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: stretch;
|
||||||
|
background: url("<?= base_url()."public"; ?>/assets/images/login_bg.png") center !important;
|
||||||
|
background-size: cover;
|
||||||
|
} */
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@ -309,7 +309,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
|
|
||||||
<div class="form-row col-md-4" style="margin-left: 346px; margin-top: -114px;">
|
<div class="form-row col-md-4" style="margin-left: 346px; margin-top: -114px;">
|
||||||
<label for="mobile">Premium Multiplier<span class="text-danger">*</span></label>
|
<label for="mobile">Premium Multiplier<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.multiplier : '') : ''}" type="text" class="form-control" placeholder="Multiplier" name="gpa_sum_multiplier2" id="gpa_sum_multiplier2" onkeyup="gpaSumInsureMultiplier(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.multiplier : '') : ''}" type="text" class="form-control" placeholder="Multiplier" name="gpa_sum_multiplier2" id="gpa_sum_multiplier2" onchange="gpaSumInsureMultiplier(this)" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row" style="width:101%;padding: 10px;" id="removeChild_${Count}">
|
<div class="form-row" style="width:101%;padding: 10px;" id="removeChild_${Count}">
|
||||||
@ -319,13 +319,13 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4" id="">
|
<div class="form-group col-md-4" id="">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.si : '') : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_sum_si2[]" id="gpa_sum_si2" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.si : '') : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_sum_si2[]" id="gpa_sum_si2" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_sum_si_number_word' class="text-danger-2" ></div>
|
<div id='gpa_sum_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.premium : '') : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_sum_premium2[]" id="gpa_sum_premium2" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.premium : '') : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_sum_premium2[]" id="gpa_sum_premium2" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_sum_premium_number_word' class="text-danger-2" ></div>
|
<div id='gpa_sum_premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -343,17 +343,17 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
|
|
||||||
<div class="form-row col-md-4" style="margin-left: 346px; margin-top: -114px;">
|
<div class="form-row col-md-4" style="margin-left: 346px; margin-top: -114px;">
|
||||||
<label for="mobile">Premium Multiplier<span class="text-danger">*</span></label>
|
<label for="mobile">Premium Multiplier<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '1' ? data.multiplier : '') : ''}" type="text" class="form-control" placeholder="Multiplier" name="gpa_sum_multiplier" id="gpa_sum_multiplier" onkeyup="gpaSumInsureMultiplier(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '1' ? data.multiplier : '') : ''}" type="text" class="form-control" placeholder="Multiplier" name="gpa_sum_multiplier" id="gpa_sum_multiplier" onchange="gpaSumInsureMultiplier(this)" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row" style="width:101%;padding: 10px;" id="removeChild_${Count}">
|
<div class="form-row" style="width:101%;padding: 10px;" id="removeChild_${Count}">
|
||||||
<div class="form-group col-md-4" id="">
|
<div class="form-group col-md-4" id="">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '1' ? data.si : '') : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_sum_si[]" id="gpa_sum_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '1' ? data.si : '') : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_sum_si[]" id="gpa_sum_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_sum_si_number_word' class="text-danger-2" ></div>
|
<div id='gpa_sum_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '1' ? data.premium : '') : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_sum_premium[]" id="gpa_sum_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '1' ? data.premium : '') : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_sum_premium[]" id="gpa_sum_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_sum_premium_number_word' class="text-danger-2" ></div>
|
<div id='gpa_sum_premium_number_word' class="text-danger-2" ></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -371,13 +371,13 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
|
|
||||||
<div class="form-col col-md-6">
|
<div class="form-col col-md-6">
|
||||||
<label for="mobile">Basic Pay<span class="text-danger">*</span></label>
|
<label for="mobile">Basic Pay<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.basic_pay : '') : ''}" type="text" class="form-control" placeholder="Enter Basic Pay" name="basic_pay" id="basic_pay" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.basic_pay : '') : ''}" type="text" class="form-control" placeholder="Enter Basic Pay" name="basic_pay" id="basic_pay" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_basic_pay_number_word' class="text-danger-2" ></div>
|
<div id='gpa_basic_pay_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-col col-md-6">
|
<div class="form-col col-md-6">
|
||||||
<label for="mobile">Basic Multiplier<span class="text-danger">*</span></label>
|
<label for="mobile">Basic Multiplier<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.basic_multiplier : '') : ''}" type="text" class="form-control" placeholder="Basic Multiplier" name="basic_multiplier" id="basic_multiplier" onkeyup='basicPayMultiple(this)' required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.basic_multiplier : '') : ''}" type="text" class="form-control" placeholder="Basic Multiplier" name="basic_multiplier" id="basic_multiplier" onchange='basicPayMultiple(this)' required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -387,18 +387,18 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
|
|
||||||
<div class="form-group col-md-4" id="" style="width:84%">
|
<div class="form-group col-md-4" id="" style="width:84%">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.si : '') : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_basic_si" id="gpa_basic_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.si : '') : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_basic_si" id="gpa_basic_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='basic_gpa_si_number_word' class="text-danger-2" ></div>
|
<div id='basic_gpa_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-col col-md-4">
|
<div class="form-col col-md-4">
|
||||||
<label for="mobile">Premium Multiplier<span class="text-danger">*</span></label>
|
<label for="mobile">Premium Multiplier<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.multiplier : '') : ''}" type="text" class="form-control" placeholder="Premium Multiplier" name="premium_multiplier" id="premium_multiplier" onkeyup='basicPayMultiple(this)'required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.multiplier : '') : ''}" type="text" class="form-control" placeholder="Premium Multiplier" name="premium_multiplier" id="premium_multiplier" onchange='basicPayMultiple(this)'required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.premium : '') : ''}" type="text" class="form-control basic_gpa_premium" placeholder="Enter Premium" name="gpa_basic_premium" id="gpa_basic_premium" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.premium : '') : ''}" type="text" class="form-control basic_gpa_premium" placeholder="Enter Premium" name="gpa_basic_premium" id="gpa_basic_premium" onkeypress="return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='basic_gpa_premium_number_word' class="text-danger-2" ></div>
|
<div id='basic_gpa_premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -417,12 +417,12 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<input value="1" type="hidden" name="policy_type">
|
<input value="1" type="hidden" name="policy_type">
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_si" id="gpa_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_si" id="gpa_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_premium" id="gpa_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_premium" id="gpa_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
@ -438,12 +438,12 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}3" style="width:84%">
|
<div class="form-row" id="${id_var}3" style="width:84%">
|
||||||
<div class="form-group col-md-5">
|
<div class="form-group col-md-5">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="3_si[]" id="3_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="3_si[]" id="3_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-5">
|
<div class="form-group col-md-5">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="3_premium[]" id="3_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="3_premium[]" id="3_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -462,7 +462,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}4" style="width:84%">
|
<div class="form-row" id="${id_var}4" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="4_si" id="4_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="4_si" id="4_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@ -476,7 +476,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="4_premium[]" id="4_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="4_premium[]" id="4_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word' class="text-danger-2" ></div>
|
<div id='premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -497,7 +497,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}5" style="width:84%">
|
<div class="form-row" id="${id_var}5" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="5_si[]" id="5_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="5_si[]" id="5_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
@ -510,7 +510,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="5_premium[]" id="5_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="5_premium[]" id="5_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word' class="text-danger-2" ></div>
|
<div id='premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -530,7 +530,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}6" style="width:84%">
|
<div class="form-row" id="${id_var}6" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="6_si" id="6_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="6_si" id="6_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@ -544,7 +544,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="6_premium[]" id="6_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="6_premium[]" id="6_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word' class="text-danger-2" ></div>
|
<div id='premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -565,7 +565,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}7" style="width:84%">
|
<div class="form-row" id="${id_var}7" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="7_si[]" id="7_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="7_si[]" id="7_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
@ -578,7 +578,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="7_premium[]" id="7_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="7_premium[]" id="7_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word' class="text-danger-2" ></div>
|
<div id='premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -600,7 +600,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}8" style="width:84%">
|
<div class="form-row" id="${id_var}8" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="8_si[]" id="8_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="8_si[]" id="8_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -609,7 +609,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="8_premium[]" id="8_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="8_premium[]" id="8_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word' class="text-danger-2" ></div>
|
<div id='premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -629,12 +629,12 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<input value="1" type="hidden" name="policy_type">
|
<input value="1" type="hidden" name="policy_type">
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_si" id="gpa_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_si" id="gpa_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_premium" id="gpa_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_premium" id="gpa_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
@ -650,7 +650,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}10" style="width:84%">
|
<div class="form-row" id="${id_var}10" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="10_si[]" id="10_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="10_si[]" id="10_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
@ -663,7 +663,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="10_premium[]" id="10_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="10_premium[]" id="10_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word' class="text-danger-2" ></div>
|
<div id='premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -683,7 +683,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}11" style="width:84%">
|
<div class="form-row" id="${id_var}11" style="width:84%">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="11_si[]" id="11_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="11_si[]" id="11_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -692,12 +692,12 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="11_premium[]" id="11_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="11_premium[]" id="11_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word' class="text-danger-2" ></div>
|
<div id='premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="mobile">Max SI<span class="text-danger">*</span></label>
|
<label for="mobile">Max SI<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.max_si : ''}" type="text" class="form-control" placeholder="Enter Max SI" name="11_max_si[]" id="11_max_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.max_si : ''}" type="text" class="form-control" placeholder="Enter Max SI" name="11_max_si[]" id="11_max_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='max_si_number_word' class="text-danger-2" ></div>
|
<div id='max_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -717,7 +717,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}12" style="width:84%">
|
<div class="form-row" id="${id_var}12" style="width:84%">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="12_si[]" id="12_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="12_si[]" id="12_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -735,7 +735,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="12_premium[]" id="12_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="12_premium[]" id="12_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word' class="text-danger-2" ></div>
|
<div id='premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -755,7 +755,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
<div class="form-row" id="${id_var}13" style="width:84%">
|
<div class="form-row" id="${id_var}13" style="width:84%">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="13_si[]" id="13_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="13_si[]" id="13_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
@ -781,7 +781,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="13_premium[]" id="13_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="13_premium[]" id="13_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word' class="text-danger-2" ></div>
|
<div id='premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1065,13 +1065,14 @@ $('body').on('click', '.btnPolicyModel', function() {
|
|||||||
var additional_relationship = null;
|
var additional_relationship = null;
|
||||||
var premium_type_for_sec_rr = []
|
var premium_type_for_sec_rr = []
|
||||||
var premium_type_for_primary_rr = []
|
var premium_type_for_primary_rr = []
|
||||||
|
var first = 0;
|
||||||
|
|
||||||
if (res.premiumData && res.premiumData.length > 0) {
|
if (res.premiumData && res.premiumData.length > 0) {
|
||||||
$.each(res.premiumData, function(index, item) {
|
$.each(res.premiumData, function(index, item) {
|
||||||
|
|
||||||
if (item.rack_rate_type == 0 || policy_type_string == 'GPA') {
|
if (item.rack_rate_type == 0 || policy_type_string == 'GPA') {
|
||||||
policy_grid_id_value = item.policy_grid_id;
|
policy_grid_id_value = item.policy_grid_id;
|
||||||
secondary = item.policy_grid_id;
|
first = item.policy_grid_id;
|
||||||
premium_type_for_primary_rr.push(item.premium_type);
|
premium_type_for_primary_rr.push(item.premium_type);
|
||||||
|
|
||||||
} else if (item.rack_rate_type == 1) {
|
} else if (item.rack_rate_type == 1) {
|
||||||
@ -1223,16 +1224,32 @@ $('body').on('click', '.btnPolicyModel', function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$(`input[name="${id_for_trigger}_si[]"]`).each(function() {
|
console.log('id_for_trigger', id_for_trigger)
|
||||||
|
console.log('temp_for_premiumData', temp_for_premiumData)
|
||||||
|
console.log('temp_for_premiumData', temp_for_premiumData[0])
|
||||||
|
|
||||||
|
|
||||||
|
$(`input[name="${first}_si[]"]`).each(function() {
|
||||||
// console.log($(this));
|
// console.log($(this));
|
||||||
$(this).trigger('keyup');
|
$(this).trigger('keyup');
|
||||||
});
|
});
|
||||||
|
|
||||||
$(`input[name="${id_for_trigger}_premium[]"]`).each(function() {
|
$(`input[name="${first}_premium[]"]`).each(function() {
|
||||||
// console.log($(this));
|
// console.log($(this));
|
||||||
$(this).trigger('keyup');
|
$(this).trigger('keyup');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(`input[name="${secondary}_si[]"]`).each(function() {
|
||||||
|
// console.log($(this));
|
||||||
|
$(this).trigger('keyup');
|
||||||
|
});
|
||||||
|
|
||||||
|
$(`input[name="${secondary}_premium[]"]`).each(function() {
|
||||||
|
// console.log($(this));
|
||||||
|
$(this).trigger('keyup');
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
error: function(xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
console.error(xhr.responseText);
|
console.error(xhr.responseText);
|
||||||
@ -1514,12 +1531,12 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
html = `<div class="form-row gpa_sum_insure_remove" style="width:101%" id="removeChild_${Count}">
|
html = `<div class="form-row gpa_sum_insure_remove" style="width:101%" id="removeChild_${Count}">
|
||||||
<div class="form-group col-md-4" id="">
|
<div class="form-group col-md-4" id="">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_sum_si[]" id="gpa_sum_si" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_sum_si[]" id="gpa_sum_si" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_sum_premium[]" id="gpa_sum_premium" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_sum_premium[]" id="gpa_sum_premium" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -1542,13 +1559,13 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
|
|
||||||
<div class="form-group col-md-4" id="">
|
<div class="form-group col-md-4" id="">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.si : '') : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_sum_si2[]" id="gpa_sum_si2" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.si : '') : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="gpa_sum_si2[]" id="gpa_sum_si2" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
<div id='gpa_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.premium : '') : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_sum_premium2[]" id="gpa_sum_premium2" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.premium : '') : ''}" type="text" class="form-control" placeholder="Enter Premium" name="gpa_sum_premium2[]" id="gpa_sum_premium2" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
<div id='gpa_premium_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1568,12 +1585,12 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
<div class="form-group col-md-5">
|
<div class="form-group col-md-5">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="3_si[]" id="3_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="3_si[]" id="3_si_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_si_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='gpa_si_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-5">
|
<div class="form-group col-md-5">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="3_premium[]" id="3_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="3_premium[]" id="3_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='gpa_premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='gpa_premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1598,7 +1615,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="4_premium[]" id="4_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="4_premium[]" id="4_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1614,7 +1631,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="5_si[]" id="5_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="5_si[]" id="5_si_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
@ -1627,7 +1644,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="5_premium[]" id="5_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="5_premium[]" id="5_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1650,7 +1667,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="6_premium[]" id="6_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="6_premium[]" id="6_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1665,7 +1682,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="7_si[]" id="7_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="7_si[]" id="7_si_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
@ -1678,7 +1695,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="7_premium[]" id="7_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="7_premium[]" id="7_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1693,7 +1710,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="8_si[]" id="8_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="8_si[]" id="8_si_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -1702,7 +1719,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="8_premium[]" id="8_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="8_premium[]" id="8_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1717,7 +1734,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="9_si[]" id="9_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="9_si[]" id="9_si_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -1726,7 +1743,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="9_premium[]" id="9_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="9_premium[]" id="9_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1741,7 +1758,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="10_si[]" id="10_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="10_si[]" id="10_si_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
@ -1754,7 +1771,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="10_premium[]" id="10_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="10_premium[]" id="10_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1769,7 +1786,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="11_si[]" id="11_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="11_si[]" id="11_si_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -1778,12 +1795,12 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="11_premium[]" id="11_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="11_premium[]" id="11_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="mobile">Max SI<span class="text-danger">*</span></label>
|
<label for="mobile">Max SI<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.max_si : ''}" type="text" class="form-control" placeholder="Enter Max SI" name="11_max_si[]" id="11_max_si[]" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.max_si : ''}" type="text" class="form-control" placeholder="Enter Max SI" name="11_max_si[]" id="11_max_si[]" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='max_si_number_word' class="text-danger-2" ></div>
|
<div id='max_si_number_word' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1797,7 +1814,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="12_si[]" id="12_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="12_si[]" id="12_si_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -1815,7 +1832,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="12_premium[]" id="12_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="12_premium[]" id="12_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -1829,7 +1846,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
<div class="form-row" id="removeChild_${Count}" style="width:84%">
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
<label for="mobile">Sum Insured<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="13_si[]" id="13_si_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.si : ''}" type="text" class="form-control" placeholder="Enter Sum Insured" name="13_si[]" id="13_si_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='sum_insured_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2">
|
<div class="form-group col-md-2">
|
||||||
@ -1855,7 +1872,7 @@ function appendGridtHtml(ui_type = false, secondary = 0, data = false) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
<label for="mobile">Premium<span class="text-danger">*</span></label>
|
||||||
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="13_premium[]" id="13_premium_${Count}" onkeypress = "return onlyNumbers(event)" onkeyup="formatNumber(this)" required>
|
<input value="${data !== false && data !== undefined && data !== '' ? data.premium : ''}" type="text" class="form-control" placeholder="Enter Premium" name="13_premium[]" id="13_premium_${Count}" onkeypress = "return onlyNumbers(event)" onchange="formatNumber(this)" required>
|
||||||
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
<div id='premium_number_word_${Count}' class="text-danger-2" ></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<div class="col-6" style="align-self: center;">
|
<div class="col-6" style="align-self: center;">
|
||||||
<h4 style="position: relative;">Policy Type List</h4>
|
<h4 style="position: relative;">Policy Type List</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
<div class="col-6" style="text-align: right; position: relative;top: 56px;">
|
||||||
<a href="<?= base_url("master/policy/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
|
<a href="<?= base_url("master/policy/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-10">
|
<div class="form-group col-md-10">
|
||||||
<label for="tpa_ecard_template">E-Card Template<span class="text-danger"></span></label>
|
<label for="tpa_ecard_template">E-Card Template<span class="text-danger"></span></label>
|
||||||
<textarea style="height: 100px;" class="form-control" id="ecard_content" placeholder="Enter E-card Content" name="ecard_content"><?= isset($template_data) ? $template_data : '' ?></textarea>
|
<textarea style="height: 380px;" class="form-control" id="ecard_content" placeholder="Enter E-card Content" name="ecard_content"><?= isset($template_data) ? $template_data : '' ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-2 float-right" style="position: relative;top: 0px;left: 40px;">
|
<div class="form-group col-md-2 float-right" style="position: relative;top: 0px;left: 40px;">
|
||||||
<label for="tpa_logo_preview">Logo Preview<span class="text-danger"></span></label>
|
<label for="tpa_logo_preview">Logo Preview<span class="text-danger"></span></label>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<div class="col-6" style="align-self: center;">
|
<div class="col-6" style="align-self: center;">
|
||||||
<h4 style="position: relative;">TPA List</h4>
|
<h4 style="position: relative;">TPA List</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
<div class="col-6" style="text-align: right; position: relative;top: 56px;">
|
||||||
<a href="<?= base_url("master/tpa/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
|
<a href="<?= base_url("master/tpa/create"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -87,13 +87,13 @@
|
|||||||
<h4 style="position: relative;">Transaction Details</h4>
|
<h4 style="position: relative;">Transaction Details</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
<div class="col-6" style="text-align: right; position: relative;top: 56px;">
|
||||||
<button type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light"
|
<button type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light"
|
||||||
data-toggle="modal" data-target="#addTransactionModal">New</button>
|
data-toggle="modal" data-target="#addTransactionModal">New</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table table-sm table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
|
<table class="table table-sm table-hover m-0 table-centered dt-responsive w-100" cellspacing="0"
|
||||||
id="tickets-table">
|
id="tickets-table">
|
||||||
<thead class="bg-light">
|
<thead class="bg-light">
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
BIN
public/e_card_imgs/Magma.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
public/e_card_imgs/android.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/e_card_imgs/appstore.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/e_card_imgs/barcode.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
public/e_card_imgs/borcode.jpeg
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
public/e_card_imgs/ios.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
public/e_card_imgs/medi_uesr.jpg
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
public/e_card_imgs/niva_babu.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
public/e_card_imgs/play_store.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
@ -59,9 +59,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-left: 20%;margin-top: 50px;">
|
<div style="margin-top: 50px;">
|
||||||
<h4 style="font-family: sans-serif;margin: 0px;margin-left: 30px;">TERMS AND CONDITIONS:</h4>
|
<h4 style="font-family: sans-serif;margin: 0px;margin-left: 30px;">TERMS AND CONDITIONS:</h4>
|
||||||
<div style="width: 70%;line-height: 30px;">
|
<div style="width: 100%;line-height: 30px;">
|
||||||
<ol type="number" style="font-family: sans-serif;">
|
<ol type="number" style="font-family: sans-serif;">
|
||||||
<li>This card is generated as per the details given by your employer/HR. Incase of any errors in the
|
<li>This card is generated as per the details given by your employer/HR. Incase of any errors in the
|
||||||
details you may confirm the same through your employer for making required corrections.</li>
|
details you may confirm the same through your employer for making required corrections.</li>
|
||||||
|
|||||||
@ -1,68 +0,0 @@
|
|||||||
<body>
|
|
||||||
|
|
||||||
<div style="display: flex;gap: 5px;width: 840px;justify-content: center;margin: 0 auto;">
|
|
||||||
<div class="card" style="border: 1px solid #50505059;width: 420px;min-height: 280px; padding:10px 10px 0px 10px;background-image: url(../image/vidal\ background\ image.jpg);background-position: center;background-size: cover;">
|
|
||||||
|
|
||||||
<div style="position: absolute;left: 590px;" ><img src="{INSURER_LOGO}" alt="" width="70px" height="70px"></div>
|
|
||||||
<h6 style="margin-top: 20px;margin-bottom: 26px;font-weight: 700;font-size: 14px;">{INSURER_NAME}</h6>
|
|
||||||
|
|
||||||
<table style="font-size: 14px;margin-top:9px ;margin-left: 20px;">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>POLICY NO</td>
|
|
||||||
<td>:</td>
|
|
||||||
<td>{TPA_ID}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Name</td>
|
|
||||||
<td>:</td>
|
|
||||||
<td>{NAME}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Gender</td>
|
|
||||||
<td>:</td>
|
|
||||||
<td>{NAME}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>age</td>
|
|
||||||
<td>:</td>
|
|
||||||
<td>{AGE}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Employee code</td>
|
|
||||||
<td>:</td>
|
|
||||||
<td>{EMP_ID}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Corporate name</td>
|
|
||||||
<td>:</td>
|
|
||||||
<td>{CORPORATE_NAME}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Valid form</td>
|
|
||||||
<td>:</td>
|
|
||||||
<td>{POLICY_DATE}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div style="position: relative;left: 225px;top: 30px;"><img src="{TPA_LOGO}" alt="" width="170px" height="30px" style="object-fit: fill;"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card" style="border: 1px solid #50505059;width:420px;min-height: 280px; padding: 0px 20px 5px 0px;">
|
|
||||||
<h6 style="text-align: center;font-weight: 700;margin: 0px;font-size: 14px;"><u>Terms&conditions</u></h6>
|
|
||||||
<ul style="font-size: 11px;text-align: justify;font-weight: bolder;font-weight: 600;line-height: 13px;margin-bottom: 5px;">
|
|
||||||
<li>Submit this card & photo ID for availing cashless insurrer empanelled hospitals</li>
|
|
||||||
<li>Cashless facility is subject to approved by TPA as per policy terms and conditions</li>
|
|
||||||
<li>Validdity of this card is subject to valid policy renewal of policy</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
@ -3,25 +3,25 @@
|
|||||||
<div style="display: flex;justify-content:center;gap: 10px;">
|
<div style="display: flex;justify-content:center;gap: 10px;">
|
||||||
<div style="border: 1px solid black;max-height: 250px;width: 400px;background-image: url({FRONT_CARD});background-size: 100% 100%;position: relative;">
|
<div style="border: 1px solid black;max-height: 250px;width: 400px;background-image: url({FRONT_CARD});background-size: 100% 100%;position: relative;">
|
||||||
<div style="height: 50px;width: 100px;position: absolute;top: 20px;right: 40px;">
|
<div style="height: 50px;width: 100px;position: absolute;top: 20px;right: 40px;">
|
||||||
<img src="../image/niva.png" alt="" width="100px" height="50px" style="object-fit: fill;">
|
<img src="{INSURER_LOGO}" alt="" width="100px" height="50px" style="object-fit: fill;">
|
||||||
</div>
|
</div>
|
||||||
<table style="width: 100%;font-family: sans-serif;font-size: 14px;margin-left: 20px;margin-top: 55px;line-height: 19px;">
|
<table style="width: 100%;font-family: sans-serif;font-size: 14px;margin-left: 20px;margin-top: 55px;line-height: 19px;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Haamira Banu</td>
|
<td>{NAME}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: auto;"><b>Xoriant Solutions Pvt Ltd</b></td>
|
<td style="width: auto;"><b>{CORPORATE_NAME}</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>Dob : 02/05/2000</span><span style="padding-left: 40px;">EMP ID : 73496</span></td>
|
<td><span>Dob : {DOB}</span><span style="padding-left: 40px;">EMP ID : {EMP_ID}</span></td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>PHS ID : MBHI CHE 38728183 XSP E</td>
|
<td>PHS ID : {TPA_ID}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Valid upto : 31/01/2024</td>
|
<td>Valid upto : {POLICY_DATE}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -47,9 +47,9 @@
|
|||||||
<div style="display: flex;justify-content: center;">
|
<div style="display: flex;justify-content: center;">
|
||||||
<table style="border-spacing:50px 10px;">
|
<table style="border-spacing:50px 10px;">
|
||||||
<tr>
|
<tr>
|
||||||
<td><img src="../image/1 android.png" alt="" width="170px" height="135px"></td>
|
<td><img src="{QR_ANDROID}" alt="" width="170px" height="135px"></td>
|
||||||
<td style="font-family: sans-serif;display: flex;align-items: start;font-size: 22px;"><b>Mobile App</b></td>
|
<td style="font-family: sans-serif;display: flex;align-items: start;font-size: 22px;"><b>Mobile App</b></td>
|
||||||
<td><img src="../image/1-ios.png" alt="" width="150px" height="140px"></td>
|
<td><img src="{QR_IOS}" alt="" width="150px" height="140px"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<div style="display: flex;gap: 5px;width: 810px;justify-content: center;margin: 0 auto;">
|
<div style="display: flex;gap: 5px;width: 810px;justify-content: center;margin: 0 auto;">
|
||||||
<div class="card" style="border: 1px solid #50505059;width: 420px;min-height: 280px; padding:10px 10px 0px 10px;background-image: url('{FRONT_CARD}');background-position: center;background-size: cover;">
|
<div class="card" style="border: 1px solid #50505059;width: 420px;min-height: 280px; padding:10px 10px 0px 10px;background-image: url('{FRONT_CARD}');background-position: center;background-size: cover;">
|
||||||
|
|
||||||
<div style="position: absolute;left: 590px;" ><img src="{INSURER_LOGO}" alt="" width="70px" height="70px"></div>
|
<div style="position: absolute;left: 317px;"><img src="{INSURER_LOGO}" alt="" width="70px" height="70px" ></div>
|
||||||
<h6 style="margin-top: 20px;margin-bottom: 26px;font-weight: 700;font-size: 14px;">{INSURER_NAME}</h6>
|
<h6 style="margin-top: 20px;margin-bottom: 26px;font-weight: 700;font-size: 14px;">{INSURER_NAME}</h6>
|
||||||
|
|
||||||
<table style="font-size: 14px;margin-top:9px ;margin-left: 20px;">
|
<table style="font-size: 14px;margin-top:9px ;margin-left: 20px;">
|
||||||
@ -60,9 +60,6 @@
|
|||||||
<li>imidiate intimation to vidal health is must incase of any hospitalisation</li>
|
<li>imidiate intimation to vidal health is must incase of any hospitalisation</li>
|
||||||
<li>Download the vidal health mobile app from android iOS to get an E-Card check your policy claim status, Hospital list and more, Give a missed call to 022-4892-6099 from your registered mobile number, or visit www.vidalhealthpa.com,or scan << Qr code on corner >></li>
|
<li>Download the vidal health mobile app from android iOS to get an E-Card check your policy claim status, Hospital list and more, Give a missed call to 022-4892-6099 from your registered mobile number, or visit www.vidalhealthpa.com,or scan << Qr code on corner >></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div >
|
|
||||||
<img src="../image/logo.png" alt="" width="100px" height="25px" style="object-fit: fill; rotate: -90deg; position: absolute;left: -34px;bottom: 77px;">
|
|
||||||
</div>
|
|
||||||
<div style="font-size: 10px;font-weight: bold; line-height: 10px;margin-left: 40px;width: 70%;">
|
<div style="font-size: 10px;font-weight: bold; line-height: 10px;margin-left: 40px;width: 70%;">
|
||||||
<div><u>24x7 help line no</u> </div>
|
<div><u>24x7 help line no</u> </div>
|
||||||
<div>
|
<div>
|
||||||
@ -96,8 +93,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div><img src="../image/2-play store.png" alt="" width="80px" height="80px" style="position: absolute;top: 158px; right: 90px;"></div>
|
<div><img src="{QR_ANDROID_2}" alt="" width="60px" height="60px" style="position: absolute;top: 210px; right: 70px;"></div>
|
||||||
<div><img src="../image/2-appstore.png" alt="" width="76px" height="80px" style="position: absolute;right: 10px;top:158px;"></div>
|
<div><img src="{QR_IOS_2}" alt="" width="56px" height="60px" style="position: absolute;right: 10px;top:210px;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||