From 42b86f05ce9a6d9eaa832082d68699c950bb9baf Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 31 Jan 2025 12:53:38 +0100 Subject: [PATCH 01/17] fix: refs #8388 improve table column widths --- src/pages/InvoiceIn/Card/InvoiceInVat.vue | 32 ++++++++++++++++------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInVat.vue b/src/pages/InvoiceIn/Card/InvoiceInVat.vue index f99e060b8..bbb9c8727 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInVat.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInVat.vue @@ -117,7 +117,7 @@ const isNotEuro = (code) => code != 'EUR'; function taxRate(invoiceInTax) { const sageTaxTypeId = invoiceInTax.taxTypeSageFk; const taxRateSelection = sageTaxTypes.value.find( - (transaction) => transaction.id == sageTaxTypeId + (transaction) => transaction.id == sageTaxTypeId, ); const taxTypeSage = taxRateSelection?.rate ?? 0; const taxableBase = invoiceInTax?.taxableBase ?? 0; @@ -131,14 +131,14 @@ function autocompleteExpense(evt, row, col) { const param = isNaN(val) ? row[col.model] : val; const lookup = expenses.value.find( - ({ id }) => id == useAccountShortToStandard(param) + ({ id }) => id == useAccountShortToStandard(param), ); expenseRef.value.vnSelectDialogRef.vnSelectRef.toggleOption(lookup); } -const taxableBaseTotal = computed(() => { - return getTotal(invoiceInFormRef.value.formData, 'taxableBase', ); +const taxableBaseTotal = computed(() => { + return getTotal(invoiceInFormRef.value.formData, 'taxableBase'); }); const taxRateTotal = computed(() => { @@ -147,13 +147,9 @@ const taxRateTotal = computed(() => { }); }); - const combinedTotal = computed(() => { return +taxableBaseTotal.value + +taxRateTotal.value; }); - - -