Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Display invalid transactions but don't count on them in the total
· 034d8c43
ynerant
authored
Aug 03, 2020
034d8c43
Hide whitespace changes
Inline
Side-by-side
management/commands/send_reports.py
View file @
034d8c43
...
...
@@ -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
,
...
...