refactor: refs #6739 fix redirect transferInvoice
This commit is contained in:
parent
975c844d65
commit
31f8ab7c07
|
@ -70,13 +70,17 @@ const makeInvoice = async () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
if (!response) {
|
if (!response) {
|
||||||
|
console.log('entra cuando no checkbox');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('params: ', params);
|
||||||
const { data } = await axios.post('InvoiceOuts/transferInvoice', params);
|
const { data } = await axios.post('InvoiceOuts/transferInvoice', params);
|
||||||
|
console.log('data: ', data);
|
||||||
notify(t('Transferred invoice'), 'positive');
|
notify(t('Transferred invoice'), 'positive');
|
||||||
if (data.id) router.push({ name: 'InvoiceOutSummary', params: { id: data.id } });
|
const id = data?.[0];
|
||||||
|
if (id) router.push({ name: 'InvoiceOutSummary', params: { id } });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Error transfering invoice', err);
|
console.error('Error transfering invoice', err);
|
||||||
}
|
}
|
||||||
|
@ -204,7 +208,7 @@ const makeInvoice = async () => {
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
checkInfo: New tickets from the destination customer will be generated in the consignee by default.
|
checkInfo: New tickets from the destination customer will be generated in the consignee by default.
|
||||||
transferInvoiceInfo: Destination customer is marked to bill in the consignee, do you want to continue?
|
transferInvoiceInfo: Destination customer is marked to bill in the consignee
|
||||||
confirmTransferInvoice: The destination customer has selected to bill in the consignee, do you want to continue?
|
confirmTransferInvoice: The destination customer has selected to bill in the consignee, do you want to continue?
|
||||||
es:
|
es:
|
||||||
Transfer invoice: Transferir factura
|
Transfer invoice: Transferir factura
|
||||||
|
|
Loading…
Reference in New Issue