mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-26 07:58:10 +01:00
income are negative
This commit is contained in:
parent
a2d4e120a0
commit
44c3b1adc5
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ app.controller( 'BalanceCtrl',
|
|||
+ '&categories=Income' )
|
||||
.then( function( response ) {
|
||||
$scope.balance.income = _(response.data).sortBy( function( account ) {
|
||||
return 1 / account.amount;
|
||||
return account.amount;
|
||||
} );
|
||||
$scope.balance.income_total = _(response.data).reduce( function( memo, account ){ return memo + account.amount; }, 0 );
|
||||
} );
|
||||
|
|
Loading…
Add table
Reference in a new issue