diff --git a/src/components/TransferInvoiceForm.vue b/src/components/TransferInvoiceForm.vue index 418257304..c79c23741 100644 --- a/src/components/TransferInvoiceForm.vue +++ b/src/components/TransferInvoiceForm.vue @@ -81,8 +81,7 @@ const transferInvoice = async () => { const { data } = await axios.post('InvoiceOuts/transferInvoice', params); notify(t('Transferred invoice'), 'positive'); - closeForm(); - router.push('InvoiceOutSummary', { id: data.id }); + if (data.id) router.push({ name: 'InvoiceOutSummary', params: { id: data.id } }); } catch (err) { console.error('Error transfering invoice', err); }