From 81ed679a2bb1e0bd8e89a8462f453bcce933c6fc Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 9 Aug 2024 09:11:35 +0200 Subject: [PATCH] chore: refs #6900 mv rectificative logic --- src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue index e2a4fde04..b68069cf8 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue @@ -131,8 +131,6 @@ onBeforeMount(async () => { onBeforeRouteUpdate(async (to, from) => { if (to.params.id !== from.params.id) { - invoiceInCorrection.correcting.length = 0; - invoiceInCorrection.corrected = null; await setInvoiceCorrection(to.params.id); const { data } = await axios.get(`InvoiceIns/${to.params.id}/getTotals`); totalAmount.value = data.totalDueDay; @@ -140,6 +138,8 @@ onBeforeRouteUpdate(async (to, from) => { }); async function setInvoiceCorrection(id) { + invoiceInCorrection.correcting.length = 0; + invoiceInCorrection.corrected = null; const { data: correctingData } = await axios.get('InvoiceInCorrections', { params: { filter: { where: { correctingFk: id } } }, });