Only consider complete/paymentpending for tour scheduling.

This commit is contained in:
dave 2010-03-29 07:50:49 +00:00
parent 6ecfb4ab42
commit 74ea0b7050

View File

@ -209,8 +209,11 @@ $q=mysql_query("SELECT students.id,students.grade,
students.schools_id, students.schools_id,
students.firstname, students.lastname students.firstname, students.lastname
FROM students FROM students
LEFT JOIN registrations ON registrations.id=students.registrations_id
WHERE WHERE
students.year='{$config['FAIRYEAR']}' students.year='{$config['FAIRYEAR']}'
AND ( registrations.status='complete'
OR registrations.status='paymentpending' )
ORDER BY ORDER BY
students.id students.id
"); ");