From 47c01d6d10f3ea36fb5c4fa97fd8f019f9e37545 Mon Sep 17 00:00:00 2001 From: Skia Date: Tue, 18 Oct 2016 14:48:47 +0200 Subject: [PATCH] Fix request in cash summary list --- counter/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/counter/views.py b/counter/views.py index 79a79297..bc178cb5 100644 --- a/counter/views.py +++ b/counter/views.py @@ -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__gte=last_summary.date) - cashredistersummaries = cashredistersummaries.filter(date__gte=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))