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
|
continue
|
||||||
|
|
||||||
table = HistoryTable(last_transactions)
|
table = HistoryTable(last_transactions)
|
||||||
incoming = sum(tr.total for tr in last_transactions if tr.destination.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)
|
outcoming = sum(tr.total for tr in last_transactions if tr.source.pk == note.pk if tr.valid)
|
||||||
context = dict(
|
context = dict(
|
||||||
user=note.user,
|
user=note.user,
|
||||||
table=table,
|
table=table,
|
||||||
|
|
Loading…
Reference in New Issue