feat: refs #6739 transferInvoice new checkbox and functionality #352

Merged
jon merged 28 commits from 6739-invoiceOut into dev 2024-06-25 12:46:21 +00:00
1 changed files with 6 additions and 2 deletions
Showing only changes of commit 31f8ab7c07 - Show all commits

View File

@ -70,13 +70,17 @@ const makeInvoice = async () => {
});
});
if (!response) {
console.log('entra cuando no checkbox');
return;
}
}
jon marked this conversation as resolved Outdated
Outdated
Review

Al usar la propiedad url de VnSelect se evita este código

Al usar la propiedad `url` de `VnSelect` se evita este código
console.log('params: ', params);
const { data } = await axios.post('InvoiceOuts/transferInvoice', params);
Outdated
Review

data.?id
Data puede que sea null

data.?id Data puede que sea null
console.log('data: ', data);
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) {
console.error('Error transfering invoice', err);
}
@ -204,7 +208,7 @@ const makeInvoice = async () => {
<i18n>
en:
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?
es:
Transfer invoice: Transferir factura