fine-tune income scoring
This commit is contained in:
parent
f50ce728b5
commit
67f6246db6
1 changed files with 2 additions and 2 deletions
|
@ -40,9 +40,9 @@ app.controller( 'BalanceCtrl',
|
||||||
|
|
||||||
// compute an account's score: from 1 (good) to 10 (bad), 0 is neutral/undecided
|
// compute an account's score: from 1 (good) to 10 (bad), 0 is neutral/undecided
|
||||||
$scope.score_account = function( account ) {
|
$scope.score_account = function( account ) {
|
||||||
if ( account.match( /^Income:salaire$/ ) ) {
|
if ( account.match( /^Income:(salaire|Sécu|Mutuelle)$/ ) ) {
|
||||||
return 1;
|
return 1;
|
||||||
} else if ( account.match( /^Income:Gift$/ ) ) {
|
} else if ( account.match( /^Income:(Gift|Remboursement)$/ ) ) {
|
||||||
return 6;
|
return 6;
|
||||||
} else if ( account.match( /^Expenses:(courses|Hang)$/ ) ) {
|
} else if ( account.match( /^Expenses:(courses|Hang)$/ ) ) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue