Commits

Luke Plant committed 5b191bc

Fixed report to show only payable bookings

Comments (0)

Files changed (1)

cciw/officers/views.py

 
     # 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=[o.id for o in outstanding])
+    bookings = Booking.objects.payable(False).filter(camp__year__exact=year,
+                                                     account__in=[o.id 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