From 2100c2c8939cc056de667e25a076b95538cccd6e Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 8 Nov 2014 22:51:53 +0100 Subject: [PATCH] potential savongs expressed as % of total income --- public/app/js/templates/balance.tpl.html | 46 +++++++++++++++--------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/public/app/js/templates/balance.tpl.html b/public/app/js/templates/balance.tpl.html index 2cccc2ba..cee457be 100644 --- a/public/app/js/templates/balance.tpl.html +++ b/public/app/js/templates/balance.tpl.html @@ -63,25 +63,37 @@ data-ng-if="account.percentage <= 100"> - + + + + - - - - - + + + + + + + + + + + + + +
- Potential savings - - {{balance.buckets[1].raw_total - total_budget - total_unbudgeted | number:2}}{{budget[0].currency}} - - {{balance.buckets[1].raw_total - total_budget | number:2}}{{budget[0].currency}} - - {{( ( balance.buckets[1].raw_total - total_budget - total_unbudgeted ) / ( balance.buckets[1].raw_total - total_budget ) ) * 100 | number:2}}% - - - AccountCan be savedTotal incomePercentageProgress
+ Potential savings + + {{balance.buckets[1].raw_total - total_budget - total_unbudgeted | number:2}}{{budget[0].currency}} + + {{balance.buckets[1].raw_total | number:2}}{{budget[0].currency}} + + {{( ( balance.buckets[1].raw_total - total_budget - total_unbudgeted ) / balance.buckets[1].raw_total ) * 100 | number:2}}% + + +