diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue index 0d9e2aef6..eae41d789 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue @@ -121,7 +121,7 @@ const refundInvoice = async (withWarehouse) => { try { const params = { ref: $props.invoiceOutData.ref, withWarehouse: withWarehouse }; const { data } = await axios.post('InvoiceOuts/refund', params); - location.href = `${salixUrl.value}ticket/${data[0].id}/sale`; + location.href = window.origin + `/#/ticket/${data[0].id}/sale`; notify( t('refundInvoiceSuccessMessage', { refundTicket: data[0].id, @@ -140,13 +140,15 @@ const showTransferInvoiceForm = async () => { componentProps: { invoiceOutData: $props.invoiceOutData, }, - }) -} + }); +};