diff --git a/src/pages/InvoiceIn/Card/InvoiceInVat.vue b/src/pages/InvoiceIn/Card/InvoiceInVat.vue index 6f04a5415..38e639f46 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInVat.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInVat.vue @@ -55,15 +55,9 @@ const columns = computed(() => [ if (evt.key !== 'Tab') return; const val = evt.target.value; if (!val || isNaN(val)) return; - row.expenseFk = ( - await axios.get(`Expenses`, { - params: { - filter: JSON.stringify({ - where: { id: useAccountShortToStandard(val) }, - }), - }, - }) - ).data[0].id; + row.expenseFk = expenses.value.find( + (e) => e.id === useAccountShortToStandard(val), + )?.id; }, }, },