@wrongecho
Life happens. In the grand scheme of things this is a minor issue. I am trying to resolve the discrepancy.
[database]> SELECT * FROM tickets WHERE ticket_client_id = '0';
Empty set (0.012 sec)
Today I am at 5299 (TCK-5289) and a SELECT COUNT(*) FROM tickets; returns 5299. Next ticket created will be 5300 (TCK-5290)
Continuing to count tickets by client I counted tickets "WHERE ticket_client_id = 'x';" for each of my thirteen clients (one of the benefits of being internal IT), two of which are archived, total 37 tickets, and the source of the discrepancy in the math.
When the client is archived, its totals are removed / hidden from the tickets by clients report generated by report-ticket-by-client.php causing the mathing error.
Thank you for pointing me in the right direction!
Tickets.php counts the total number of tickets across clients, it appears even the archived clients.
Because their tickets count, I would suggest listing the archived clients along with ticket counts up to 12/31 of the year they were archived in report-ticket-by-client.php select by year.
