FIX_HR_CHANGES : RV

This commit is contained in:
VENKATESHWARAN 2025-07-22 09:50:19 +05:30
parent 19e4e36076
commit c12fa35557

View File

@ -1612,11 +1612,13 @@ if (!function_exists('remap_default_age_ratio_into_relationship')) {
if (!function_exists('check_dup_mobileno')) {
function check_dup_mobileno(array $row, array $existing_mobilenos)
{
foreach ($existing_mobilenos as $k => $value) {
if (strtolower($row['5']) == 'self' && $row['12'] == $value['mobile']) {
return array('status' => false, 'error' => "Duplicate Mobile No");
// break;
{
if(!empty($row['12'])){
foreach ($existing_mobilenos as $k => $value) {
if (strtolower($row['5']) == 'self' && $row['12'] == $value['mobile']) {
return array('status' => false, 'error' => "Duplicate Mobile No");
// break;
}
}
}
return array('status' => true);
@ -1626,10 +1628,12 @@ if (!function_exists('check_dup_mobileno')) {
if (!function_exists('check_dup_email')) {
function check_dup_email(array $row, array $existing_mobilenos)
{
foreach ($existing_mobilenos as $k => $value) {
if (strtolower($row['5']) == 'self' && $row['13'] == $value['email_corporate']) {
return array('status' => false, 'error' => "Duplicate Email");
// break;
if(!empty($row['13'])){
foreach ($existing_mobilenos as $k => $value) {
if (strtolower($row['5']) == 'self' && $row['13'] == $value['email_corporate']) {
return array('status' => false, 'error' => "Duplicate Email");
// break;
}
}
}
return array('status' => true);