Add available balance

This commit is contained in:
2021-12-07 20:22:40 +00:00
parent 1d4bc158a8
commit 64822912d9
7 changed files with 116 additions and 13 deletions

View File

@ -19,12 +19,16 @@
<a href="{{printf "/budget/%s" .Budget.ID}}">Current Month</a> -
<a href="{{printf "/budget/%s/%d/%d" .Budget.ID .Next.Year .Next.Month}}">Next Month</a>
</div>
<div>
<span>Available Balance: </span>{{template "amount" .AvailableBalance}}
</div>
<table class="container col-lg-12" id="content">
<tr>
<th>Group</th>
<th>Category</th>
<th></th>
<th></th>
<th>Assigned</th>
<th>Balance</th>
<th>Activity</th>
</tr>
@ -36,6 +40,7 @@
</td>
<td>
</td>
{{template "amount-cell" .Assigned}}
{{template "amount-cell" .Balance}}
{{template "amount-cell" .Activity}}
</tr>