mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Fix request in cash summary list
This commit is contained in:
parent
a0319887c8
commit
47c01d6d10
@ -923,8 +923,8 @@ class CashSummaryListView(CanEditPropMixin, CounterAdminTabsMixin, ListView):
|
|||||||
else:
|
else:
|
||||||
last_summary = CashRegisterSummary.objects.filter(counter=c, emptied=True).order_by('-date').first()
|
last_summary = CashRegisterSummary.objects.filter(counter=c, emptied=True).order_by('-date').first()
|
||||||
if last_summary:
|
if last_summary:
|
||||||
refillings = refillings.filter(date__gte=last_summary.date)
|
refillings = refillings.filter(date__gt=last_summary.date)
|
||||||
cashredistersummaries = cashredistersummaries.filter(date__gte=last_summary.date)
|
cashredistersummaries = cashredistersummaries.filter(date__gt=last_summary.date)
|
||||||
else:
|
else:
|
||||||
refillings = refillings.filter(date__gte=datetime(year=1994, month=5, day=17, tzinfo=pytz.UTC)) # My birth date should be old enough
|
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))
|
cashredistersummaries = cashredistersummaries.filter(date__gte=datetime(year=1994, month=5, day=17, tzinfo=pytz.UTC))
|
||||||
|
Loading…
Reference in New Issue
Block a user