forked from verdnatura/salix-front
feat: refs #6942 vat rate total
This commit is contained in:
parent
0fd83cf435
commit
87d458e196
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue