Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transport Permit, Amend and Cancel: Folio Payload #2017

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading