diff --git a/cron.php b/cron.php index c0d67664..2a032d66 100644 --- a/cron.php +++ b/cron.php @@ -732,6 +732,10 @@ if ($config_telemetry > 0 OR $config_telemetry = 2) { $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('recurring_id') AS num FROM tickets")); $ticket_count = $row['num']; + // Scheduled Ticket Count + $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('scheduled_ticket_id') AS num FROM scheduled_tickets")); + $scheduled_ticket_count = $row['num']; + // Calendar Event Count $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('event_id') AS num FROM events")); $calendar_event_count = $row['num']; @@ -896,6 +900,7 @@ if ($config_telemetry > 0 OR $config_telemetry = 2) { 'currency' => "$company_currency", 'client_count' => $client_count, 'ticket_count' => $ticket_count, + 'scheduled_ticket_count' => $scheduled_ticket_count, 'calendar_event_count' => $calendar_event_count, 'quote_count' => $quote_count, 'invoice_count' => $invoice_count, diff --git a/post/setting.php b/post/setting.php index 750d5414..78a57ee8 100644 --- a/post/setting.php +++ b/post/setting.php @@ -626,6 +626,10 @@ if (isset($_GET['update'])) { $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('recurring_id') AS num FROM tickets")); $ticket_count = $row['num']; + // Scheduled Ticket Count + $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('scheduled_ticket_id') AS num FROM scheduled_tickets")); + $scheduled_ticket_count = $row['num']; + // Calendar Event Count $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('event_id') AS num FROM events")); $calendar_event_count = $row['num']; @@ -791,6 +795,7 @@ if (isset($_GET['update'])) { 'comments' => "$comments", 'client_count' => $client_count, 'ticket_count' => $ticket_count, + 'scheduled_ticket_count' => $scheduled_ticket_count, 'calendar_event_count' => $calendar_event_count, 'quote_count' => $quote_count, 'invoice_count' => $invoice_count,