Display invalid transactions but don't count on them in the total

This commit is contained in:
Yohann D'ANELLO 2020-08-03 19:37:42 +02:00
parent 630fc9a0df
commit 034d8c43b6
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ class Command(BaseCommand):
continue
table = HistoryTable(last_transactions)
incoming = sum(tr.total for tr in last_transactions if tr.destination.pk == note.pk)
outcoming = sum(tr.total for tr in last_transactions if tr.source.pk == note.pk)
incoming = sum(tr.total for tr in last_transactions if tr.destination.pk == note.pk if tr.valid)
outcoming = sum(tr.total for tr in last_transactions if tr.source.pk == note.pk if tr.valid)
context = dict(
user=note.user,
table=table,