FIX_SI_ENHANCECMENT_AGESLAB

This commit is contained in:
velz 2024-06-04 09:08:39 +05:30
parent 00dd88a6eb
commit aa58354611

View File

@ -199,10 +199,13 @@ if(!function_exists('check_si'))
if(!$is_si_found && $slab_value['si'] == $received_si) //match si amount
{
// echo 'found';
$is_si_found = true;
}
// check age slab
if(in_array(strtoupper($row['current_action']), ['I','A','DA']))
{
if($row[3] != null && DateTime::createFromFormat('d-M-Y', $row[3]) !== false)// dob
{
$dob = change_date_format($row[3],'d-M-Y','Y-m-d');
@ -225,10 +228,15 @@ if(!function_exists('check_si'))
}
}
}//end of check age slab
}
}
else
{
$is_age_slab_found = true;// send true if age conditin is not applicable
}//end of check age slab
}// end of for loop
}
if(!$is_si_found)