Skip to content

A free open source IT asset/license management system

Skip terminated licenses in alert

snipe80c059be58cb
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();
}