1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2024-12-26 01:12:25 +00:00

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

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,