Skip to content

Commit

Permalink
Exclude certain status IDs from being overdue (for example if you had…
Browse files Browse the repository at this point in the history
… statuses for scheduled, on hold, etc.)
  • Loading branch information
Mike Nahmias committed Apr 30, 2016
1 parent 566f395 commit 960c603
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/class.ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -2913,6 +2913,10 @@ function checkOverdue() {
ON (status.id=T1.status_id AND status.state="open") '
.' LEFT JOIN '.SLA_TABLE.' T2 ON (T1.sla_id=T2.id AND T2.isactive=1) '
.' WHERE isoverdue=0 '
.' AND status_id <> 6 '
.' AND status_id <> 7 '
.' AND status_id <> 9 '
.' AND status_id <> 10 '
.' AND ((reopened is NULL AND duedate is NULL AND TIME_TO_SEC(TIMEDIFF(NOW(),T1.created))>=T2.grace_period*3600) '
.' OR (reopened is NOT NULL AND duedate is NULL AND TIME_TO_SEC(TIMEDIFF(NOW(),reopened))>=T2.grace_period*3600) '
.' OR (duedate is NOT NULL AND duedate<NOW()) '
Expand Down

0 comments on commit 960c603

Please sign in to comment.