FIX_ISSUE
This commit is contained in:
parent
9074857ae3
commit
cfb3f183e0
@ -2230,7 +2230,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
//send ecard mail if the event is tpa only
|
//send ecard mail if the event is tpa only
|
||||||
if ($file['insurer_or_tpa'] == 'tpa') {
|
if ($file['insurer_or_tpa'] == 'tpa') {
|
||||||
|
|
||||||
if ($get_policy_type['policy_type_id'] != 1) {
|
if (in_array($get_policy_type['policy_type_id'], [2, 3])) {
|
||||||
|
|
||||||
// generate e-card and store S3
|
// generate e-card and store S3
|
||||||
$r = Jobs::addJob(['job_name' => 'bulkGenerateEcardAndStoreinS3', 'payload' => ['client_policy_id' => $client_policy_id]]);
|
$r = Jobs::addJob(['job_name' => 'bulkGenerateEcardAndStoreinS3', 'payload' => ['client_policy_id' => $client_policy_id]]);
|
||||||
@ -2646,7 +2646,7 @@ class EmpDataServiceController extends BaseController
|
|||||||
'status' => $status_val,
|
'status' => $status_val,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if($client_policy_data['policy_type_id'] != 1){
|
if(in_array($client_policy_data['policy_type_id'], [2, 3])){
|
||||||
// re-generate e-card and store S3
|
// re-generate e-card and store S3
|
||||||
$r = Jobs::addJob(['job_name' => 'bulkGenerateEcardAndStoreinS3', 'payload' => ['client_policy_id' => $client_policy_id]]);
|
$r = Jobs::addJob(['job_name' => 'bulkGenerateEcardAndStoreinS3', 'payload' => ['client_policy_id' => $client_policy_id]]);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -486,6 +486,16 @@ class EmployeeController extends AdminController
|
|||||||
|
|
||||||
public function getExcelFileErrors($file_id, $retun_type = null)
|
public function getExcelFileErrors($file_id, $retun_type = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$file_data = $this->fileModel->where('id', $file_id)->first();
|
||||||
|
$error = json_decode($file_data['reason'] ?? '{}', true);
|
||||||
|
if(!empty($error) && $retun_type == 'api'){
|
||||||
|
$send = isset($error['error_summary'][5]) || isset($error['error_summary'][6]) ? true : false;
|
||||||
|
if($send){
|
||||||
|
return $this->respond(['status' => false, 'code' => 404, 'message' => $error['error_data'] ?? 'System error', 'data' => []], 200);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// $file_id = $this->request->uri->getSegment(3);
|
// $file_id = $this->request->uri->getSegment(3);
|
||||||
$empServiceController = new EmployeeServiceController();
|
$empServiceController = new EmployeeServiceController();
|
||||||
|
|
||||||
|
|||||||
@ -1151,9 +1151,9 @@ class TicketController extends BaseController
|
|||||||
'errors' => ['required' => 'Employee Email is required']
|
'errors' => ['required' => 'Employee Email is required']
|
||||||
],
|
],
|
||||||
|
|
||||||
'client_name' => [
|
'client_id' => [
|
||||||
'rules' => 'required',
|
'rules' => 'required',
|
||||||
'errors' => ['required' => 'Client Name is required']
|
'errors' => ['required' => 'Client ID is required']
|
||||||
],
|
],
|
||||||
|
|
||||||
'insurer_id' => [
|
'insurer_id' => [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user