@@ -78,7 +81,7 @@ {{item.transactionTypeCode.replace("
-
+
diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss
index 45a08b16..f5fce594 100644
--- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss
+++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss
@@ -197,7 +197,8 @@ caption {
.popup-box {
background: #ffffff;
width: 700px;
- height: 180px;
+ min-height: 220px;
+ max-height: 500px;
border-radius: 0;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
display: flex;
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 5d091725..2d602393 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,6 +21,7 @@ export class PacketStatusComponent implements OnInit {
// status: 'Completed'
// }
];
+ showMatchedRid: boolean = false;
roles: string[] = [];
showDetails = false;
showTimeline = false;
@@ -96,7 +97,8 @@ export class PacketStatusComponent implements OnInit {
console.log("status for ", this.data[i].transactionTypeCode, "is ", this.statusCheck);
this.error = false;
this.showDetails = true;
- console.log("Final status is ", this.statusCheck)
+
+ this.showMatchedRid = this.data.some(item =>item.transactionTypeCode === 'MANUAL_ADJUDICATION' );
}
});
}
@@ -131,6 +133,33 @@ export class PacketStatusComponent implements OnInit {
});
}
+ getMatchedRid() {
+ if (!this.id) {
+ this.error = true;
+ this.errorMessage = 'Invalid packet id';
+ return;
+ }
+ this.dataStorageService.getMatchedPacketRid(this.id, this.headerService.getUserPreferredLanguage()).subscribe({
+ next: (response) => {
+ console.log('Get Matched RID API Response:', response);
+ this.error = false;
+ const res: any = response;
+ let message = res.response.message;
+ if (!message[0].startsWith('No')) {
+ let formattedMessage = '';
+ if (message[0].startsWith('Biometric')) {
+ formattedMessage = message.join('
');
+ } else {
+ formattedMessage = "Matched RID's:
" + message.map(rid => `'${rid}'`).join('
');
+ }
+ this.showPopup('Success', formattedMessage , 'Close', 'success');
+ } else {
+ this.showPopup('Error', message, 'Close', 'error');
+ }
+ }
+ });
+ }
+
showPopup(title: string, message: string, buttonText: string, type: 'success' | 'error') {
this.popupTitle = title;
this.popupMessage = message;
diff --git a/admin-ui/src/assets/i18n/eng.json b/admin-ui/src/assets/i18n/eng.json
index 87972ff1..b8333192 100644
--- a/admin-ui/src/assets/i18n/eng.json
+++ b/admin-ui/src/assets/i18n/eng.json
@@ -509,6 +509,7 @@
"viewMore": "View More",
"viewLess": "View Less",
"resume": "Resume",
+ "matchedRid":"MA Matches",
"errorMessages": {
"title": "Error",
"message": "RID Not Found",
@@ -1448,7 +1449,7 @@
"RPR-MVS-FAILED-002": "Manual verification from MVS failed",
"RPR-DDP-FAILED-002": "Potential Demo Match was Found",
"RPR-MNV-SUCCESS-001": "Match Not Found by Manual Verifier",
- "RPR-MNV-FAILED-001": "Match Found by Manual Verifier",
+ "RPR-MNV-FAILED-002": "Match Found by Manual Verifier",
"RPR-UIN-SUCCESS-001": "UIN Generated Successfully",
"RPR-UIN-SUCCESS-002": "UIN Data is Updated Successfully",
"RPR-UIN-FAILED-001": "UIN is already Activated",