FIX_HR_CHANGES : RV

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

View File

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