More tweaks
This commit is contained in:
@@ -37,6 +37,7 @@ function booking_report_summary() {
|
||||
->condition('p.booking_event_id', $event->eid, '=');
|
||||
$query->groupBy('p.booking_state');
|
||||
$query->addExpression('COUNT(p.booking_state)', 'state_count');
|
||||
$query->orderBy('state_count', 'DESC');
|
||||
$state_stats = $query->execute();
|
||||
|
||||
foreach ($state_stats as $state) {
|
||||
|
Reference in New Issue
Block a user