0
0
Fork 0

feat: refs #6942 vat rate total

This commit is contained in:
Jorge Penadés 2024-03-05 09:23:14 +01:00
parent 0fd83cf435
commit 87d458e196
1 changed files with 2 additions and 1 deletions

View File

@ -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);
</script>
<template>
<FetchData
@ -313,7 +314,7 @@ const getTotalTaxableBase = (rows) => rows.reduce((acc, cur) => acc + cur.taxabl
</QTd>
<QTd />
<QTd />
<QTd />
<QTd> {{ toCurrency(getTotalRate(rows)) }}</QTd>
<QTd />
</QTr>
</template>