FIX_SI_ENHANCECMENT_AGESLAB
This commit is contained in:
parent
00dd88a6eb
commit
aa58354611
@ -199,10 +199,13 @@ if(!function_exists('check_si'))
|
|||||||
|
|
||||||
if(!$is_si_found && $slab_value['si'] == $received_si) //match si amount
|
if(!$is_si_found && $slab_value['si'] == $received_si) //match si amount
|
||||||
{
|
{
|
||||||
|
// echo 'found';
|
||||||
$is_si_found = true;
|
$is_si_found = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check age slab
|
// 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
|
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');
|
$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)
|
if(!$is_si_found)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user