From 87d458e196cc45796eb041dd833fcab04edad25b Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 5 Mar 2024 09:23:14 +0100 Subject: [PATCH] feat: refs #6942 vat rate total --- src/pages/InvoiceIn/Card/InvoiceInVat.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInVat.vue b/src/pages/InvoiceIn/Card/InvoiceInVat.vue index 0a817b8fc..50832909f 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInVat.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInVat.vue @@ -156,6 +156,7 @@ async function addExpense() { } } const getTotalTaxableBase = (rows) => rows.reduce((acc, cur) => acc + cur.taxableBase, 0); +const getTotalRate = (rows) => rows.reduce((acc, cur) => acc + taxRate(cur), 0);