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(); }