#7197 fixInvoiceIn #466

Merged
jorgep merged 36 commits from 7197-fixInvoiceIn into dev 2024-07-29 07:44:05 +00:00
1 changed files with 6 additions and 20 deletions
Showing only changes of commit 0a6717171c - Show all commits

View File

@ -136,26 +136,12 @@ onBeforeRouteUpdate(async (to, from) => {
});
async function setInvoiceCorrection(id) {
const [{ data: correctingData }, { data: correctedData }] = await Promise.all([
axios.get('InvoiceInCorrections', {
params: {
filter: {
where: {
correctingFk: id,
},
},
},
}),
axios.get('InvoiceInCorrections', {
params: {
filter: {
where: {
correctedFk: id,
},
},
},
}),
]);
const { data: correctingData } = await axios.get('InvoiceInCorrections', {
params: { filter: { where: { correctingFk: id } } },
});
const { data: correctedData } = await axios.get('InvoiceInCorrections', {
params: { filter: { where: { correctedFk: id } } },
Review

No acaba de ser reactivo de la forma anterior.

No acaba de ser reactivo de la forma anterior.
});
if (correctingData[0]) invoiceInCorrection.corrected = correctingData[0].correctedFk;