MERGE_TEST_SAML

This commit is contained in:
Ubuntu 2026-04-21 15:35:16 +05:30
commit 72c2824975

View File

@ -3925,7 +3925,6 @@ class EmployeeRestController extends AdminController
$count = $this->ticketMaster->where('id', $ticket_id)->where('is_active', 1)->where('tpa_claim_push_reference_no IS NULL')->countAllResults();
log_message('error', 'Ticket validation | Ticket ID: ' . $ticket_id . ' | Matching active tickets with NULL TPA reference: ' . $count);
if ($count > 0 && $pdf_exist_in_the_file && $tpa_claim_push == true) {
try {
// this call for TPA integration
@ -3945,6 +3944,16 @@ class EmployeeRestController extends AdminController
}
}
if($tpa_claim_push == false){
try {
// this call for TPA integration Multiple document push for IR DOCUMENTS
$apiServiceController = new ApiServiceController();
$apiServiceController->pushClaimFiles($ticket_id);
log_message('error', "pushClaimFiles IR FILE SUBMISSION function called with Ticket ID: {$ticket_id}, In Employee Rest Controller");
} catch (\Throwable $e) {
log_message('error', "Error in TPA Claim Files Push via CRM : ApiServiceController pushClaims function call for Ticket ID: {$ticket_id}. Error: " . $e->getMessage() . " Trace: " . $e->getTraceAsString());
}
}
return $insert_ids;
}