From eb554f98785ae9690867c18edabbc49254c78248 Mon Sep 17 00:00:00 2001 From: Jagadeesh-T440 Date: Fri, 3 Jul 2026 10:44:22 +0530 Subject: [PATCH 1/2] Update packet-status.component.html --- .../packet-status/packet-status/packet-status.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html index 1f84727..9751385 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html @@ -13,7 +13,7 @@ - {{errorMessage | translate}} From 120a34a4ab2932e794c04d49bbabd1cfe2b37e90 Mon Sep 17 00:00:00 2001 From: Jagadeesh-T440 Date: Fri, 3 Jul 2026 10:45:14 +0530 Subject: [PATCH 2/2] Update packet-status.component.ts --- .../packet-status/packet-status.component.ts | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts index d270a6d..7c415eb 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.ts @@ -21,7 +21,6 @@ export class PacketStatusComponent implements OnInit { // status: 'Completed' // } ]; - hideMatchedRid: boolean = true; showMatchedRid: boolean = false; showSendToPerso: boolean = false; roles: string[] = []; @@ -101,17 +100,29 @@ export class PacketStatusComponent implements OnInit { this.showDetails = true; console.log("Final status is ", this.statusCheck) - this.showSendToPerso = this.data.some(item =>item.transactionTypeCode === 'PRINT_SERVICE' && + this.showSendToPerso = this.data.some(item =>item.transactionTypeCode === 'PRINT_SERVICE' && item.statusCode === 'PROCESSED' || item.statusCode === 'COMPLETED'); - this.showMatchedRid = this.data.some(item =>item.transactionTypeCode === 'MANUAL_ADJUDICATION' ); - this.hideMatchedRid = !this.data.some(item =>item.transactionTypeCode === 'MANUAL_ADJUDICATION' - && item.statusCode === 'SUCCESS'); + this.showMatchedRid = this.getShowMatchedRid(this.data); } }); } } + getShowMatchedRid(data: any[]): boolean { + const maList = this.data.filter(item => item.transactionTypeCode === 'MANUAL_ADJUDICATION'); + if (maList.length > 0) { + const latestMA = maList[maList.length - 1]; + if (latestMA.statusCode === 'SUCCESS') { + return false; + } else { + return true; + } + } else { + return false; + } + } + viewMore() { this.showTimeline = !this.showTimeline; }