mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-26 07:58:10 +01:00
balance = income - expenses
This commit is contained in:
parent
f93412b2d5
commit
ad409cde9f
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@
|
|||
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||
</button>
|
||||
</h2>
|
||||
<h2 class="balance" data-ng-class="{'positive': balance.expenses_total + balance.income_total < 0, 'negative': balance.expenses_total + balance.income_total > 0}">
|
||||
Balance: {{( balance.expenses_total - balance.income_total * -1 ) * -1 | number:2}} €
|
||||
<h2 class="balance" data-ng-class="{'negative': balance.income_total - balance.expenses_total < 0, 'positive': balance.income_total - balance.expenses_total > 0}">
|
||||
Balance: {{( balance.income_total - balance.expenses_total ) | number:2}} €
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue