Format summary row in balance

This commit is contained in:
Matthias 2020-05-14 07:16:07 +02:00
parent 5fdad10b83
commit 108824085c

View File

@ -4,10 +4,12 @@
<div class="card-body">
<b-table class="table-sm" :items="balance.currencies" :fields="table_fields">
<template slot="bottom-row">
<td>Total</td>
<td><strong>Total</strong></td>
<td></td>
<!-- this is a computed prop that adds up all the expenses in the visible rows -->
<td>{{ formatCurrency(balance.total) }}</td>
<td>
<strong>{{ formatCurrency(balance.total) }}</strong>
</td>
</template>
</b-table>
</div>