diff --git a/booking.reports.inc b/booking.reports.inc index 7a5d8c3..618f520 100644 --- a/booking.reports.inc +++ b/booking.reports.inc @@ -64,37 +64,6 @@ function booking_report_summary() { } //non australian states $state_rows[] = array('International', $non_australia_count); - - /* - //general stats - $query = db_select('booking_person', 'p') - ->fields('p', array('booking_baptised', 'booking_married', 'booking_gender', 'booking_dob')) - ->condition('p.booking_event_id', $event->eid, '='); - $general_stats = $query->execute(); - - foreach ($general_stats as $person) - { - $dob_total += $person->booking_dob; - $person_count++; - - if ($person->booking_gender == 'M') - { - $male_count++; - $male_dob_total += $person->booking_dob; - } - else - { - $female_count++; - $female_dob_total += $person->booking_dob; - } - - if ($person->booking_baptised == 'Y') - $baptised_count++; - - if ($person->booking_married == 'Y') - $married_count++; - } - */ //bookings by ecclesia $query = db_select('booking_person', 'p')