mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-03 18:43:04 +00:00 
			
		
		
		
	Fix request in cash summary list
This commit is contained in:
		@@ -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))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user