diff --git a/ppr-ui/src/utils/mhr-api-helper.ts b/ppr-ui/src/utils/mhr-api-helper.ts index f12c159d6..9e27e98b6 100644 --- a/ppr-ui/src/utils/mhr-api-helper.ts +++ b/ppr-ui/src/utils/mhr-api-helper.ts @@ -407,9 +407,10 @@ export async function validateDocumentID (documentId: string) { } } -export async function submitMhrTransfer (payloadData, mhrNumber) { +export async function submitMhrTransfer (payloadData, mhrNumber, staffPayment) { + const paymentParams = `?${mhrStaffPaymentParameters(staffPayment)}` try { - const result = await axios.post(`transfers/${mhrNumber}`, payloadData, getDefaultConfig()) + const result = await axios.post(`transfers/${mhrNumber}${paymentParams}`, payloadData, getDefaultConfig()) if (!result?.data) { throw new Error('Invalid API response') } diff --git a/ppr-ui/src/views/mhrInformation/MhrInformation.vue b/ppr-ui/src/views/mhrInformation/MhrInformation.vue index a2dbee04f..654875c9e 100644 --- a/ppr-ui/src/views/mhrInformation/MhrInformation.vue +++ b/ppr-ui/src/views/mhrInformation/MhrInformation.vue @@ -764,7 +764,8 @@ export default defineComponent({ } localState.loading = true const apiData = await buildApiData() - const mhrTransferFiling = await submitMhrTransfer(apiData, getMhrInformation.value.mhrNumber) + const mhrTransferFiling = + await submitMhrTransfer(apiData, getMhrInformation.value.mhrNumber, localState.staffPayment) localState.loading = false if (!mhrTransferFiling.error) { setUnsavedChanges(false)