FIX_LIVE_CONCERNS_ISSUES
This commit is contained in:
parent
5910f2a396
commit
a394afbba2
@ -3751,6 +3751,8 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
// $fetchData['relationship'] = strtolower($fetchData['relationship']) ?? $fetchData['relationship'];
|
// $fetchData['relationship'] = strtolower($fetchData['relationship']) ?? $fetchData['relationship'];
|
||||||
$fetchData['relationship'] = isset($fetchData['relationship']) ? strtolower($fetchData['relationship']) : null;
|
$fetchData['relationship'] = isset($fetchData['relationship']) ? strtolower($fetchData['relationship']) : null;
|
||||||
|
$fetchData['created_by'] = $fetchData['emp_id'];
|
||||||
|
$fetchData['claim_created_by'] = "USER";
|
||||||
|
|
||||||
// print_r($fetchData); die;
|
// print_r($fetchData); die;
|
||||||
$insert_status = $this->ticketMaster->insert($fetchData);
|
$insert_status = $this->ticketMaster->insert($fetchData);
|
||||||
@ -4523,7 +4525,7 @@ class EmployeeRestController extends AdminController
|
|||||||
// print_r($post_data); die;
|
// print_r($post_data); die;
|
||||||
|
|
||||||
|
|
||||||
$ClientPolicyData = $this->clientPolicyModel
|
$Query = $this->clientPolicyModel
|
||||||
->select("
|
->select("
|
||||||
client_policy.id as client_policy_id ,
|
client_policy.id as client_policy_id ,
|
||||||
client_policy.client_id as client_id,
|
client_policy.client_id as client_id,
|
||||||
@ -4540,10 +4542,14 @@ class EmployeeRestController extends AdminController
|
|||||||
->join('policy_type', 'policy_type.id = client_policy.policy_type_id', 'left')
|
->join('policy_type', 'policy_type.id = client_policy.policy_type_id', 'left')
|
||||||
->where('md5(client_policy.client_id)', $post_data['client_id'])
|
->where('md5(client_policy.client_id)', $post_data['client_id'])
|
||||||
->where('client_policy.client_branch_id', $post_data['client_branch_id'])
|
->where('client_policy.client_branch_id', $post_data['client_branch_id'])
|
||||||
->where('client_policy.is_active', 1)
|
->where('client_policy.is_active', 1);
|
||||||
// ->where('client_policy.policy_status', $this->request->getGet('policy_status'))
|
// ->where('client_policy.policy_status', $this->request->getGet('policy_status'))
|
||||||
->whereIn('client_policy.id', $post_data['policy_id'])
|
if(is_array($post_data['policy_id'])){
|
||||||
->first();
|
$Query->whereIn('client_policy.id', $post_data['policy_id']);
|
||||||
|
}else{
|
||||||
|
$Query->where('client_policy.id', $post_data['policy_id']);
|
||||||
|
}
|
||||||
|
$ClientPolicyData = $Query->first();
|
||||||
|
|
||||||
if (empty($post_data['client_id'])) {
|
if (empty($post_data['client_id'])) {
|
||||||
return $this->respondCreated(['status' => false, 'message' => 'Client is required', 'data' => []]);
|
return $this->respondCreated(['status' => false, 'message' => 'Client is required', 'data' => []]);
|
||||||
|
|||||||
@ -785,7 +785,8 @@ class FhplApiController extends BaseController
|
|||||||
'doa'=>$row['DATE_OF_ADMISSION'],
|
'doa'=>$row['DATE_OF_ADMISSION'],
|
||||||
'dod'=>$row['DATE_OF_DISCHARGE'],
|
'dod'=>$row['DATE_OF_DISCHARGE'],
|
||||||
'claim_status_id'=>$claimStatus,
|
'claim_status_id'=>$claimStatus,
|
||||||
'tpa_id'=>$this->fhplTpaId
|
'tpa_id'=>$this->fhplTpaId,
|
||||||
|
'claim_created_by'=>'TPA',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -974,6 +975,7 @@ class FhplApiController extends BaseController
|
|||||||
'tpa_claim_type' => $row['CLAIM_TYPE'] ?? null,
|
'tpa_claim_type' => $row['CLAIM_TYPE'] ?? null,
|
||||||
'tpa_ailments' => $row['AILMENT'] ?? null,
|
'tpa_ailments' => $row['AILMENT'] ?? null,
|
||||||
|
|
||||||
|
'claim_created_by' => 'TPA',
|
||||||
'created_at' => date('Y-m-d H:i:s'),
|
'created_at' => date('Y-m-d H:i:s'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -20,6 +20,7 @@ class HealthIndiaApiController extends BaseController
|
|||||||
protected $db;
|
protected $db;
|
||||||
protected $healthIndiaTpaId;
|
protected $healthIndiaTpaId;
|
||||||
protected $claim_type_array;
|
protected $claim_type_array;
|
||||||
|
protected $ticketController;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
@ -802,6 +803,7 @@ class HealthIndiaApiController extends BaseController
|
|||||||
'dod' => !empty($row['DATEOF_DISCHARGE']) ? date('Y-m-d', strtotime($row['DATEOF_DISCHARGE'])) : null,
|
'dod' => !empty($row['DATEOF_DISCHARGE']) ? date('Y-m-d', strtotime($row['DATEOF_DISCHARGE'])) : null,
|
||||||
'claim_status_id' => $claimStatus,
|
'claim_status_id' => $claimStatus,
|
||||||
'tpa_id' => $this->healthIndiaTpaId,
|
'tpa_id' => $this->healthIndiaTpaId,
|
||||||
|
'claim_created_by'=> 'TPA',
|
||||||
'created_at' => date('Y-m-d H:i:s')
|
'created_at' => date('Y-m-d H:i:s')
|
||||||
]);
|
]);
|
||||||
$insertedCount++;
|
$insertedCount++;
|
||||||
@ -1010,6 +1012,7 @@ class HealthIndiaApiController extends BaseController
|
|||||||
// TPA extras
|
// TPA extras
|
||||||
'tpa_claim_status' => $status,
|
'tpa_claim_status' => $status,
|
||||||
|
|
||||||
|
'claim_created_by' => 'TPA',
|
||||||
'created_at' => date('Y-m-d H:i:s'),
|
'created_at' => date('Y-m-d H:i:s'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -1317,6 +1317,7 @@ class MediAssistApiController extends BaseController
|
|||||||
//others
|
//others
|
||||||
'tpa_claim_type' => $value['typE_OF_CLAIM'],
|
'tpa_claim_type' => $value['typE_OF_CLAIM'],
|
||||||
'tpa_ailments' => ($value['ailment'] ?? '') . ' - ' . ($value['ailmenT_DESC'] ?? ''),
|
'tpa_ailments' => ($value['ailment'] ?? '') . ' - ' . ($value['ailmenT_DESC'] ?? ''),
|
||||||
|
'claim_created_by' => 'TPA',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -1492,6 +1492,7 @@ class TicketController extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
if ($ticket_data) {
|
if ($ticket_data) {
|
||||||
|
$ticket_data['claim_created_by'] = "CRM";
|
||||||
$return_value = $this->ticketMasterModel->insert($ticket_data);
|
$return_value = $this->ticketMasterModel->insert($ticket_data);
|
||||||
if ($return_value) {
|
if ($return_value) {
|
||||||
//mail trigger part
|
//mail trigger part
|
||||||
@ -1936,7 +1937,7 @@ class TicketController extends BaseController
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$received_data = sanitizeInputArrayAdvanced($data);
|
$received_data = sanitizeInputArrayAdvanced($data, ['mail_content']);
|
||||||
|
|
||||||
if (isset($received_data['id']) && $received_data['id'] != '') {
|
if (isset($received_data['id']) && $received_data['id'] != '') {
|
||||||
$status = $this->ticketMailTemplateModel->save($received_data);
|
$status = $this->ticketMailTemplateModel->save($received_data);
|
||||||
|
|||||||
@ -1440,6 +1440,7 @@ class TicketServiceController extends AdminController
|
|||||||
if(!empty($data)){
|
if(!empty($data)){
|
||||||
|
|
||||||
$data['file_id'] = $file_id;
|
$data['file_id'] = $file_id;
|
||||||
|
$data['claim_created_by'] = "DUMP";
|
||||||
//insert the claim data to ticket master table
|
//insert the claim data to ticket master table
|
||||||
$insert = $ticketMasterModal->insert($data);
|
$insert = $ticketMasterModal->insert($data);
|
||||||
$inserted_claim_list[] = $insert;
|
$inserted_claim_list[] = $insert;
|
||||||
|
|||||||
@ -136,7 +136,7 @@ class GlobalPostFileUploadGuard implements FilterInterface
|
|||||||
$response->setStatusCode(403)
|
$response->setStatusCode(403)
|
||||||
->setJSON([
|
->setJSON([
|
||||||
'status' => 'error',
|
'status' => 'error',
|
||||||
'message' => 'File upload rejected: Security policy violation.',
|
'message' => 'File upload rejected: Security policy violation.' . ($reason ? " Reason: $reason." : ''),
|
||||||
'debug' => (ENVIRONMENT === 'development') ? $reason : null
|
'debug' => (ENVIRONMENT === 'development') ? $reason : null
|
||||||
])
|
])
|
||||||
->send();
|
->send();
|
||||||
|
|||||||
@ -366,7 +366,7 @@ class AbhiClaimImportService extends BaseTpaClaimImportService
|
|||||||
$item['priority'] = 1;
|
$item['priority'] = 1;
|
||||||
$item['mode_of_intimation'] = 5;
|
$item['mode_of_intimation'] = 5;
|
||||||
$item['ticket_type_id'] = 1;
|
$item['ticket_type_id'] = 1;
|
||||||
|
$item['claim_created_by'] = 'DUMP_TPA';
|
||||||
|
|
||||||
$mapped[] = $item;
|
$mapped[] = $item;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -432,6 +432,7 @@ class FhplClaimImportService extends BaseTpaClaimImportService
|
|||||||
$item['priority'] = 1;
|
$item['priority'] = 1;
|
||||||
$item['mode_of_intimation'] = 5;
|
$item['mode_of_intimation'] = 5;
|
||||||
$item['ticket_type_id'] = 1;
|
$item['ticket_type_id'] = 1;
|
||||||
|
$item['claim_created_by'] = 'DUMP_TPA';
|
||||||
|
|
||||||
$mapped[] = $item;
|
$mapped[] = $item;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -347,6 +347,7 @@ class IciciClaimImportService extends BaseTpaClaimImportService
|
|||||||
$item['priority'] = 1;
|
$item['priority'] = 1;
|
||||||
$item['mode_of_intimation'] = 5;
|
$item['mode_of_intimation'] = 5;
|
||||||
$item['ticket_type_id'] = 1;
|
$item['ticket_type_id'] = 1;
|
||||||
|
$item['claim_created_by'] = 'DUMP_TPA';
|
||||||
|
|
||||||
$mapped[] = $item;
|
$mapped[] = $item;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -380,6 +380,7 @@ class MediAssistClaimImportService extends BaseTpaClaimImportService
|
|||||||
$item['priority'] = 1;
|
$item['priority'] = 1;
|
||||||
$item['mode_of_intimation'] = 5;
|
$item['mode_of_intimation'] = 5;
|
||||||
$item['ticket_type_id'] = 1;
|
$item['ticket_type_id'] = 1;
|
||||||
|
$item['claim_created_by'] = 'DUMP_TPA';
|
||||||
|
|
||||||
$mapped[] = $item;
|
$mapped[] = $item;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -332,7 +332,7 @@ class RcareClaimImportService extends BaseTpaClaimImportService
|
|||||||
$item['priority'] = 1;
|
$item['priority'] = 1;
|
||||||
$item['mode_of_intimation'] = 5;
|
$item['mode_of_intimation'] = 5;
|
||||||
$item['ticket_type_id'] = 1;
|
$item['ticket_type_id'] = 1;
|
||||||
|
$item['claim_created_by'] = 'DUMP_TPA';
|
||||||
|
|
||||||
$mapped[] = $item;
|
$mapped[] = $item;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -573,6 +573,7 @@ class VidalClaimImportService extends BaseTpaClaimImportService
|
|||||||
$item['priority'] = 1;
|
$item['priority'] = 1;
|
||||||
$item['mode_of_intimation'] = 5;
|
$item['mode_of_intimation'] = 5;
|
||||||
$item['ticket_type_id'] = 1;
|
$item['ticket_type_id'] = 1;
|
||||||
|
$item['claim_created_by'] = 'DUMP_TPA';
|
||||||
|
|
||||||
$mapped[] = $item;
|
$mapped[] = $item;
|
||||||
}
|
}
|
||||||
@ -687,6 +688,7 @@ class VidalClaimImportService extends BaseTpaClaimImportService
|
|||||||
$item['file_id'] = $file_id;
|
$item['file_id'] = $file_id;
|
||||||
$item['created_by'] = get_session_userid() ?? null;
|
$item['created_by'] = get_session_userid() ?? null;
|
||||||
$item['claim_type'] = isset($row['mainclaim_prepost_type']) && !empty($row['mainclaim_prepost_type']) && strtolower($row['mainclaim_prepost_type']) == 'normal' ? 1 : 3;
|
$item['claim_type'] = isset($row['mainclaim_prepost_type']) && !empty($row['mainclaim_prepost_type']) && strtolower($row['mainclaim_prepost_type']) == 'normal' ? 1 : 3;
|
||||||
|
$item['claim_created_by'] = 'DUMP_TPA';
|
||||||
|
|
||||||
$mapped[] = $item;
|
$mapped[] = $item;
|
||||||
|
|
||||||
|
|||||||
@ -95,6 +95,8 @@ class TicketMasterModel extends Model
|
|||||||
'tpa_ailments',
|
'tpa_ailments',
|
||||||
'claim_dump_ref_id',
|
'claim_dump_ref_id',
|
||||||
'last_updated_by',
|
'last_updated_by',
|
||||||
|
'tpa_shortfall_no',
|
||||||
|
'claim_created_by',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user