FIX_LIVE_CLAIM_ISSUES
This commit is contained in:
parent
1f17184365
commit
a45abd188f
@ -2409,13 +2409,16 @@ class EmployeeRestController extends AdminController
|
|||||||
$client_id = $this->request->getGet('client_id') ?? null;
|
$client_id = $this->request->getGet('client_id') ?? null;
|
||||||
|
|
||||||
|
|
||||||
$data['claim_status'] = $this->claimStatusModel
|
$data['claim_status'] = $this->claimStatusModel
|
||||||
->select('id,ticket_type, display_name as claim_status')
|
->select('id, ticket_type, display_name as claim_status')
|
||||||
->where('is_active', 1)
|
->where('is_active', 1)
|
||||||
->where('display_name IS NOT NULL OR display_name <> ""')
|
->groupStart()
|
||||||
->whereIn('claim_status_id',[1,2,3,4])
|
->where('display_name IS NOT NULL')
|
||||||
->groupBy('display_name')
|
->orWhere('display_name <>', '')
|
||||||
->findAll();
|
->groupEnd()
|
||||||
|
->whereIn('ticket_type', [1,2,3,4])
|
||||||
|
->groupBy('display_name')
|
||||||
|
->findAll();
|
||||||
|
|
||||||
if (!empty($client_id)) {
|
if (!empty($client_id)) {
|
||||||
|
|
||||||
|
|||||||
@ -704,7 +704,7 @@ class MediAssistApiController extends BaseController
|
|||||||
if (count($fileData)) {
|
if (count($fileData)) {
|
||||||
foreach ($fileData as $file) {
|
foreach ($fileData as $file) {
|
||||||
|
|
||||||
if (!empty($file['url'])) {
|
if (!empty($file['url']) && $file['file_type'] == 2) {
|
||||||
$filename = basename($file['url']);
|
$filename = basename($file['url']);
|
||||||
$fileDir = WRITEPATH . 'uploads/claim_files/' . $filename;
|
$fileDir = WRITEPATH . 'uploads/claim_files/' . $filename;
|
||||||
|
|
||||||
|
|||||||
@ -2326,6 +2326,10 @@ class RestAuthenticationController extends AdminController
|
|||||||
|
|
||||||
public function logout()
|
public function logout()
|
||||||
{
|
{
|
||||||
|
return $this->respond([
|
||||||
|
'status' => true,
|
||||||
|
'message' => 'Logged out successfully'
|
||||||
|
], 200);
|
||||||
$authHeader = $this->request->getHeaderLine('Authorization');
|
$authHeader = $this->request->getHeaderLine('Authorization');
|
||||||
|
|
||||||
if (!$authHeader) {
|
if (!$authHeader) {
|
||||||
|
|||||||
@ -465,15 +465,23 @@
|
|||||||
|
|
||||||
let ticket_master_id = $('#ticket_master_id').val();
|
let ticket_master_id = $('#ticket_master_id').val();
|
||||||
console.log({ticket_master_id});
|
console.log({ticket_master_id});
|
||||||
|
if (!ticket_master_id) {
|
||||||
|
toastr.warning('Claim ID not found. Please ensure the form is loaded.', 'Warning');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let requestData = {
|
let requestData = {
|
||||||
claim_id: ticket_master_id,
|
claim_id: ticket_master_id,
|
||||||
};
|
};
|
||||||
|
|
||||||
let url = '<?= base_url('ticket/getTpaClaimStatus') ?>';
|
let url = '<?= base_url('ticket/getTpaClaimStatus') ?>';
|
||||||
|
$('.loader').fadeIn();
|
||||||
|
$('.loader-mask').fadeIn();
|
||||||
|
|
||||||
// Send AJAX request
|
// Send AJAX request
|
||||||
sendAjaxRequestForGlobal(url, 'GET', requestData, function(response) {
|
sendAjaxRequestForGlobal(url, 'GET', requestData, function(response) {
|
||||||
|
$('.loader').fadeOut();
|
||||||
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
|
|
||||||
console.log('Data fetched successfully:', response);
|
console.log('Data fetched successfully:', response);
|
||||||
|
|
||||||
@ -485,6 +493,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}, function(xhr, status, error) {
|
}, function(xhr, status, error) {
|
||||||
|
$('.loader').fadeOut();
|
||||||
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
console.error('Error fetching data:', error);
|
console.error('Error fetching data:', error);
|
||||||
console.error(xhr.responseText);
|
console.error(xhr.responseText);
|
||||||
toastr.error('An error occurred while saving docs.', 'Error');
|
toastr.error('An error occurred while saving docs.', 'Error');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user