FIX_LIVE_ISSUE_CORRECTION_: RV
This commit is contained in:
parent
6c9eecb56a
commit
4394d293a1
@ -5266,7 +5266,7 @@ class ClientController extends AdminController
|
|||||||
// $res = $empServiceController->employeesEnrollmentInsert(['file_id' => 836]);
|
// $res = $empServiceController->employeesEnrollmentInsert(['file_id' => 836]);
|
||||||
// $res = $empServiceController->employeesSIEnhanceProcess(['file_id' => '978']);
|
// $res = $empServiceController->employeesSIEnhanceProcess(['file_id' => '978']);
|
||||||
// $res = $empServiceController->employeeDisembark(['file_id' => '1681']);
|
// $res = $empServiceController->employeeDisembark(['file_id' => '1681']);
|
||||||
// $res = $empServiceController->employeesCorrectionProcess(['file_id' => '1681']);
|
// $res = $empServiceController->employeesCorrectionProcess(['file_id' => '2033']);
|
||||||
// dd( $res);
|
// dd( $res);
|
||||||
|
|
||||||
$EmployeeMultiEventServiceController = new EmployeeMultiEventServiceController();
|
$EmployeeMultiEventServiceController = new EmployeeMultiEventServiceController();
|
||||||
@ -5324,6 +5324,7 @@ class ClientController extends AdminController
|
|||||||
$EmpDataServiceController = new EmpDataServiceController();
|
$EmpDataServiceController = new EmpDataServiceController();
|
||||||
// $res = $EmpDataServiceController->generateExcelForDeletion($batch_data); dd($return); die;
|
// $res = $EmpDataServiceController->generateExcelForDeletion($batch_data); dd($return); die;
|
||||||
// $res = $EmpDataServiceController->generateExcelForSIEnhancement($batch_data); die;
|
// $res = $EmpDataServiceController->generateExcelForSIEnhancement($batch_data); die;
|
||||||
|
// $res = $EmpDataServiceController->generateExcelForCorrection($batch_data);
|
||||||
// $res = $EmpDataServiceController->importInceptionFileValidation(['file_id' => 1932]); die;
|
// $res = $EmpDataServiceController->importInceptionFileValidation(['file_id' => 1932]); die;
|
||||||
// $res = $EmpDataServiceController->importDeletionValidation(['file_id' => 304]); //for live
|
// $res = $EmpDataServiceController->importDeletionValidation(['file_id' => 304]); //for live
|
||||||
// $res = $EmpDataServiceController->importSIEnhancementUpdateEndorsementID(['file_id' => 1199]); //for live
|
// $res = $EmpDataServiceController->importSIEnhancementUpdateEndorsementID(['file_id' => 1199]); //for live
|
||||||
|
|||||||
@ -1956,14 +1956,29 @@ class EmployeeMultiEventServiceController extends BaseController
|
|||||||
$field_value = ($field_name == 'dob' ? change_date_format($row[4], 'd-M-Y', 'Y-m-d') : $row[4]);
|
$field_value = ($field_name == 'dob' ? change_date_format($row[4], 'd-M-Y', 'Y-m-d') : $row[4]);
|
||||||
|
|
||||||
|
|
||||||
|
// $employee = $this->employeeModel
|
||||||
|
// ->where('emp_code', $row[1])
|
||||||
|
// ->where('name', $row[2])
|
||||||
|
// ->where('client_id', $file['client_id'])
|
||||||
|
// ->where('client_branch_id', $file['client_branch_id'])
|
||||||
|
// ->where('emp_status', 'active')
|
||||||
|
// ->where('is_active', 1)
|
||||||
|
// ->first();
|
||||||
|
|
||||||
$employee = $this->employeeModel
|
$employee = $this->employeeModel
|
||||||
->where('emp_code', $row[1])
|
->select('employees.*')
|
||||||
->where('name', $row[2])
|
->join('employee_polices', 'employees.id = employee_polices.employee_id')
|
||||||
->where('client_id', $file['client_id'])
|
->where('employees.emp_code', $row[1])
|
||||||
->where('client_branch_id', $file['client_branch_id'])
|
->where('employees.name',$row[2])
|
||||||
->where('emp_status', 'active')
|
->where('employees.client_id',$file['client_id'])
|
||||||
->where('is_active', 1)
|
->where('employees.client_branch_id',$file['client_branch_id'])
|
||||||
|
->where('employee_polices.client_policy_id',$file['policy_id'])
|
||||||
|
->where('employees.emp_status','active')
|
||||||
|
->where('employees.is_active',1)
|
||||||
|
->where('employee_polices.status','active')
|
||||||
|
->where('employee_polices.is_active',1)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$existing_endorsements = $this->empEndorsementModel->where('actions', 'c')
|
$existing_endorsements = $this->empEndorsementModel->where('actions', 'c')
|
||||||
->where('table_name', 'employees')
|
->where('table_name', 'employees')
|
||||||
->where('endorsement_id is null')
|
->where('endorsement_id is null')
|
||||||
|
|||||||
@ -1470,6 +1470,7 @@ class EmployeeServiceController extends AdminController
|
|||||||
//get file name
|
//get file name
|
||||||
$file_id = $params['file_id'];
|
$file_id = $params['file_id'];
|
||||||
$file = $this->fileModel->find($file_id);
|
$file = $this->fileModel->find($file_id);
|
||||||
|
// dd($file);
|
||||||
|
|
||||||
$file_name_with_path = WRITEPATH."/uploads/excel/".$file['file_name'];
|
$file_name_with_path = WRITEPATH."/uploads/excel/".$file['file_name'];
|
||||||
|
|
||||||
@ -1498,13 +1499,21 @@ class EmployeeServiceController extends AdminController
|
|||||||
|
|
||||||
|
|
||||||
$employee = $this->employeeModel
|
$employee = $this->employeeModel
|
||||||
->where('emp_code', $row[1])
|
->select('employees.*')
|
||||||
->where('name',$row[2])
|
->join('employee_polices', 'employees.id = employee_polices.employee_id')
|
||||||
->where('client_id',$file['client_id'])
|
->where('employees.emp_code', $row[1])
|
||||||
->where('client_branch_id',$file['client_branch_id'])
|
->where('employees.name',$row[2])
|
||||||
->where('emp_status','active')
|
->where('employees.client_id',$file['client_id'])
|
||||||
->where('is_active',1)
|
->where('employees.client_branch_id',$file['client_branch_id'])
|
||||||
|
->where('employee_polices.client_policy_id',$file['policy_id'])
|
||||||
|
->where('employees.emp_status','active')
|
||||||
|
->where('employees.is_active',1)
|
||||||
|
->where('employee_polices.status','active')
|
||||||
|
->where('employee_polices.is_active',1)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
// Kint::dump($employee);
|
||||||
|
|
||||||
$existing_endorsements = $this->empEndorsementModel->where('actions','c')
|
$existing_endorsements = $this->empEndorsementModel->where('actions','c')
|
||||||
->where('table_name','employees')
|
->where('table_name','employees')
|
||||||
->where('endorsement_id is null')
|
->where('endorsement_id is null')
|
||||||
|
|||||||
@ -563,36 +563,19 @@ class EmployeePolicyModel extends Model
|
|||||||
employees.email_personal AS emp_email_p,
|
employees.email_personal AS emp_email_p,
|
||||||
employees.band AS emp_grade,
|
employees.band AS emp_grade,
|
||||||
employees.designation AS emp_designation,
|
employees.designation AS emp_designation,
|
||||||
employees.basic_pay AS emp_basic_pay,
|
employees.basic_pay AS emp_basic_pay
|
||||||
|
|
||||||
batch_data.emp_policy_id,
|
|
||||||
batch_data.bl AS batch_list_batch_code,
|
|
||||||
batch_data.bf AS batch_files_batch_code
|
|
||||||
|
|
||||||
FROM
|
FROM
|
||||||
emp_endorsement
|
emp_endorsement
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
employees ON employees.id = emp_endorsement.pk
|
employees ON employees.id = emp_endorsement.pk
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
employee_polices ON employees.id = employee_polices.employee_id
|
employee_polices ON employees.id = employee_polices.employee_id
|
||||||
LEFT JOIN (
|
|
||||||
SELECT batch_list.emp_policy_id,
|
|
||||||
batch_list.batch_code AS bl,
|
|
||||||
batch_files.batch_code AS bf
|
|
||||||
FROM
|
|
||||||
batch_files
|
|
||||||
LEFT JOIN
|
|
||||||
batch_list ON batch_files.batch_code = batch_list.batch_code
|
|
||||||
WHERE batch_files.event_type = 'correction'
|
|
||||||
AND batch_files.actions = 'export'
|
|
||||||
AND batch_files.insurer_or_tpa = '{$insurer_or_tpa}'
|
|
||||||
) AS batch_data ON emp_endorsement.pk = batch_data.emp_policy_id
|
|
||||||
|
|
||||||
WHERE employees.client_id = '{$client_id}'
|
WHERE employees.client_id = '{$client_id}'
|
||||||
AND employee_polices.client_policy_id = '{$client_policy_id}'
|
AND employee_polices.client_policy_id = '{$client_policy_id}'
|
||||||
AND employees.client_branch_id = '{$client_branch_id}'
|
AND employees.client_branch_id = '{$client_branch_id}'
|
||||||
AND emp_endorsement.actions = 'c'
|
AND emp_endorsement.actions = 'c'
|
||||||
AND emp_endorsement.status != 'truncated'
|
AND emp_endorsement.status != 'truncated'
|
||||||
|
AND emp_endorsement.is_active = 1
|
||||||
AND employee_polices.is_active = 1
|
AND employee_polices.is_active = 1
|
||||||
AND employee_polices.status = 'active'
|
AND employee_polices.status = 'active'
|
||||||
AND employees.is_active = 1
|
AND employees.is_active = 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user