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:
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user