3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 21:15:41 +00:00

Skip terminated licenses in alert

This commit is contained in:
snipe
2025-09-11 13:14:53 +01:00
parent aa3f896538
commit 80c059be58

View File

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