FIX_PREMIUM_TYPE3_HANDLED_IN_SI_CHECK

This commit is contained in:
velz 2025-07-03 12:52:48 +05:30
parent 96959c35c5
commit 1ad5d82cce
2 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
namespace App\Controllers;
use CodeIgniter\Controller;
use Kint;
class ICICILombardController extends AdminController
{

View File

@ -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;
}
}