From ded7f75840dfc09f3ee85a3aae85ee24920a72a4 Mon Sep 17 00:00:00 2001 From: bitbucket Date: Thu, 25 Apr 2024 12:03:19 +0530 Subject: [PATCH] CHANGE_ add floter sum insured text : GWM --- app/Controllers/EmployeeRestController.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index c7597089..b957ff11 100644 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -1268,6 +1268,16 @@ public function getAddOnPolicy() $responce['is_addon'] = $array['is_addon']; $responce['open_for_enrollment'] = $array['open_for_enrollment']; $responce['policy_terms'] = $decodedArray; + + if(count($getSlabAndGridData['slab_rates'])){ + if($getSlabAndGridData['slab_rates'][0]['premium_type'] == 1) + { + $responce['floter_text_heading'] = 'Floater Sum Insured'; + }else{ + $responce['floter_text_heading'] = 'Sum Insured'; + } + } + if($array['is_addon'] == 3) {