From 67f6246db6dec7de9a358d2d973cdb754a7df783 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 19 Aug 2014 17:38:58 +0200 Subject: [PATCH] fine-tune income scoring --- public/app/js/main/controllers/BalanceCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/js/main/controllers/BalanceCtrl.js b/public/app/js/main/controllers/BalanceCtrl.js index 6d6bb5c1..7e9f1d4c 100644 --- a/public/app/js/main/controllers/BalanceCtrl.js +++ b/public/app/js/main/controllers/BalanceCtrl.js @@ -40,9 +40,9 @@ app.controller( 'BalanceCtrl', // compute an account's score: from 1 (good) to 10 (bad), 0 is neutral/undecided $scope.score_account = function( account ) { - if ( account.match( /^Income:salaire$/ ) ) { + if ( account.match( /^Income:(salaire|Sécu|Mutuelle)$/ ) ) { return 1; - } else if ( account.match( /^Income:Gift$/ ) ) { + } else if ( account.match( /^Income:(Gift|Remboursement)$/ ) ) { return 6; } else if ( account.match( /^Expenses:(courses|Hang)$/ ) ) { return 1;