From 5293195e81a7a61a76de06112a213f79b7daaa64 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Thu, 2 Nov 2023 16:51:02 +0530 Subject: [PATCH] Improved: external id is not needed at this level (#284) --- src/components/EditPickerModal.vue | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/components/EditPickerModal.vue b/src/components/EditPickerModal.vue index 7d69a6353..0b7dc0212 100644 --- a/src/components/EditPickerModal.vue +++ b/src/components/EditPickerModal.vue @@ -23,7 +23,7 @@ {{ picker.name }} -

{{ picker.externalId ? picker.externalId : picker.id }}

+

{{ picker.id }}

@@ -115,18 +115,14 @@ export default defineComponent({ firstName_op: 'contains', firstName_ic: 'Y', firstName_grp: '1', - externalId_value: this.queryString, - externalId_op: 'contains', - externalId_ic: 'Y', - externalId_grp: '2', lastName_value: this.queryString, lastName_op: 'contains', lastName_ic: 'Y', - lastName_grp: '3', + lastName_grp: '2', partyId_value: this.queryString, partyId_op: 'contains', partyId_ic: 'Y', - partyId_grp: '4', + partyId_grp: '3', } } @@ -141,7 +137,7 @@ export default defineComponent({ orderBy: "firstName ASC", filterByDate: "Y", distinct: "Y", - fieldList: ["firstName", "lastName", "partyId", "externalId"] + fieldList: ["firstName", "lastName", "partyId"] } try { @@ -149,8 +145,7 @@ export default defineComponent({ if (resp.status === 200 && !hasError(resp)) { this.availablePickers = resp.data.docs.map((picker: any) => ({ name: picker.firstName + ' ' + picker.lastName, - id: picker.partyId, - externalId: picker.externalId + id: picker.partyId })) } else { throw resp.data