diff --git a/src/components/TransferInvoiceForm.vue b/src/components/TransferInvoiceForm.vue index b3c40b696..279ed822d 100644 --- a/src/components/TransferInvoiceForm.vue +++ b/src/components/TransferInvoiceForm.vue @@ -80,6 +80,16 @@ const handleScroll = async () => { } }; const transferInvoice = async () => { + const params = { + id: transferInvoiceParams.id, + cplusRectificationTypeFk: transferInvoiceParams.cplusRectificationTypeFk, + invoiceCorrectionTypeFk: transferInvoiceParams.invoiceCorrectionTypeFk, + newClientFk: transferInvoiceParams.newClientFk, + refFk: transferInvoiceParams.refFk, + siiTypeInvoiceOutFk: transferInvoiceParams.siiTypeInvoiceOutFk, + checked: checked.value, + }; + try { const clientDetails = await axios.get( `Clients/${transferInvoiceParams.newClientFk}` @@ -94,10 +104,7 @@ const transferInvoice = async () => { }, }); - const { data } = await axios.post( - 'InvoiceOuts/transferInvoice', - transferInvoiceParams - ); + const { data } = await axios.post('InvoiceOuts/transferInvoice', params); notify(t('Transferred invoice'), 'positive'); closeForm(); router.push('InvoiceOutSummary', { id: data.id });