Correct ordering of invoices

This commit is contained in:
Christopher Neugebauer 2017-01-15 12:16:03 +11:00
parent cb42289f4c
commit 8ebb371a67

View file

@ -386,7 +386,7 @@ def credit_notes(request, form):
def invoices(request,form):
''' Shows all of the invoices in the system. '''
invoices = commerce.Invoice.objects.all().order_by("status")
invoices = commerce.Invoice.objects.all().order_by("status", "id")
return QuerysetReport(
"Invoices",