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:
parent
630fc9a0df
commit
034d8c43b6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user