Skip to content
Snippets Groups Projects
Commit 41fb36c8 authored by Peter Rotich's avatar Peter Rotich
Browse files

Exclused annulled events

parent 2c49788d
No related branches found
No related tags found
No related merge requests found
...@@ -94,6 +94,7 @@ class OverviewReportAjaxAPI extends AjaxController { ...@@ -94,6 +94,7 @@ class OverviewReportAjaxAPI extends AjaxController {
FROM '.$info['table'].' T1 FROM '.$info['table'].' T1
LEFT JOIN '.TICKET_EVENT_TABLE.' A1 LEFT JOIN '.TICKET_EVENT_TABLE.' A1
ON (A1.'.$info['pk'].'=T1.'.$info['pk'].' ON (A1.'.$info['pk'].'=T1.'.$info['pk'].'
AND NOT annulled
AND (A1.timestamp BETWEEN '.$start.' AND '.$stop.')) AND (A1.timestamp BETWEEN '.$start.' AND '.$stop.'))
LEFT JOIN '.STAFF_TABLE.' S1 ON (S1.staff_id=A1.staff_id) LEFT JOIN '.STAFF_TABLE.' S1 ON (S1.staff_id=A1.staff_id)
WHERE '.$info['filter'].' WHERE '.$info['filter'].'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment