Luke Plant committed 5b191bc

Fixed report to show only payable bookings

  • Participants
  • Parent commits 8157482
  • Branches bookings

Comments (0)

Files changed (1)

File cciw/officers/

     # This will actually exclude people who have outstanding fees but do not
     # have bookings this year. That's OK - previous year's report page will catch them.
-    bookings = Booking.objects.filter(camp__year__exact=year,
-                                      account__in=[ for o in outstanding])
+    bookings = Booking.objects.payable(False).filter(camp__year__exact=year,
+                                                     account__in=[ for o in outstanding])
     bookings = bookings.order_by('account__name','first_name','last_name')
     # Decorate with the already calculated 'total_amount_due', and with 'number