Skip to content

Commit

Permalink
include Folio in Transport permit, amend and cancel payloads (#2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds authored Sep 4, 2024
1 parent 35e7b1b commit 0e77842
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ppr-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "3.2.51",
"version": "3.2.52",
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
Expand Down
6 changes: 5 additions & 1 deletion ppr-ui/src/composables/mhrInformation/useTransportPermits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export const useTransportPermits = () => {
getMhrInformation,
getMhrAccountSubmittingParty,
getMhrRegistrationLocation,
getMhrTransportPermitPreviousLocation
getMhrTransportPermitPreviousLocation,
getStaffPayment
} = storeToRefs(useStore())

const {
Expand Down Expand Up @@ -220,6 +221,9 @@ export const useTransportPermits = () => {

const payloadData: MhrTransportPermitIF = cloneDeep({
...getMhrTransportPermit.value,
...(isRoleStaffReg.value && !!getStaffPayment.value && {
clientReferenceId: getStaffPayment.value.folioNumber
}),
submittingParty: {
...submittingParty,
phoneNumber: fromDisplayPhone(submittingParty?.phoneNumber)
Expand Down
6 changes: 5 additions & 1 deletion ppr-ui/src/composables/mhrRegistration/useMhrCorrections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const useMhrCorrections = () => {
getMhrTransportPermitPreviousLocation,
getMhrRegistrationOwnLand,
getMhrRegistrationLocation,
getMhrRegistrationHomeOwnerGroups
getMhrRegistrationHomeOwnerGroups,
getStaffPayment
} = storeToRefs(useStore())

const { containsCurrentRoute, goToRoute } = useNavigation()
Expand Down Expand Up @@ -408,6 +409,9 @@ export const useMhrCorrections = () => {
: getMhrAccountSubmittingParty.value

const payloadData: AdminRegistrationIF = {
...(isRoleStaffReg.value && !!getStaffPayment.value && {
clientReferenceId: getStaffPayment.value.folioNumber
}),
documentType: isCancelTransportPermit
? APIRegistrationTypes.TRANSPORT_PERMIT_CANCEL
: APIRegistrationTypes.REGISTERED_LOCATION_CHANGE,
Expand Down

0 comments on commit 0e77842

Please sign in to comment.