FIX_LIVE_CLAIM_ISSUES

This commit is contained in:
velz 2026-04-20 15:20:24 +05:30
parent 1f17184365
commit a45abd188f
4 changed files with 25 additions and 8 deletions

View File

@ -2409,13 +2409,16 @@ class EmployeeRestController extends AdminController
$client_id = $this->request->getGet('client_id') ?? null;
$data['claim_status'] = $this->claimStatusModel
->select('id,ticket_type, display_name as claim_status')
->where('is_active', 1)
->where('display_name IS NOT NULL OR display_name <> ""')
->whereIn('claim_status_id',[1,2,3,4])
->groupBy('display_name')
->findAll();
$data['claim_status'] = $this->claimStatusModel
->select('id, ticket_type, display_name as claim_status')
->where('is_active', 1)
->groupStart()
->where('display_name IS NOT NULL')
->orWhere('display_name <>', '')
->groupEnd()
->whereIn('ticket_type', [1,2,3,4])
->groupBy('display_name')
->findAll();
if (!empty($client_id)) {

View File

@ -704,7 +704,7 @@ class MediAssistApiController extends BaseController
if (count($fileData)) {
foreach ($fileData as $file) {
if (!empty($file['url'])) {
if (!empty($file['url']) && $file['file_type'] == 2) {
$filename = basename($file['url']);
$fileDir = WRITEPATH . 'uploads/claim_files/' . $filename;

View File

@ -2326,6 +2326,10 @@ class RestAuthenticationController extends AdminController
public function logout()
{
return $this->respond([
'status' => true,
'message' => 'Logged out successfully'
], 200);
$authHeader = $this->request->getHeaderLine('Authorization');
if (!$authHeader) {

View File

@ -465,15 +465,23 @@
let ticket_master_id = $('#ticket_master_id').val();
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 = {
claim_id: ticket_master_id,
};
let url = '<?= base_url('ticket/getTpaClaimStatus') ?>';
$('.loader').fadeIn();
$('.loader-mask').fadeIn();
// Send AJAX request
sendAjaxRequestForGlobal(url, 'GET', requestData, function(response) {
$('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow');
console.log('Data fetched successfully:', response);
@ -485,6 +493,8 @@
}
}, function(xhr, status, error) {
$('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow');
console.error('Error fetching data:', error);
console.error(xhr.responseText);
toastr.error('An error occurred while saving docs.', 'Error');