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,25 +63,37 @@
|
||||||
data-ng-if="account.percentage <= 100"></md-progress-linear>
|
data-ng-if="account.percentage <= 100"></md-progress-linear>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<table class="table" style="width: 100%">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<th style="width: 11%">Account</th>
|
||||||
Potential savings
|
<th style="width: 3%">Can be saved</th>
|
||||||
</td>
|
<th style="width: 3%">Total income</th>
|
||||||
<td style="text-align: right;">
|
<th style="width: 3%">Percentage</th>
|
||||||
{{balance.buckets[1].raw_total - total_budget - total_unbudgeted | number:2}}{{budget[0].currency}}
|
<th>Progress</th>
|
||||||
</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>
|
|
||||||
</tr>
|
</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>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue