GWM : tpa claims push status display
This commit is contained in:
parent
01d83a1f3e
commit
0c5e46736d
@ -509,6 +509,7 @@ class TicketController extends BaseController
|
||||
'tm.is_head_approved',
|
||||
'tcs.claim_status AS status',
|
||||
'tm.claim_number AS claim_no',
|
||||
'tm.tpa_claim_push_reference_no',
|
||||
'tm.tpa_id',
|
||||
'tm.tpa_no',
|
||||
'tm.emp_name',
|
||||
@ -650,6 +651,7 @@ class TicketController extends BaseController
|
||||
'tm.ticket_type_id',
|
||||
'tcs.claim_status AS status',
|
||||
'tm.claim_number AS claim_no',
|
||||
'tm.tpa_claim_push_reference_no',
|
||||
'tm.claim_status_id',
|
||||
'tm.claim_created_by',
|
||||
'tm.is_head_approved',
|
||||
|
||||
@ -86,6 +86,13 @@ table.dataTable tbody td {
|
||||
color: #9d174d;
|
||||
}
|
||||
|
||||
.tpa-push-status-item {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
cursor: default;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
</style>
|
||||
<style>
|
||||
.table th:nth-child(1),
|
||||
@ -331,6 +338,10 @@ table.dataTable tbody td {
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="showTpaClaimPushLogs(event, '<?= htmlspecialchars($row['id'], ENT_QUOTES) ?>')">
|
||||
<i class="mdi mdi-text-box-search-outline mr-2 text-muted font-18 vertical-middle"></i>TPA Push Logs
|
||||
</a>
|
||||
<?php $tpaPushSuccess = !empty($row['tpa_claim_push_reference_no']); ?>
|
||||
<span class="dropdown-item-text tpa-push-status-item px-3 py-2 <?= $tpaPushSuccess ? 'text-success' : 'text-danger' ?>">
|
||||
TPA PUSH : <?= $tpaPushSuccess ? 'Success.' : 'Failed.' ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
@ -435,6 +446,14 @@ function getStatusTooltip(row) {
|
||||
return status;
|
||||
}
|
||||
|
||||
function getTpaPushStatusMenuItem(row) {
|
||||
var ref = row.tpa_claim_push_reference_no;
|
||||
var isSuccess = ref !== null && ref !== undefined && String(ref).trim() !== '';
|
||||
var statusClass = isSuccess ? 'text-success' : 'text-danger';
|
||||
var statusLabel = isSuccess ? 'TPA PUSH : Success.' : 'TPA PUSH : Failed.';
|
||||
return '<span class="dropdown-item-text tpa-push-status-item px-3 py-2 ' + statusClass + '">' + escapeHtml(statusLabel) + '</span>';
|
||||
}
|
||||
|
||||
function getActionCell(row) {
|
||||
if (!window.ticketTableIsDeleteEnabled) return '';
|
||||
var id = escapeHtml(row.id || '');
|
||||
@ -449,6 +468,7 @@ function getActionCell(row) {
|
||||
' <a class="dropdown-item" href="javascript:void(0);" onclick="showTpaClaimPushLogs(event, \'' + id + '\')">' +
|
||||
' <i class="mdi mdi-text-box-search-outline mr-2 text-muted font-18 vertical-middle"></i>TPA Push Logs' +
|
||||
' </a>' +
|
||||
getTpaPushStatusMenuItem(row) +
|
||||
' </div>' +
|
||||
' </div>' +
|
||||
'</td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user