potential savongs expressed as % of total income

This commit is contained in:
Gwenhael Le Moine 2014-11-08 22:51:53 +01:00
parent 9a61003a57
commit 2100c2c893

View file

@ -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>