From 80c059be58cbeae1bf9c0d9a2d35eda412964dea Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 11 Sep 2025 13:14:53 +0100 Subject: [PATCH] Skip terminated licenses in alert --- app/Models/License.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/License.php b/app/Models/License.php index f80886236c..2d7ed7c5d7 100755 --- a/app/Models/License.php +++ b/app/Models/License.php @@ -723,6 +723,7 @@ class License extends Depreciable ->whereNull('deleted_at') ->whereRaw('DATE_SUB(`expiration_date`,INTERVAL '.$days.' DAY) <= DATE(NOW()) ') ->where('expiration_date', '>', date('Y-m-d')) + ->where('termination_date', '>', date('Y-m-d')) ->orderBy('expiration_date', 'ASC') ->get(); }