From b6e8658de9a3d65fdeb5294243ab2760958eaeb9 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 9 Nov 2023 15:17:09 +0100 Subject: [PATCH] ref #5835 fix due-day --- src/pages/InvoiceIn/Card/InvoiceInDueDay.vue | 10 ++------- .../invoiceIn/invoiceInDueDay.spec.js | 21 ++++++++++--------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue index ba6287c4d..e047876f3 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue @@ -65,16 +65,10 @@ const columns = computed(() => [ ]); const isNotEuro = (code) => code != 'EUR'; -const areRows = ref(null); async function insert() { - if (!areRows.value) { - await axios.post('/InvoiceInDueDays/new ', { id: Number(invoiceId) }); - await invoiceInFormRef.value.reload(); - } - if (areRows.value) { - invoiceInFormRef.value.insert(); - } + await axios.post('/InvoiceInDueDays/new ', { id: Number(invoiceId) }); + await invoiceInFormRef.value.reload(); }