Commit 47c01d6d authored by Skia's avatar Skia
Browse files

Fix request in cash summary list

parent a0319887
Pipeline #307 failed with stage
in 4 minutes and 53 seconds
...@@ -923,8 +923,8 @@ class CashSummaryListView(CanEditPropMixin, CounterAdminTabsMixin, ListView): ...@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment