mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2024-12-27 21:58:11 +01:00
potential savongs expressed as % of total income
This commit is contained in:
parent
9a61003a57
commit
2100c2c893
1 changed files with 29 additions and 17 deletions
|
@ -63,7 +63,19 @@
|
|||
data-ng-if="account.percentage <= 100"></md-progress-linear>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table" style="width: 100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 11%">Account</th>
|
||||
<th style="width: 3%">Can be saved</th>
|
||||
<th style="width: 3%">Total income</th>
|
||||
<th style="width: 3%">Percentage</th>
|
||||
<th>Progress</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
Potential savings
|
||||
|
@ -72,14 +84,14 @@
|
|||
{{balance.buckets[1].raw_total - total_budget - total_unbudgeted | number:2}}{{budget[0].currency}}
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
{{balance.buckets[1].raw_total - total_budget | number:2}}{{budget[0].currency}}
|
||||
{{balance.buckets[1].raw_total | number:2}}{{budget[0].currency}}
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
{{( ( balance.buckets[1].raw_total - total_budget - total_unbudgeted ) / ( balance.buckets[1].raw_total - total_budget ) ) * 100 | number:2}}%
|
||||
{{( ( balance.buckets[1].raw_total - total_budget - total_unbudgeted ) / balance.buckets[1].raw_total ) * 100 | number:2}}%
|
||||
</td>
|
||||
<td>
|
||||
<md-progress-linear md-theme="green" mode="determinate"
|
||||
value="{{( ( balance.buckets[1].raw_total - total_budget - total_unbudgeted ) / ( balance.buckets[1].raw_total - total_budget ) ) * 100}}"></md-progress-linear>
|
||||
value="{{( ( balance.buckets[1].raw_total - total_budget - total_unbudgeted ) / balance.buckets[1].raw_total ) * 100}}"></md-progress-linear>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in a new issue