mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-14 08:01:07 +01:00
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
|
||||
$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;
|
||||
|
|
Loading…
Reference in a new issue