FIX_LIVE_ISSUE_GTLI_TERMS : RV
This commit is contained in:
parent
533359b2b3
commit
9e661ad4c2
@ -2868,14 +2868,14 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
}else if($ClientPolicyValue['policy_type_id'] == 6)
|
}else if($ClientPolicyValue['policy_type_id'] == 6)
|
||||||
{
|
{
|
||||||
$policyGroup = 'gpa';
|
$policyGroup = 'other';
|
||||||
$data['ticket_type_id'] = 3;
|
$data['ticket_type_id'] = 3;
|
||||||
$data['claim_subject'] = "Claim EDLI";
|
$data['claim_subject'] = "Claim EDLI";
|
||||||
$data['sum_insured_label'] = "Sum Assured";
|
$data['sum_insured_label'] = "Sum Assured";
|
||||||
|
|
||||||
}else if($ClientPolicyValue['policy_type_id'] == 7)
|
}else if($ClientPolicyValue['policy_type_id'] == 7)
|
||||||
{
|
{
|
||||||
$policyGroup = 'gpa';
|
$policyGroup = 'other';
|
||||||
$data['ticket_type_id'] = 4;
|
$data['ticket_type_id'] = 4;
|
||||||
$data['claim_subject'] = "Claim GTLI";
|
$data['claim_subject'] = "Claim GTLI";
|
||||||
$data['sum_insured_label'] = "Sum Assured";
|
$data['sum_insured_label'] = "Sum Assured";
|
||||||
@ -2969,9 +2969,6 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
function policyTermsFiter($terms , $type)
|
function policyTermsFiter($terms , $type)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$gpa = [
|
$gpa = [
|
||||||
"sumInsured2" => "Sum Insured",
|
"sumInsured2" => "Sum Insured",
|
||||||
"totalSumInsured" => "Total Sum Assured",
|
"totalSumInsured" => "Total Sum Assured",
|
||||||
@ -3021,8 +3018,6 @@ class EmployeeRestController extends AdminController
|
|||||||
"moderntreatmentsasperirdai" => "Modern Treatment "
|
"moderntreatmentsasperirdai" => "Modern Treatment "
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$finalarray = [];
|
$finalarray = [];
|
||||||
if($type == 'gpa'){
|
if($type == 'gpa'){
|
||||||
foreach ($gpa as $key => $value) {
|
foreach ($gpa as $key => $value) {
|
||||||
@ -3046,6 +3041,18 @@ class EmployeeRestController extends AdminController
|
|||||||
$finalarray[$terms->gpa_special_condition_label[$i]] = $terms->gpa_special_condition_input[$i];
|
$finalarray[$terms->gpa_special_condition_label[$i]] = $terms->gpa_special_condition_input[$i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else if($type == 'other'){
|
||||||
|
foreach ($terms as $key => $value) {
|
||||||
|
if($key != "multiple_sum_insured" && $value != ""){
|
||||||
|
$result = ucwords(str_replace('_', ' ', $key));
|
||||||
|
$finalarray[$result] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(isset(($terms->gpa_special_condition_label)) && is_array($terms->gpa_special_condition_label) && is_array($terms->gpa_special_condition_input)){
|
||||||
|
for ($i=0; $i < count($terms->gpa_special_condition_label); $i++) {
|
||||||
|
$finalarray[$terms->gpa_special_condition_label[$i]] = $terms->gpa_special_condition_input[$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
foreach ($gmc as $key => $value) {
|
foreach ($gmc as $key => $value) {
|
||||||
if(isset($terms->$key))
|
if(isset($terms->$key))
|
||||||
@ -3070,9 +3077,7 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $finalarray;
|
return $finalarray;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user