FIX_CLAIMS_API : RV
This commit is contained in:
parent
13c5279fe1
commit
42fbc1ec43
@ -2216,6 +2216,7 @@ class ClientController extends AdminController
|
||||
public function policyGMCTerms()
|
||||
{
|
||||
try {
|
||||
|
||||
// echo "<pre>";
|
||||
// print_r($this->request->getPost());die;
|
||||
$this->myLogger->logme('error', 'Terms CREATE function called');
|
||||
@ -2225,7 +2226,6 @@ class ClientController extends AdminController
|
||||
|
||||
$data['sum_insured'] = str_replace(',', '', $this->request->getPost("sum_insured"));
|
||||
$data['family_floater'] = $this->request->getPost("family_floater") ? $this->request->getPost("family_floater") : 0;
|
||||
// $data['corporatebuffer'] = $this->request->getPost("corporatebuffer") ? $this->request->getPost("corporatebuffer") : 0;
|
||||
$data['family_floaters'] = $this->request->getPost("family_floaters") ?? [];
|
||||
|
||||
$data['age_ratio']['self']['min'] = $this->request->getPost("self_min_age") ? $this->request->getPost("self_min_age") : 0;
|
||||
@ -2243,12 +2243,9 @@ class ClientController extends AdminController
|
||||
$data['is_payable_employee']['elders'] = $this->request->getPost("is_payable_employee_for_elders") ? 1 : 0;
|
||||
|
||||
|
||||
|
||||
// if (!in_array("self", $data['family_floaters'])) {
|
||||
// array_unshift($data['family_floaters'], "self");
|
||||
// }
|
||||
$temp_family_floaters = $data['family_floaters'];
|
||||
$data['family_floaters'] = [];
|
||||
|
||||
if (in_array("self", $temp_family_floaters) == 1) {
|
||||
$data['family_floaters']['self'] = 1;
|
||||
} else {
|
||||
@ -2261,8 +2258,6 @@ class ClientController extends AdminController
|
||||
$data['family_floaters']['spouse'] = 0;
|
||||
}
|
||||
|
||||
// $data['family_floaters']['either-parents-pil'] =0;
|
||||
|
||||
if (count($temp_family_floaters)) {
|
||||
$children_value = 0;
|
||||
$value = 0;
|
||||
@ -2321,79 +2316,55 @@ class ClientController extends AdminController
|
||||
// print_r($data);die;
|
||||
|
||||
$data['waiverofpreexistingdiseases'] = $this->request->getPost("waiverofpreexistingdiseases");
|
||||
if ($data['waiverofpreexistingdiseases'] == 1) {
|
||||
$data['maternitycoverage'] = str_replace(',', '', $this->request->getPost("maternitycoverage"));
|
||||
$data['twindelivery'] = str_replace(',', '', $this->request->getPost("twindelivery"));
|
||||
$data['preandpostnatal'] = str_replace(',', '', $this->request->getPost("preandpostnatal"));
|
||||
$data['babyday1cover'] = str_replace(',', '', $this->request->getPost("babyday1cover"));
|
||||
} else {
|
||||
$data['maternitycoverage'] = "";
|
||||
$data['twindelivery'] = "";
|
||||
$data['preandpostnatal'] = "";
|
||||
$data['babyday1cover'] = "";
|
||||
}
|
||||
|
||||
$data['9monthwaitingperiodwaived'] = str_replace(',', '', $this->request->getPost("9monthwaitingperiodwaived"));
|
||||
$data['coverfromthedateofjoining'] = str_replace(',', '', $this->request->getPost("coverfromthedateofjoining"));
|
||||
$data['waiverof1,2,3&4thyearexclusions'] = $this->request->getPost("waiverof1,2,3&4thyearexclusions");
|
||||
$data['waiverof30dayswaitingperiod'] = $this->request->getPost("waiverof30dayswaitingperiod");
|
||||
$data['waiver_of_90_days_waiting_period'] = $this->request->getPost("waiver_of_90_days_waiting_period");
|
||||
$data['waiver_of_other_waiting_periods'] = $this->request->getPost("waiver_of_other_waiting_periods");
|
||||
$data['maternity_benefit'] = $this->request->getPost("maternity_benefit");
|
||||
$data['9monthwaitingperiodwaived'] = str_replace(',', '', $this->request->getPost("9monthwaitingperiodwaived"));
|
||||
$data['maternitycoverage'] = str_replace(',', '', $this->request->getPost("maternitycoverage"));
|
||||
$data['twindelivery'] = str_replace(',', '', $this->request->getPost("twindelivery"));
|
||||
$data['well_baby_well_mother_expenses'] = str_replace(',', '', $this->request->getPost("well_baby_well_mother_expenses"));
|
||||
$data['preandpostnatal'] = str_replace(',', '', $this->request->getPost("preandpostnatal"));
|
||||
$data['infertility_treatment_coverage'] = str_replace(',', '', $this->request->getPost("infertility_treatment_coverage"));
|
||||
$data['babyday1cover'] = str_replace(',', '', $this->request->getPost("babyday1cover"));
|
||||
$data['coverfromthedateofjoining'] = str_replace(',', '', $this->request->getPost("coverfromthedateofjoining"));
|
||||
$data['mid_term_addition_of_new_born_newly_wedded_spouse'] = str_replace(',', '', $this->request->getPost("mid_term_addition_of_new_born_newly_wedded_spouse"));
|
||||
$data['prehospitalizationcover'] = str_replace(',', '', $this->request->getPost("prehospitalizationcover"));
|
||||
// $data['posthospitalizationcover'] =$this->request->getPost("posthospitalizationcover");
|
||||
$data['posthospitalizationcover'] =$this->request->getPost("posthospitalizationcover");
|
||||
$data['congenitaldiseasesinternal'] = str_replace(',', '', $this->request->getPost("congenitaldiseasesinternal"));
|
||||
// $data['congenitaldiseasesexternal'] =$this->request->getPost("congenitaldiseasesexternal");
|
||||
$data['congenitaldiseasesexternal'] = str_replace(',', '', $this->request->getPost("congenitaldiseasesexternal"));
|
||||
$data['copayzonewisecopay'] = $this->request->getPost("copayzonewisecopay");
|
||||
$data['co_pay_details'] = str_replace(',', '', $this->request->getPost("co_pay_details"));
|
||||
|
||||
$data['bioabsorbablestenttoriclensmultifocallens'] = $this->request->getPost("bioabsorbablestenttoriclensmultifocallens");
|
||||
$data['roomrentlimit'] = str_replace(',', '', $this->request->getPost("roomrentlimit"));
|
||||
$data['icu_limit'] = str_replace(',', '', $this->request->getPost("icu_limit"));
|
||||
$data['proportionatedeductionclause'] = str_replace(',', '', $this->request->getPost("proportionatedeductionclause"));
|
||||
// $data['nursingallowance'] =str_replace(',', '',$this->request->getPost("nursingallowance"));
|
||||
$data['ailmentcapping'] = $this->request->getPost("ailmentcapping");
|
||||
$data['ailment_capping_details'] = str_replace(',', '', $this->request->getPost("ailment_capping_details"));
|
||||
|
||||
$data['corporatebuffer'] = str_replace(',', '', $this->request->getPost("corporatebuffer"));
|
||||
$data['non_admissible_contingency_corporate_buffer'] = str_replace(',', '', $this->request->getPost("non_admissible_contingency_corporate_buffer"));
|
||||
$data['ambulancecharges'] = str_replace(',', '', $this->request->getPost("ambulancecharges"));
|
||||
$data['airambulance'] = str_replace(',', '', $this->request->getPost("airambulance"));
|
||||
$data['familytransportationbenefit'] = str_replace(',', '', $this->request->getPost("familytransportationbenefit"));
|
||||
$data['reasonableandcustomarycharges'] = str_replace(',', '', $this->request->getPost("reasonableandcustomarycharges"));
|
||||
$data['daycaretreatment'] = str_replace(',', '', $this->request->getPost("daycaretreatment"));
|
||||
$data['ayudhtreatmentcover'] = str_replace(',', '', $this->request->getPost("ayudhtreatmentcover"));
|
||||
|
||||
$data['congenitaldiseasesexternal'] = str_replace(',', '', $this->request->getPost("congenitaldiseasesexternal"));
|
||||
// $data['optionalparentalcopay'] = str_replace(',', '', $this->request->getPost("optionalparentalcopay"));
|
||||
$data['posthospitalizationcover'] = str_replace(',', '', $this->request->getPost("posthospitalizationcover"));
|
||||
$data['corporatebuffer'] = str_replace(',', '', $this->request->getPost("corporatebuffer"));
|
||||
$data['sublimitofcorporatebuffer'] = str_replace(',', '', $this->request->getPost("sublimitofcorporatebuffer"));
|
||||
|
||||
if ($data['ayudhtreatmentcover'] == 1) {
|
||||
$data['ayushTreatmentCoverData'] = str_replace(',', '', $this->request->getPost("ayushTreatmentCoverData"));
|
||||
} else {
|
||||
$data['ayushTreatmentCoverData'] = "";
|
||||
}
|
||||
|
||||
$data['armdcovered'] = str_replace(',', '', $this->request->getPost("armdcovered"));
|
||||
$data['suminsuredenhancement'] = str_replace(',', '', $this->request->getPost("suminsuredenhancement"));
|
||||
$data['automaticsuminsuredreinstatement'] = str_replace(',', '', $this->request->getPost("automaticsuminsuredreinstatement"));
|
||||
$data['additionalsicknessbenefit'] = str_replace(',', '', $this->request->getPost("additionalsicknessbenefit"));
|
||||
$data['lasiksurgery'] = str_replace(',', '', $this->request->getPost("lasiksurgery"));
|
||||
$data['midterminclusion'] = str_replace(',', '', $this->request->getPost("midterminclusion"));
|
||||
$data['capd'] = str_replace(',', '', $this->request->getPost("capd"));
|
||||
$data['organdonorexpenses'] = str_replace(',', '', $this->request->getPost("organdonorexpenses"));
|
||||
$data['ayudhtreatmentcover'] = str_replace(',', '', $this->request->getPost("ayudhtreatmentcover"));
|
||||
$data['moderntreatmentsasperirdai'] = str_replace(',', '', $this->request->getPost("moderntreatmentsasperirdai"));
|
||||
$data['Wellness'] = str_replace(',', '', $this->request->getPost("Wellness"));
|
||||
$data['opd_treatment'] = str_replace(',', '', $this->request->getPost("opd_treatment"));
|
||||
$data['days_of_discharge'] = str_replace(',', '', $this->request->getPost("days_of_discharge"));
|
||||
$data['days_from_dod'] = str_replace(',', '', $this->request->getPost("days_from_dod"));
|
||||
$data['terrorism'] = str_replace(',', '', $this->request->getPost("terrorism"));
|
||||
$data['widower_cover'] = str_replace(',', '', $this->request->getPost("widower_cover"));
|
||||
$data['breavement_cover'] = str_replace(',', '', $this->request->getPost("breavement_cover"));
|
||||
|
||||
$data['suminsuredenhancement'] = str_replace(',', '', $this->request->getPost("suminsuredenhancement"));
|
||||
|
||||
$data['special_condition_label'] = str_replace(',', '', $this->request->getPost("special_condition_label")) ?? [];
|
||||
$data['special_condition_input'] = str_replace(',', '', $this->request->getPost("special_condition_input")) ?? [];
|
||||
$data['multiple_sum_insured'] = str_replace(',', '', $this->request->getPost("multiple_sum_insured")) ?? [];
|
||||
|
||||
$data['cataract'] = str_replace(',', '', $this->request->getPost("cataract"));
|
||||
|
||||
if ($data['cataract'] == 1) {
|
||||
$data['cataractData'] = str_replace(',', '', $this->request->getPost("cataractData"));
|
||||
} else {
|
||||
$data['cataractData'] = "";
|
||||
}
|
||||
$data['enrollment_display_key'] = $this->enrollmentGMCDisplayValueTransform();
|
||||
|
||||
// print_r($data);die;
|
||||
|
||||
$jsonData = json_encode($data);
|
||||
$dataa = array(
|
||||
@ -2402,7 +2373,6 @@ class ClientController extends AdminController
|
||||
|
||||
$record = $this->clientPolicyModel->where('id', $client_policy_id)->first();
|
||||
|
||||
|
||||
// print_r($data);die;
|
||||
if ($record) {
|
||||
$update = $this->clientPolicyModel->update($client_policy_id, $dataa);
|
||||
@ -2427,6 +2397,178 @@ class ClientController extends AdminController
|
||||
}
|
||||
}
|
||||
|
||||
public function enrollmentGMCDisplayValueTransform()
|
||||
{
|
||||
|
||||
if ($this->request->getPost("waiverofpreexistingdiseases_display")) {
|
||||
$data['Waiver of Pre-existing Diseases'] = $this->request->getPost("waiverofpreexistingdiseases");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("waiverof1234thyearexclusions_display")) {
|
||||
$data['Waiver of 1, 2, 3 & 4th year Exclusions'] = $this->request->getPost("waiverof1,2,3&4thyearexclusions");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("waiverof30dayswaitingperiod_display")) {
|
||||
$data['Waiver of 30 days waiting period'] = $this->request->getPost("waiverof30dayswaitingperiod");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("waiver_of_90_days_waiting_period_display")) {
|
||||
$data['Waiver of 90 Days Waiting Period'] = $this->request->getPost("waiver_of_90_days_waiting_period");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("waiver_of_other_waiting_periods_display")) {
|
||||
$data['Waiver of Other Waiting Periods'] = $this->request->getPost("waiver_of_other_waiting_periods");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("maternity_benefit_display")) {
|
||||
$data['Maternity Benefit'] = $this->request->getPost("maternity_benefit");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("9monthwaitingperiodwaived_display")) {
|
||||
$data['9-month waiting Period - waived'] = $this->request->getPost("9monthwaitingperiodwaived");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("maternitycoverage_display")) {
|
||||
$data['Maternity Coverage'] = $this->request->getPost("maternitycoverage");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("twindelivery_display")) {
|
||||
$data['Twin Delivery'] = $this->request->getPost("twindelivery");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("well_baby_well_mother_expenses_display")) {
|
||||
$data['Well baby / Well Mother Expenses'] = $this->request->getPost("well_baby_well_mother_expenses");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("preandpostnatal_display")) {
|
||||
$data['Pre and Post natal'] = $this->request->getPost("preandpostnatal");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("infertility_treatment_coverage_display")) {
|
||||
$data['Infertility Treatment Coverage'] = $this->request->getPost("infertility_treatment_coverage");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("babyday1cover_display")) {
|
||||
$data['Baby Day 1 Cover'] = $this->request->getPost("babyday1cover");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("coverfromthedateofjoining_display")) {
|
||||
$data['Cover from the date of Joining'] = $this->request->getPost("coverfromthedateofjoining");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("mid_term_addition_of_new_born_newly_wedded_spouse_display")) {
|
||||
$data['Mid Term Addition of New Born / Newly Wedded Spouse'] = $this->request->getPost("mid_term_addition_of_new_born_newly_wedded_spouse");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("prehospitalizationcover_display")) {
|
||||
$data['Pre Hospitalization Cover'] = $this->request->getPost("prehospitalizationcover");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("posthospitalizationcover_display")) {
|
||||
$data['Post Hospitalization Cover'] = $this->request->getPost("posthospitalizationcover");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("congenitaldiseasesinternal_display")) {
|
||||
$data['Congenital Diseases - Internal'] = $this->request->getPost("congenitaldiseasesinternal");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("congenitaldiseasesexternal_display")) {
|
||||
$data['Congenital Diseases - External'] = $this->request->getPost("congenitaldiseasesexternal");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("copayzonewisecopay_display")) {
|
||||
$data['Co-Pay/Zone wise Co Pay'] = $this->request->getPost("copayzonewisecopay");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("roomrentlimit_display")) {
|
||||
$data['Room Rent Limit'] = $this->request->getPost("roomrentlimit");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("icu_limit_display")) {
|
||||
$data['ICU Limit'] = $this->request->getPost("icu_limit");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("proportionatedeductionclause_display")) {
|
||||
$data['Proportionate Deduction Clause'] = $this->request->getPost("proportionatedeductionclause");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("ailmentcapping_display")) {
|
||||
$data['Ailment capping'] = $this->request->getPost("ailmentcapping");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("ailment_capping_details_display")) {
|
||||
$data['Ailment capping Details'] = $this->request->getPost("ailment_capping_details");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("corporatebuffer_display")) {
|
||||
$data['Corporate Buffer'] = $this->request->getPost("corporatebuffer");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("non_admissible_contingency_corporate_buffer_display")) {
|
||||
$data['Non-Admissible / Contingency Corporate Buffer'] = $this->request->getPost("non_admissible_contingency_corporate_buffer");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("ambulancecharges_display")) {
|
||||
$data['Ambulance Charges'] = $this->request->getPost("ambulancecharges");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("airambulance_display")) {
|
||||
$data['Air Ambulance'] = $this->request->getPost("airambulance");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("reasonableandcustomarycharges_display")) {
|
||||
$data['Reasonable and Customary Charges'] = $this->request->getPost("reasonableandcustomarycharges");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("daycaretreatment_display")) {
|
||||
$data['Day Care Treatment'] = $this->request->getPost("daycaretreatment");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("lasiksurgery_display")) {
|
||||
$data['Lasik Surgery'] = $this->request->getPost("lasiksurgery");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("ayushtreatmentcover_display")) {
|
||||
$data['AYUSH treatment cover'] = $this->request->getPost("ayudhtreatmentcover");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("moderntreatmentsasperirdai_display")) {
|
||||
$data['Modern treatments as per IRDAI'] = $this->request->getPost("moderntreatmentsasperirdai");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("opd_treatment_display")) {
|
||||
$data['OPD Treatment'] = $this->request->getPost("opd_treatment");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("days_of_discharge_display")) {
|
||||
$data['Claim Intimation Clause'] = $this->request->getPost("days_of_discharge");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("days_from_dod_display")) {
|
||||
$data['Claim Submission'] = $this->request->getPost("days_from_dod");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("terrorism_display")) {
|
||||
$data['Terrorism'] = $this->request->getPost("terrorism");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("widower_cover_display")) {
|
||||
$data['Widower Cover'] = $this->request->getPost("widower_cover");
|
||||
}
|
||||
|
||||
if ($this->request->getPost("breavement_cover_display")) {
|
||||
$data['Breavement Cover'] = $this->request->getPost("breavement_cover");
|
||||
}
|
||||
|
||||
if(isset($data) && !empty($data)){
|
||||
return $data;
|
||||
}else{
|
||||
$data = [];
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function getterms()
|
||||
{
|
||||
$client_policy_id = $this->request->getVar('client_policy_id');
|
||||
@ -2479,52 +2621,32 @@ class ClientController extends AdminController
|
||||
$data['permanentTotalDisablement'] = str_replace(',', '', $this->request->getPost("permanentTotalDisablement"));
|
||||
$data['permanentPartialDisablement'] = $this->request->getPost("permanentPartialDisablement");
|
||||
$data['temporaryTotalDisablementBenefit'] = $this->request->getPost("temporaryTotalDisablementBenefit");
|
||||
$data['accidentalHospitalizationExpenses'] = str_replace(',', '', $this->request->getPost("accidentalHospitalizationExpenses"));
|
||||
$data['childrenEducationWelfareFund'] = str_replace(',', '', $this->request->getPost("childrenEducationWelfareFund"));
|
||||
|
||||
$data['compassionateVisitExpenses'] = $this->request->getPost("compassionateVisitExpenses");
|
||||
if ($data['compassionateVisitExpenses'] == 1) {
|
||||
$data['compassionateVisitExpensesData'] = $this->request->getPost("compassionateVisitExpensesData");
|
||||
} else {
|
||||
$data['compassionateVisitExpensesData'] = "";
|
||||
}
|
||||
|
||||
$data['brokenBoneExpenses'] = str_replace(',', '', $this->request->getPost("brokenBoneExpenses"));
|
||||
if ($data['brokenBoneExpenses'] == 1) {
|
||||
$data['brokenBoneExpensesData'] = str_replace(',', '', $this->request->getPost("brokenBoneExpensesData"));
|
||||
} else {
|
||||
$data['brokenBoneExpensesData'] = "";
|
||||
}
|
||||
|
||||
$data['medical_expenses_medical_extension'] = str_replace(',', '', $this->request->getPost("medical_expenses_medical_extension"));
|
||||
$data['opd_treatment_cover'] = str_replace(',', '', $this->request->getPost("opd_treatment_cover"));
|
||||
$data['ambulanceCharges'] = str_replace(',', '', $this->request->getPost("ambulanceCharges"));
|
||||
if ($data['ambulanceCharges'] == 1) {
|
||||
$data['ambulanceChargesData'] = str_replace(',', '', $this->request->getPost("ambulanceChargesData"));
|
||||
} else {
|
||||
$data['ambulanceChargesData'] = "";
|
||||
}
|
||||
|
||||
$data['burnExpenses'] = $this->request->getPost("burnExpenses");
|
||||
if ($data['burnExpenses'] == 1) {
|
||||
$data['burnExpensesData'] = $this->request->getPost("burnExpensesData");
|
||||
} else {
|
||||
$data['burnExpensesData'] = "";
|
||||
}
|
||||
|
||||
$data['carriageOfDeadBody'] = $this->request->getPost("carriageOfDeadBody");
|
||||
if ($data['carriageOfDeadBody'] == 1) {
|
||||
$data['carriageOfDeadBodyData'] = $this->request->getPost("carriageOfDeadBodyData");
|
||||
} else {
|
||||
$data['carriageOfDeadBodyData'] = "";
|
||||
}
|
||||
|
||||
$data['animalSnakeInsectBite'] = $this->request->getPost("animalSnakeInsectBite");
|
||||
$data['repatriation_of_mortal_remains'] = str_replace(',', '', $this->request->getPost("repatriation_of_mortal_remains"));
|
||||
$data['childrenEducationWelfareFund'] = str_replace(',', '', $this->request->getPost("childrenEducationWelfareFund"));
|
||||
$data['terrorism'] = $this->request->getPost("terrorism");
|
||||
$data['worldwideCover'] = $this->request->getPost("worldwideCover");
|
||||
$data['family_transportation_benefits'] = $this->request->getPost("family_transportation_benefits");
|
||||
$data['fractures_dislocation_burns'] = $this->request->getPost("fractures_dislocation_burns");
|
||||
$data['coma'] = $this->request->getPost("coma");
|
||||
$data['carriageOfDeadBody'] = $this->request->getPost("carriageOfDeadBody");
|
||||
$data['compassionateVisitExpenses'] = $this->request->getPost("compassionateVisitExpenses");
|
||||
$data['travel_expenses_for_medical_treatment'] = $this->request->getPost("travel_expenses_for_medical_treatment");
|
||||
$data['daily_cash_allowance'] = $this->request->getPost("daily_cash_allowance");
|
||||
$data['artifical_limb_and_prosthesis'] = $this->request->getPost("artifical_limb_and_prosthesis");
|
||||
$data['animalSnakeInsectBite'] = $this->request->getPost("animalSnakeInsectBite");
|
||||
$data['air_ambulance'] = $this->request->getPost("air_ambulance");
|
||||
|
||||
|
||||
$data['gpa_special_condition_label'] = str_replace(',', '', $this->request->getPost("gpa_special_condition_label")) ?? [];
|
||||
$data['gpa_special_condition_input'] = str_replace(',', '', $this->request->getPost("gpa_special_condition_input")) ?? [];
|
||||
$data['multiple_sum_insured'] = str_replace(',', '', $this->request->getPost("multiple_sum_insured")) ?? [];
|
||||
|
||||
$data['enrollment_display_key'] = $this->enrollmentGPADisplayValueTransform();
|
||||
|
||||
// print_r($data); die;
|
||||
|
||||
$jsonData = json_encode($data);
|
||||
$dataa = array(
|
||||
@ -2554,6 +2676,82 @@ class ClientController extends AdminController
|
||||
}
|
||||
}
|
||||
|
||||
public function enrollmentGPADisplayValueTransform()
|
||||
{
|
||||
if ($this->request->getPost("accidentalDeathBenefit_display")) {
|
||||
$data['Accidental Death Benefit'] = $this->request->getPost("accidentalDeathBenefit");
|
||||
}
|
||||
if ($this->request->getPost("permanentTotalDisablement_display")) {
|
||||
$data['Permanent Total Disablement'] = $this->request->getPost("permanentTotalDisablement");
|
||||
}
|
||||
if ($this->request->getPost("permanentPartialDisablement_display")) {
|
||||
$data['Permanent Partial Disablement'] = $this->request->getPost("permanentPartialDisablement");
|
||||
}
|
||||
if ($this->request->getPost("temporaryTotalDisablementBenefit_display")) {
|
||||
$data['Temporary Total Disablement Benefit'] = $this->request->getPost("temporaryTotalDisablementBenefit");
|
||||
}
|
||||
if ($this->request->getPost("medical_expenses_medical_extension_display")) {
|
||||
$data['Medical Expenses / Medical Extension (IPD)'] = $this->request->getPost("medical_expenses_medical_extension");
|
||||
}
|
||||
if ($this->request->getPost("opd_treatment_cover_display")) {
|
||||
$data['OPD Treatment Cover'] = $this->request->getPost("opd_treatment_cover");
|
||||
}
|
||||
if ($this->request->getPost("ambulanceCharges_display")) {
|
||||
$data['Ambulance Charges'] = $this->request->getPost("ambulanceCharges");
|
||||
}
|
||||
if ($this->request->getPost("repatriation_of_mortal_remains_display")) {
|
||||
$data['Repatriation of Mortal Remains'] = $this->request->getPost("repatriation_of_mortal_remains");
|
||||
}
|
||||
if ($this->request->getPost("childrenEducationWelfareFund_display")) {
|
||||
$data['Children Education Welfare Fund'] = $this->request->getPost("childrenEducationWelfareFund");
|
||||
}
|
||||
if ($this->request->getPost("terrorism_display")) {
|
||||
$data['Terrorism'] = $this->request->getPost("terrorism");
|
||||
}
|
||||
if ($this->request->getPost("worldwideCover_display")) {
|
||||
$data['Worldwide Cover'] = $this->request->getPost("worldwideCover");
|
||||
}
|
||||
if ($this->request->getPost("family_transportation_benefits_display")) {
|
||||
$data['Family Transportation Benefits'] = $this->request->getPost("family_transportation_benefits");
|
||||
}
|
||||
if ($this->request->getPost("fractures_dislocation_burns_display")) {
|
||||
$data['Fractures / Dislocation / Burns'] = $this->request->getPost("fractures_dislocation_burns");
|
||||
}
|
||||
if ($this->request->getPost("coma_display")) {
|
||||
$data['Coma'] = $this->request->getPost("coma");
|
||||
}
|
||||
if ($this->request->getPost("carriageofDeadBody_display")) {
|
||||
$data['Carriage of Dead Body'] = $this->request->getPost("carriageOfDeadBody");
|
||||
}
|
||||
if ($this->request->getPost("compassionateVisitExpenses_display")) {
|
||||
$data['Compassionate Visit Expenses'] = $this->request->getPost("compassionateVisitExpenses");
|
||||
}
|
||||
if ($this->request->getPost("travel_expenses_for_medical_treatment_display")) {
|
||||
$data['Travel expenses for Medical Treatment'] = $this->request->getPost("travel_expenses_for_medical_treatment");
|
||||
}
|
||||
if ($this->request->getPost("daily_cash_allowance_display")) {
|
||||
$data['Daily cash Allowance'] = $this->request->getPost("daily_cash_allowance");
|
||||
}
|
||||
if ($this->request->getPost("artifical_limb_and_prosthesis_display")) {
|
||||
$data['Artifical Limb and Prosthesis'] = $this->request->getPost("artifical_limb_and_prosthesis");
|
||||
}
|
||||
if ($this->request->getPost("animalSnakeInsectBite_display")) {
|
||||
$data['Animal/Snake/Insect Bite'] = $this->request->getPost("animalSnakeInsectBite");
|
||||
}
|
||||
if ($this->request->getPost("air_ambulance_display")) {
|
||||
$data['Air Ambulance'] = $this->request->getPost("air_ambulance");
|
||||
}
|
||||
|
||||
// print_r($data); die;
|
||||
|
||||
if (isset($data) && !empty($data)) {
|
||||
return $data;
|
||||
} else {
|
||||
$data = [];
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
public function getPolicyGPATerms()
|
||||
{
|
||||
|
||||
@ -3161,7 +3359,6 @@ class ClientController extends AdminController
|
||||
|
||||
public function createPolicyTermsHtmlAsJSON()
|
||||
{
|
||||
|
||||
echo 'hi';
|
||||
}
|
||||
|
||||
@ -3823,8 +4020,10 @@ class ClientController extends AdminController
|
||||
|
||||
$query = $this->clientPolicyModel
|
||||
->where("policy_terms IS NOT NULL AND policy_terms <> ''")
|
||||
->where('policy_type_id', 2)
|
||||
->where('is_active', 1);
|
||||
|
||||
|
||||
if (!empty($client_id)) {
|
||||
$query->where('client_id', $client_id);
|
||||
}
|
||||
@ -3833,6 +4032,8 @@ class ClientController extends AdminController
|
||||
|
||||
for ($i = 0; $i < count($data); $i++) {
|
||||
|
||||
// dd($data[$i]);
|
||||
|
||||
if (isset($data[$i]['policy_terms']) && !empty($data[$i]['policy_terms'])) {
|
||||
$policyTerms = json_decode($data[$i]['policy_terms'], true);
|
||||
} else {
|
||||
@ -3955,6 +4156,14 @@ class ClientController extends AdminController
|
||||
);
|
||||
}
|
||||
|
||||
foreach ($policyTerms as $key => $term) {
|
||||
if ($term == "0") {
|
||||
$policyTerms[$key] = "No"; // Use = for assignment
|
||||
} elseif ($term == "1") {
|
||||
$policyTerms[$key] = "Yes"; // Use = for assignment
|
||||
}
|
||||
}
|
||||
|
||||
if(in_array($data[$i]['policy_type_id'], [2,3,4,5])){
|
||||
|
||||
if (!isset($policyTerms['waiver_of_90_days_waiting_period'])) {
|
||||
@ -4002,7 +4211,7 @@ class ClientController extends AdminController
|
||||
}
|
||||
|
||||
if (!isset($policyTerms['enrollment_display_key'])) {
|
||||
$policyTerms['enrollment_display_key'] = [];
|
||||
$policyTerms['enrollment_display_key'] = $this->existingGMCDisplayValueTransform($policyTerms);
|
||||
}
|
||||
|
||||
} else if($data[$i]['policy_type_id'] == 1){
|
||||
@ -4053,25 +4262,257 @@ class ClientController extends AdminController
|
||||
|
||||
}
|
||||
|
||||
foreach ($policyTerms as $key => $term) {
|
||||
if ($term == "0") {
|
||||
$policyTerms[$key] = "No"; // Use = for assignment
|
||||
} elseif ($term == "1") {
|
||||
$policyTerms[$key] = "Yes"; // Use = for assignment
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// dd($policyTerms);
|
||||
// Re-encode the ordered policy terms
|
||||
$updatedPolicyTerms = json_encode($policyTerms);
|
||||
// dd($updatedPolicyTerms);
|
||||
dd($updatedPolicyTerms);
|
||||
|
||||
// dd($orderedPolicyTerms, $updatedPolicyTerms);
|
||||
$this->clientPolicyModel->update($data[$i]['id'], ['policy_terms' => $updatedPolicyTerms]);
|
||||
}
|
||||
}
|
||||
|
||||
public function existingGMCDisplayValueTransform($data)
|
||||
{
|
||||
$transformedData = [];
|
||||
|
||||
if (isset($data["waiverofpreexistingdiseases"])) {
|
||||
$transformedData['Waiver of Pre-existing Diseases'] = $data["waiverofpreexistingdiseases"];
|
||||
}
|
||||
|
||||
if (isset($data["waiverof1,2,3&4thyearexclusions"])) {
|
||||
$transformedData['Waiver of 1, 2, 3 & 4th year Exclusions'] = $data["waiverof1,2,3&4thyearexclusions"];
|
||||
}
|
||||
|
||||
if (isset($data["waiverof30dayswaitingperiod"])) {
|
||||
$transformedData['Waiver of 30 days waiting period'] = $data["waiverof30dayswaitingperiod"];
|
||||
}
|
||||
|
||||
if (isset($data["waiver_of_90_days_waiting_period"])) {
|
||||
$transformedData['Waiver of 90 Days Waiting Period'] = $data["waiver_of_90_days_waiting_period"];
|
||||
}
|
||||
|
||||
if (isset($data["waiver_of_other_waiting_periods"])) {
|
||||
$transformedData['Waiver of Other Waiting Periods'] = $data["waiver_of_other_waiting_periods"];
|
||||
}
|
||||
|
||||
if (isset($data["maternity_benefit"])) {
|
||||
$transformedData['Maternity Benefit'] = $data["maternity_benefit"];
|
||||
}
|
||||
|
||||
if (isset($data["9monthwaitingperiodwaived"])) {
|
||||
$transformedData['9-month waiting Period - waived'] = $data["9monthwaitingperiodwaived"];
|
||||
}
|
||||
|
||||
if (isset($data["maternitycoverage"])) {
|
||||
$transformedData['Maternity Coverage'] = $data["maternitycoverage"];
|
||||
}
|
||||
|
||||
if (isset($data["twindelivery"])) {
|
||||
$transformedData['Twin Delivery'] = $data["twindelivery"];
|
||||
}
|
||||
|
||||
if (isset($data["well_baby_well_mother_expenses"])) {
|
||||
$transformedData['Well baby / Well Mother Expenses'] = $data["well_baby_well_mother_expenses"];
|
||||
}
|
||||
|
||||
if (isset($data["preandpostnatal"])) {
|
||||
$transformedData['Pre and Post natal'] = $data["preandpostnatal"];
|
||||
}
|
||||
|
||||
if (isset($data["infertility_treatment_coverage"])) {
|
||||
$transformedData['Infertility Treatment Coverage'] = $data["infertility_treatment_coverage"];
|
||||
}
|
||||
|
||||
if (isset($data["babyday1cover"])) {
|
||||
$transformedData['Baby Day 1 Cover'] = $data["babyday1cover"];
|
||||
}
|
||||
|
||||
if (isset($data["coverfromthedateofjoining"])) {
|
||||
$transformedData['Cover from the date of Joining'] = $data["coverfromthedateofjoining"];
|
||||
}
|
||||
|
||||
if (isset($data["mid_term_addition_of_new_born_newly_wedded_spouse"])) {
|
||||
$transformedData['Mid Term Addition of New Born / Newly Wedded Spouse'] = $data["mid_term_addition_of_new_born_newly_wedded_spouse"];
|
||||
}
|
||||
|
||||
if (isset($data["prehospitalizationcover"])) {
|
||||
$transformedData['Pre Hospitalization Cover'] = $data["prehospitalizationcover"];
|
||||
}
|
||||
|
||||
if (isset($data["posthospitalizationcover"])) {
|
||||
$transformedData['Post Hospitalization Cover'] = $data["posthospitalizationcover"];
|
||||
}
|
||||
|
||||
if (isset($data["congenitaldiseasesinternal"])) {
|
||||
$transformedData['Congenital Diseases - Internal'] = $data["congenitaldiseasesinternal"];
|
||||
}
|
||||
|
||||
if (isset($data["congenitaldiseasesexternal"])) {
|
||||
$transformedData['Congenital Diseases - External'] = $data["congenitaldiseasesexternal"];
|
||||
}
|
||||
|
||||
if (isset($data["copayzonewisecopay"])) {
|
||||
$transformedData['Co-Pay/Zone wise Co Pay'] = $data["copayzonewisecopay"];
|
||||
}
|
||||
|
||||
if (isset($data["roomrentlimit"])) {
|
||||
$transformedData['Room Rent Limit'] = $data["roomrentlimit"];
|
||||
}
|
||||
|
||||
if (isset($data["icu_limit"])) {
|
||||
$transformedData['ICU Limit'] = $data["icu_limit"];
|
||||
}
|
||||
|
||||
if (isset($data["proportionatedeductionclause"])) {
|
||||
$transformedData['Proportionate Deduction Clause'] = $data["proportionatedeductionclause"];
|
||||
}
|
||||
|
||||
if (isset($data["ailmentcapping"])) {
|
||||
$transformedData['Ailment capping'] = $data["ailmentcapping"];
|
||||
}
|
||||
|
||||
if (isset($data["ailment_capping_details"])) {
|
||||
$transformedData['Ailment capping Details'] = $data["ailment_capping_details"];
|
||||
}
|
||||
|
||||
if (isset($data["corporatebuffer"])) {
|
||||
$transformedData['Corporate Buffer'] = $data["corporatebuffer"];
|
||||
}
|
||||
|
||||
if (isset($data["non_admissible_contingency_corporate_buffer"])) {
|
||||
$transformedData['Non-Admissible / Contingency Corporate Buffer'] = $data["non_admissible_contingency_corporate_buffer"];
|
||||
}
|
||||
|
||||
if (isset($data["ambulancecharges"])) {
|
||||
$transformedData['Ambulance Charges'] = $data["ambulancecharges"];
|
||||
}
|
||||
|
||||
if (isset($data["airambulance"])) {
|
||||
$transformedData['Air Ambulance'] = $data["airambulance"];
|
||||
}
|
||||
|
||||
if (isset($data["reasonableandcustomarycharges"])) {
|
||||
$transformedData['Reasonable and Customary Charges'] = $data["reasonableandcustomarycharges"];
|
||||
}
|
||||
|
||||
if (isset($data["daycaretreatment"])) {
|
||||
$transformedData['Day Care Treatment'] = $data["daycaretreatment"];
|
||||
}
|
||||
|
||||
if (isset($data["lasiksurgery"])) {
|
||||
$transformedData['Lasik Surgery'] = $data["lasiksurgery"];
|
||||
}
|
||||
|
||||
if (isset($data["ayushtreatmentcover"])) {
|
||||
$transformedData['AYUSH treatment cover'] = $data["ayushtreatmentcover"];
|
||||
}
|
||||
|
||||
if (isset($data["moderntreatmentsasperirdai"])) {
|
||||
$transformedData['Modern treatments as per IRDAI'] = $data["moderntreatmentsasperirdai"];
|
||||
}
|
||||
|
||||
if (isset($data["opd_treatment"])) {
|
||||
$transformedData['OPD Treatment'] = $data["opd_treatment"];
|
||||
}
|
||||
|
||||
if (isset($data["days_of_discharge"])) {
|
||||
$transformedData['Claim Intimation Clause'] = $data["days_of_discharge"];
|
||||
}
|
||||
|
||||
if (isset($data["days_from_dod"])) {
|
||||
$transformedData['Claim Submission'] = $data["days_from_dod"];
|
||||
}
|
||||
|
||||
if (isset($data["terrorism"])) {
|
||||
$transformedData['Terrorism'] = $data["terrorism"];
|
||||
}
|
||||
|
||||
if (isset($data["widower_cover"])) {
|
||||
$transformedData['Widower Cover'] = $data["widower_cover"];
|
||||
}
|
||||
|
||||
if (isset($data["breavement_cover"])) {
|
||||
$transformedData['Breavement Cover'] = $data["breavement_cover"];
|
||||
}
|
||||
|
||||
return !empty($transformedData) ? $transformedData : [];
|
||||
}
|
||||
|
||||
public function existingGPADisplayValueTransform($data)
|
||||
{
|
||||
$transformedData = [];
|
||||
|
||||
if ($data["accidentalDeathBenefit"]) {
|
||||
$transformedData['Accidental Death Benefit'] = $data["accidentalDeathBenefit"];
|
||||
}
|
||||
if ($data["permanentTotalDisablement"]) {
|
||||
$transformedData['Permanent Total Disablement'] = $data["permanentTotalDisablement"];
|
||||
}
|
||||
if ($data["permanentPartialDisablement"]) {
|
||||
$transformedData['Permanent Partial Disablement'] = $data["permanentPartialDisablement"];
|
||||
}
|
||||
if ($data["temporaryTotalDisablementBenefit"]) {
|
||||
$transformedData['Temporary Total Disablement Benefit'] = $data["temporaryTotalDisablementBenefit"];
|
||||
}
|
||||
if ($data["medical_expenses_medical_extension"]) {
|
||||
$transformedData['Medical Expenses / Medical Extension (IPD)'] = $data["medical_expenses_medical_extension"];
|
||||
}
|
||||
if ($data["opd_treatment_cover"]) {
|
||||
$transformedData['OPD Treatment Cover'] = $data["opd_treatment_cover"];
|
||||
}
|
||||
if ($data["ambulanceCharges"]) {
|
||||
$transformedData['Ambulance Charges'] = $data["ambulanceCharges"];
|
||||
}
|
||||
if ($data["repatriation_of_mortal_remains"]) {
|
||||
$transformedData['Repatriation of Mortal Remains'] = $data["repatriation_of_mortal_remains"];
|
||||
}
|
||||
if ($data["childrenEducationWelfareFund"]) {
|
||||
$transformedData['Children Education Welfare Fund'] = $data["childrenEducationWelfareFund"];
|
||||
}
|
||||
if ($data["terrorism"]) {
|
||||
$transformedData['Terrorism'] = $data["terrorism"];
|
||||
}
|
||||
if ($data["worldwideCover"]) {
|
||||
$transformedData['Worldwide Cover'] = $data["worldwideCover"];
|
||||
}
|
||||
if ($data["family_transportation_benefits"]) {
|
||||
$transformedData['Family Transportation Benefits'] = $data["family_transportation_benefits"];
|
||||
}
|
||||
if ($data["fractures_dislocation_burns"]) {
|
||||
$transformedData['Fractures / Dislocation / Burns'] = $data["fractures_dislocation_burns"];
|
||||
}
|
||||
if ($data["coma"]) {
|
||||
$transformedData['Coma'] = $data["coma"];
|
||||
}
|
||||
if ($data["carriageofDeadBody"]) {
|
||||
$transformedData['Carriage of Dead Body'] = $data["carriageofDeadBody"];
|
||||
}
|
||||
if ($data["compassionateVisitExpenses"]) {
|
||||
$transformedData['Compassionate Visit Expenses'] = $data["compassionateVisitExpenses"];
|
||||
}
|
||||
if ($data["travel_expenses_for_medical_treatment"]) {
|
||||
$transformedData['Travel expenses for Medical Treatment'] = $data["travel_expenses_for_medical_treatment"];
|
||||
}
|
||||
if ($data["daily_cash_allowance"]) {
|
||||
$transformedData['Daily cash Allowance'] = $data["daily_cash_allowance"];
|
||||
}
|
||||
if ($data["artifical_limb_and_prosthesis"]) {
|
||||
$transformedData['Artifical Limb and Prosthesis'] = $data["artifical_limb_and_prosthesis"];
|
||||
}
|
||||
if ($data["animalSnakeInsectBite"]) {
|
||||
$transformedData['Animal/Snake/Insect Bite'] = $data["animalSnakeInsectBite"];
|
||||
}
|
||||
if ($data["air_ambulance"]) {
|
||||
$transformedData['Air Ambulance'] = $data["air_ambulance"];
|
||||
}
|
||||
|
||||
return !empty($transformedData) ? $transformedData : [];
|
||||
}
|
||||
|
||||
public function updateRemainderDate()
|
||||
{
|
||||
// Connect to the database and fetch the data
|
||||
@ -4471,85 +4912,6 @@ class ClientController extends AdminController
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
// private function preparePolicyData($renewalData)
|
||||
// {
|
||||
// $data = [
|
||||
// 'issuer' => $renewalData['issuer_type_id'],
|
||||
// 'client_id' => $renewalData['client_id'],
|
||||
// 'client_branch_id' => $renewalData['branch_id'] ?? null,
|
||||
// 'vehicle_id' => $renewalData['vehicle_id'],
|
||||
// 'insurer_id' => $renewalData['insurer_id'],
|
||||
// 'insurer_branch_id' => $renewalData['insurer_branch_id'],
|
||||
// 'policy_type_id' => $renewalData['policy_type_id'],
|
||||
// 'client_policy_id' => $renewalData['client_policy_id'] ?? null,
|
||||
// 'policy_no' => $renewalData['policy_no'],
|
||||
// 'policy_issue_date' => $renewalData['date_date_of_issue'],
|
||||
// 'policy_start_date' => $renewalData['date_policy_start_date'],
|
||||
// 'policy_end_date' => $renewalData['date_policy_end_date'],
|
||||
// 'policy_holder_name' => $renewalData['insured'],
|
||||
// 'status' => 'completed',
|
||||
// 'is_active' => 1,
|
||||
// 'tsi' => '500000',
|
||||
// 'month' => '2025-02-01',
|
||||
// 'ct_type' => 1,
|
||||
// 'cd_ac_pk' => $renewalData['cd_ac_pk'] ?? null,
|
||||
// ];
|
||||
|
||||
// $policyTransactionModel = new PolicyTransactionModel();
|
||||
// return $policyTransactionModel->insert($data);
|
||||
// }
|
||||
|
||||
// private function prepareVehicleData($renewalData)
|
||||
// {
|
||||
// $vehicleData = [
|
||||
// 'vehicle_no' => $renewalData['veh_no'],
|
||||
// 'owner' => $renewalData['client_id'],
|
||||
// 'branch_id' => ($renewalData['client_type_id'] == 1) ? $renewalData['branch_id'] : null,
|
||||
// ];
|
||||
|
||||
// $vehicleModel = new VehicleModel();
|
||||
// return $vehicleModel->insert($vehicleData);
|
||||
// }
|
||||
|
||||
// private function preparePtCoShareDetails($renewalData)
|
||||
// {
|
||||
// $ptCoShareDetails = [
|
||||
// 'pt_id' => $renewalData['pt_id'],
|
||||
// 'insurer_id' => $renewalData['insurer_id'],
|
||||
// 'insurer_branch_id' => $renewalData['insurer_branch_id'],
|
||||
// 'co_share_type' => 0,
|
||||
// 'co_share_per' => 0.00,
|
||||
// 'bp_amt' => 0.00,
|
||||
// 'tp_amt' => 0.00,
|
||||
// 'tep_amt' => 0.00,
|
||||
// 'follower_policy_no' => $renewalData['policy_no'],
|
||||
// ];
|
||||
|
||||
// $ptCoShareDetailsModel = new PTCOShareDetailsModel();
|
||||
// return $ptCoShareDetailsModel->insert($ptCoShareDetails);
|
||||
// }
|
||||
|
||||
// private function prepareClientPolicy($renewalData)
|
||||
// {
|
||||
// $clientPolicy = [
|
||||
// 'client_id' => $renewalData['client_id'],
|
||||
// 'client_branch_id' => $renewalData['branch_id'],
|
||||
// 'policy_type_id' => $renewalData['policy_type_id'],
|
||||
// 'insurer_id' => $renewalData['insurer_id'],
|
||||
// 'insurer_branch_id' => $renewalData['insurer_branch_id'],
|
||||
// 'policy_no' => $renewalData['policy_no'],
|
||||
// 'policy_start_date' => $renewalData['date_policy_start_date'],
|
||||
// 'policy_end_date' => $renewalData['date_policy_end_date'],
|
||||
// 'policy_status' => 1,
|
||||
// 'gst' => 18.00,
|
||||
// 'cd_ac_pk' => $renewalData['cd_ac_pk'],
|
||||
// ];
|
||||
|
||||
// $clientPolicyModel = new ClientPolicyModel();
|
||||
// return $clientPolicyModel->insert($clientPolicy);
|
||||
// }
|
||||
|
||||
public function updateRenewalData()
|
||||
{
|
||||
$db = db_connect();
|
||||
@ -4589,6 +4951,7 @@ class ClientController extends AdminController
|
||||
|
||||
kint::dump($successData);
|
||||
}
|
||||
|
||||
public function updateRenewalInsurerData()
|
||||
{
|
||||
$db = db_connect();
|
||||
|
||||
@ -2539,8 +2539,15 @@ class EmployeeRestController extends AdminController
|
||||
if($ClientPolicyValue['policy_type_id'] == 1)
|
||||
{
|
||||
$data['policy_terms'] = $this->policyTermsFiter($terms,'gpa');
|
||||
$data['department_id'] = 2;
|
||||
|
||||
}else if($ClientPolicyValue['policy_type_id'] == 2){
|
||||
$data['policy_terms'] = $this->policyTermsFiter($terms,'gmc');
|
||||
$data['department_id'] = 1;
|
||||
}else if($ClientPolicyValue['policy_type_id'] == 6){
|
||||
$data['policy_terms'] = $this->policyTermsFiter($terms,'gmc');
|
||||
$data['department_id'] = 3;
|
||||
}else{
|
||||
}else if($ClientPolicyValue['policy_type_id'] == 7){
|
||||
$data['policy_terms'] = $this->policyTermsFiter($terms,'gmc');
|
||||
$data['department_id'] = 4;
|
||||
}
|
||||
@ -2720,8 +2727,6 @@ class EmployeeRestController extends AdminController
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return $finalarray;
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user