Fix payments order (by date, most recent first)
This commit is contained in:
parent
3e9c678907
commit
eb54e8ada6
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ def refund_delete(request, pk):
|
|||
|
||||
@login_required
|
||||
def not_refunded_payments(request):
|
||||
payments = Payment.objects.filter(refund=None)
|
||||
payments = Payment.objects.filter(refund=None).order_by('-date')
|
||||
value_sum = payments.aggregate(Sum('value')).get('value__sum')
|
||||
if value_sum:
|
||||
value_sum /= 100
|
||||
|
|
Loading…
Reference in a new issue