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