From 94caee4aa6b844ef6a633f0eaf403b9f4794f023 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 17 Aug 2023 16:46:57 -0400 Subject: [PATCH] Updated all expirations within 90 days in client overview, stale tickets now use the updated date and not created date and now only show tickets that havent been updated within 3 days as stale, added descriptors to the client overview cards --- client_overview.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/client_overview.php b/client_overview.php index b7cb769d..f3b2c0ba 100644 --- a/client_overview.php +++ b/client_overview.php @@ -6,7 +6,7 @@ $sql_recent_activities = mysqli_query( $mysqli, "SELECT * FROM logs WHERE log_client_id = $client_id - ORDER BY log_created_at DESC LIMIT 8" + ORDER BY log_created_at DESC LIMIT 10" ); $sql_important_contacts = mysqli_query( @@ -41,7 +41,7 @@ $sql_stale_tickets = mysqli_query( $mysqli, "SELECT * FROM tickets WHERE ticket_client_id = $client_id - AND ticket_created_at < CURRENT_DATE - INTERVAL 14 DAY + AND ticket_updated_at < CURRENT_DATE - INTERVAL 3 DAY AND ticket_status != 'Closed' ORDER BY ticket_created_at DESC" ); @@ -53,7 +53,7 @@ $sql_domains_expiring = mysqli_query( WHERE domain_client_id = $client_id AND domain_expire IS NOT NULL AND domain_archived_at IS NULL - AND domain_expire < CURRENT_DATE + INTERVAL 30 DAY + AND domain_expire < CURRENT_DATE + INTERVAL 90 DAY ORDER BY domain_expire DESC" ); @@ -64,7 +64,7 @@ $sql_licenses_expiring = mysqli_query( WHERE software_client_id = $client_id AND software_expire IS NOT NULL AND software_archived_at IS NULL - AND software_expire < CURRENT_DATE + INTERVAL 30 DAY + AND software_expire < CURRENT_DATE + INTERVAL 90 DAY ORDER BY software_expire DESC" ); @@ -117,7 +117,7 @@ $sql_asset_retire = mysqli_query(
-
Recent Activities
+
Recent Activities (Last 10 tasks)
@@ -207,7 +207,7 @@ $sql_asset_retire = mysqli_query(
-
Upcoming Expirations
+
Upcoming Expirations (Within 90 Days)
@@ -297,7 +297,7 @@ $sql_asset_retire = mysqli_query(
-
Stale Tickets (14d)
+
Stale Tickets (Not updated within 3 days)