From 41fb36c8eb09f795899a38f2692d5a83f4cd5008 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Mon, 8 Oct 2012 11:57:24 -0400
Subject: [PATCH] Exclused annulled events

---
 include/ajax.reports.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/ajax.reports.php b/include/ajax.reports.php
index 783d76a66..83fb1ced9 100644
--- a/include/ajax.reports.php
+++ b/include/ajax.reports.php
@@ -94,6 +94,7 @@ class OverviewReportAjaxAPI extends AjaxController {
             FROM '.$info['table'].' T1 
                 LEFT JOIN '.TICKET_EVENT_TABLE.' A1 
                     ON (A1.'.$info['pk'].'=T1.'.$info['pk'].'
+                         AND NOT annulled 
                          AND (A1.timestamp BETWEEN '.$start.' AND '.$stop.'))
                 LEFT JOIN '.STAFF_TABLE.' S1 ON (S1.staff_id=A1.staff_id)
             WHERE '.$info['filter'].'
-- 
GitLab