FIX_MOBIL_NO_VATION : RV

This commit is contained in:
VENKATESHWARAN 2025-05-22 15:42:08 +05:30
parent 60d983553b
commit 7e23f18b2b
2 changed files with 5 additions and 5 deletions

View File

@ -1762,10 +1762,10 @@ 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 ($row['12'] == $value['mobile']) {
if (strtolower($row['5']) == 'self' && $row['12'] == $value['mobile']) {
return array('status' => false,'error' => "Duplicate Mobile No");
// break;
}
@ -1780,7 +1780,7 @@ if(!function_exists('check_dup_email'))
{
foreach($existing_mobilenos as $k => $value)
{
if ($row['13'] == $value['email_corporate']) {
if (strtolower($row['5']) == 'self' && $row['13'] == $value['email_corporate']) {
return array('status' => false,'error' => "Duplicate Email");
// break;
}

View File

@ -1414,8 +1414,8 @@ class EmployeePolicyModel extends Model
->join('employees emp', 'employee_polices.employee_id = emp.id')
->join('client_policy cp', 'employee_polices.client_policy_id = cp.id')
->where('employee_polices.client_policy_id',$client_policy_id)
->whereIn('employee_polices.status', ['Active'])
->whereIn('emp.emp_status', ['Active'])
->whereIn('employee_polices.status', ['draft', 'enrolled'])
->whereIn('emp.emp_status', ['draft', 'enrolled'])
->where('emp.is_active', 1)
->where('emp.relationship', 'Self')
->where('emp.mobile is not null')