Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
47c01d6d
Commit
47c01d6d
authored
Oct 18, 2016
by
Skia
🤘
Browse files
Fix request in cash summary list
parent
a0319887
Pipeline
#307
failed with stage
in 4 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
counter/views.py
View file @
47c01d6d
...
...
@@ -923,8 +923,8 @@ class CashSummaryListView(CanEditPropMixin, CounterAdminTabsMixin, ListView):
else
:
last_summary
=
CashRegisterSummary
.
objects
.
filter
(
counter
=
c
,
emptied
=
True
).
order_by
(
'-date'
).
first
()
if
last_summary
:
refillings
=
refillings
.
filter
(
date__gt
e
=
last_summary
.
date
)
cashredistersummaries
=
cashredistersummaries
.
filter
(
date__gt
e
=
last_summary
.
date
)
refillings
=
refillings
.
filter
(
date__gt
=
last_summary
.
date
)
cashredistersummaries
=
cashredistersummaries
.
filter
(
date__gt
=
last_summary
.
date
)
else
:
refillings
=
refillings
.
filter
(
date__gte
=
datetime
(
year
=
1994
,
month
=
5
,
day
=
17
,
tzinfo
=
pytz
.
UTC
))
# My birth date should be old enough
cashredistersummaries
=
cashredistersummaries
.
filter
(
date__gte
=
datetime
(
year
=
1994
,
month
=
5
,
day
=
17
,
tzinfo
=
pytz
.
UTC
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment