From 2367ca225591157caf5b0d8b17deca644f37f1f8 Mon Sep 17 00:00:00 2001
From: johnnyq
Date: Mon, 24 Feb 2025 17:24:43 -0500
Subject: [PATCH] Remove expire record limits and only include items expiring
within 45 days instead of 90 in client overview
---
client_overview.php | 49 ++++++++++++++++++---------------------------
1 file changed, 20 insertions(+), 29 deletions(-)
diff --git a/client_overview.php b/client_overview.php
index 17feeda9..3417a6e0 100644
--- a/client_overview.php
+++ b/client_overview.php
@@ -62,10 +62,11 @@ $sql_stale_tickets = mysqli_query(
AND ticket_updated_at < CURRENT_DATE - INTERVAL 7 DAY
AND ticket_resolved_At IS NULL
AND ticket_closed_at IS NULL
- ORDER BY ticket_updated_at ASC
- LIMIT 5"
+ ORDER BY ticket_updated_at ASC"
);
+// 8 - 45 Day Warning
+
// Get Domains Expiring
$sql_domains_expiring = mysqli_query(
$mysqli,
@@ -75,8 +76,7 @@ $sql_domains_expiring = mysqli_query(
AND domain_archived_at IS NULL
AND domain_expire > CURRENT_DATE
AND domain_expire < CURRENT_DATE + INTERVAL 45 DAY
- ORDER BY domain_expire ASC
- LIMIT 5"
+ ORDER BY domain_expire ASC"
);
// Get Certificates Expiring
@@ -88,8 +88,7 @@ $sql_certificates_expiring = mysqli_query(
AND certificate_archived_at IS NULL
AND certificate_expire > CURRENT_DATE
AND certificate_expire < CURRENT_DATE + INTERVAL 45 DAY
- ORDER BY certificate_expire ASC
- LIMIT 5"
+ ORDER BY certificate_expire ASC"
);
// Get Licenses Expiring
@@ -101,8 +100,7 @@ $sql_licenses_expiring = mysqli_query(
AND software_archived_at IS NULL
AND software_expire > CURRENT_DATE
AND software_expire < CURRENT_DATE + INTERVAL 45 DAY
- ORDER BY software_expire ASC
- LIMIT 5"
+ ORDER BY software_expire ASC"
);
// Get Asset Warranties Expiring
@@ -114,8 +112,7 @@ $sql_asset_warranties_expiring = mysqli_query(
AND asset_archived_at IS NULL
AND asset_warranty_expire > CURRENT_DATE
AND asset_warranty_expire < CURRENT_DATE + INTERVAL 45 DAY
- ORDER BY asset_warranty_expire ASC
- LIMIT 5"
+ ORDER BY asset_warranty_expire ASC"
);
// Get Assets Retiring 7 Year
@@ -127,8 +124,7 @@ $sql_asset_retire = mysqli_query(
AND asset_archived_at IS NULL
AND asset_install_date + INTERVAL 7 YEAR > CURRENT_DATE
AND asset_install_date + INTERVAL 7 YEAR <= CURRENT_DATE + INTERVAL 45 DAY
- ORDER BY asset_install_date ASC
- LIMIT 5"
+ ORDER BY asset_install_date ASC"
);
/*
@@ -143,8 +139,7 @@ $sql_domains_expired = mysqli_query(
AND domain_expire IS NOT NULL
AND domain_archived_at IS NULL
AND domain_expire < CURRENT_DATE
- ORDER BY domain_expire ASC
- LIMIT 5"
+ ORDER BY domain_expire ASC"
);
// Get Certificates Expired
@@ -155,8 +150,7 @@ $sql_certificates_expired = mysqli_query(
AND certificate_expire IS NOT NULL
AND certificate_archived_at IS NULL
AND certificate_expire < CURRENT_DATE
- ORDER BY certificate_expire ASC
- LIMIT 5"
+ ORDER BY certificate_expire ASC"
);
// Get Licenses Expired
@@ -167,8 +161,7 @@ $sql_licenses_expired = mysqli_query(
AND software_expire IS NOT NULL
AND software_archived_at IS NULL
AND software_expire < CURRENT_DATE
- ORDER BY software_expire ASC
- LIMIT 5"
+ ORDER BY software_expire ASC"
);
// Get Asset Warranties Expired
@@ -179,8 +172,7 @@ $sql_asset_warranties_expired = mysqli_query(
AND asset_warranty_expire IS NOT NULL
AND asset_archived_at IS NULL
AND asset_warranty_expire < CURRENT_DATE
- ORDER BY asset_warranty_expire ASC
- LIMIT 5"
+ ORDER BY asset_warranty_expire ASC"
);
// Get Retired Assets
@@ -191,8 +183,7 @@ $sql_asset_retired = mysqli_query(
AND asset_install_date IS NOT NULL
AND asset_archived_at IS NULL
AND asset_install_date + INTERVAL 7 YEAR < CURRENT_DATE -- Assets retired (installed more than 7 years ago)
- ORDER BY asset_install_date ASC
- LIMIT 5"
+ ORDER BY asset_install_date ASC"
);
@@ -366,8 +357,8 @@ $sql_asset_retired = mysqli_query(
?>
-
- --
+ Domain:
+ -- ()
-
- --
+ Certificate:
+ -- ()
- --
+ -- ()
@@ -423,7 +414,7 @@ $sql_asset_retired = mysqli_query(
- --
+ -- ()
- --
+ -- ()