mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2024-12-26 09:59:18 +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,25 +63,37 @@
|
|||
data-ng-if="account.percentage <= 100"></md-progress-linear>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table" style="width: 100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
Potential savings
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
{{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}}
|
||||
</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}}%
|
||||
</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>
|
||||
</td>
|
||||
<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
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
{{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 | 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 ) * 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 ) * 100}}"></md-progress-linear>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue