From 1ad5d82ccea033466393307c933ed3a0e6dc00d6 Mon Sep 17 00:00:00 2001 From: velz Date: Thu, 3 Jul 2025 12:52:48 +0530 Subject: [PATCH] FIX_PREMIUM_TYPE3_HANDLED_IN_SI_CHECK --- app/Controllers/ICICILombardController.php | 1 + app/Helpers/excel_util_helper.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Controllers/ICICILombardController.php b/app/Controllers/ICICILombardController.php index 383cb7bc..75205f74 100644 --- a/app/Controllers/ICICILombardController.php +++ b/app/Controllers/ICICILombardController.php @@ -3,6 +3,7 @@ namespace App\Controllers; use CodeIgniter\Controller; +use Kint; class ICICILombardController extends AdminController { diff --git a/app/Helpers/excel_util_helper.php b/app/Helpers/excel_util_helper.php index 55e7a04c..00dc0a9d 100755 --- a/app/Helpers/excel_util_helper.php +++ b/app/Helpers/excel_util_helper.php @@ -252,12 +252,12 @@ if (!function_exists('check_si')) { if (!$is_si_found && $slab_value['si'] == $received_si) //match si amount { - // echo 'found'; + echo 'found - ' . $slab_value['si']. ' - ' . $received_si; $is_si_found = true; } // check age slab - if (in_array(strtoupper($row['current_action']), ['I', 'A', 'DA', 'MI']) && (($slab_value['premium_type'] == 1 && strtolower($row['5']) == 'self') || ($slab_value['premium_type'] == 2))) { + if (in_array(strtoupper($row['current_action']), ['I', 'A', 'DA', 'MI']) && (($slab_value['premium_type'] == 1 && strtolower($row['5']) == 'self') || ($slab_value['premium_type'] == 2) || ($slab_value['premium_type'] == 3))) { if ($row[3] != '' && $row[3] != null) // dob { $dob = convert_string_to_date($row[3]); @@ -298,7 +298,7 @@ if (!function_exists('check_si')) { $return_array['status'] = false; $return_array['error'] = "Sum insured value mandantory"; } - + // !Kint::dump($return_array); return $return_array; } }