From a3a8b671073e25d373e5a6944bfeaf24a07d626c Mon Sep 17 00:00:00 2001 From: Cameron Bowler Date: Thu, 3 Oct 2024 12:28:22 -0700 Subject: [PATCH 1/3] TP-Include clientRef for QS --- package-lock.json | 6 ++++++ ppr-ui/package-lock.json | 4 ++-- ppr-ui/package.json | 2 +- .../src/composables/mhrInformation/useTransportPermits.ts | 6 +++++- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..4d206096a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "ppr", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/ppr-ui/package-lock.json b/ppr-ui/package-lock.json index 4f81c1119..c26b26d7c 100644 --- a/ppr-ui/package-lock.json +++ b/ppr-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "ppr-ui", - "version": "3.2.60", + "version": "3.2.61", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ppr-ui", - "version": "3.2.60", + "version": "3.2.61", "dependencies": { "@bcrs-shared-components/input-field-date-picker": "^1.0.0", "@lemoncode/fonk": "^1.5.1", diff --git a/ppr-ui/package.json b/ppr-ui/package.json index 8b56c58a4..a9c4756aa 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "3.2.60", + "version": "3.2.61", "private": true, "appName": "Assets UI", "sbcName": "SBC Common Components", diff --git a/ppr-ui/src/composables/mhrInformation/useTransportPermits.ts b/ppr-ui/src/composables/mhrInformation/useTransportPermits.ts index 6533a98be..80fb6d986 100644 --- a/ppr-ui/src/composables/mhrInformation/useTransportPermits.ts +++ b/ppr-ui/src/composables/mhrInformation/useTransportPermits.ts @@ -43,7 +43,8 @@ export const useTransportPermits = () => { getMhrAccountSubmittingParty, getMhrRegistrationLocation, getMhrTransportPermitPreviousLocation, - getStaffPayment + getStaffPayment, + getMhrTransferAttentionReference } = storeToRefs(useStore()) const { @@ -224,6 +225,9 @@ export const useTransportPermits = () => { ...(isRoleStaffReg.value && !!getStaffPayment.value && { clientReferenceId: getStaffPayment.value.folioNumber }), + ...(isRoleQualifiedSupplier.value && { + clientReferenceId: getMhrTransferAttentionReference.value + }), submittingParty: { ...submittingParty, phoneNumber: fromDisplayPhone(submittingParty?.phoneNumber) From d102128f1a6458d48056d1bcdab550f3a8f26a06 Mon Sep 17 00:00:00 2001 From: Cameron Bowler Date: Thu, 3 Oct 2024 12:31:54 -0700 Subject: [PATCH 2/3] remove accidental plock --- package-lock.json | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 4d206096a..000000000 --- a/package-lock.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "ppr", - "lockfileVersion": 3, - "requires": true, - "packages": {} -} From bfcb778a7e739456004e6ecd85b596818ee9821f Mon Sep 17 00:00:00 2001 From: Cameron Bowler Date: Thu, 3 Oct 2024 12:33:37 -0700 Subject: [PATCH 3/3] add fallback --- ppr-ui/src/composables/mhrInformation/useTransportPermits.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppr-ui/src/composables/mhrInformation/useTransportPermits.ts b/ppr-ui/src/composables/mhrInformation/useTransportPermits.ts index 80fb6d986..71c6335ba 100644 --- a/ppr-ui/src/composables/mhrInformation/useTransportPermits.ts +++ b/ppr-ui/src/composables/mhrInformation/useTransportPermits.ts @@ -226,7 +226,7 @@ export const useTransportPermits = () => { clientReferenceId: getStaffPayment.value.folioNumber }), ...(isRoleQualifiedSupplier.value && { - clientReferenceId: getMhrTransferAttentionReference.value + clientReferenceId: getMhrTransferAttentionReference.value || '' }), submittingParty: { ...submittingParty,