From 50dab045f02139f1757bbb2676e63ec6454558c5 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 28 Nov 2024 15:00:29 +0100 Subject: [PATCH] feat: refs #7936 add currency check before fetching --- src/pages/InvoiceIn/Card/InvoiceInVat.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInVat.vue b/src/pages/InvoiceIn/Card/InvoiceInVat.vue index 977d628b4..06219aa77 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInVat.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInVat.vue @@ -256,12 +256,12 @@ const formatOpt = (row, { model, options }, prop) => { v-model="row.foreignValue" @update:model-value=" async (val) => { - const exchange = await getExchange( + if (!isNotEuro(currency)) return; + row.taxableBase = await getExchange( val, row.currencyFk, invoiceIn.issued ); - row.taxableBase = exchange; } " />