From a181ba308ac83cebf53f1fe729c151843a09a040 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 23 May 2025 14:48:54 +0100 Subject: [PATCH] Fixed #16958 - exclude archived assets from expiring assets report Signed-off-by: snipe --- app/Models/Asset.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 4e953e74fc..002f238297 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -806,6 +806,7 @@ class Asset extends Depreciable ->whereNotNull('warranty_months') ->whereNotNull('purchase_date') ->whereNull('deleted_at') + ->NotArchived() ->whereRaw('DATE_ADD(`purchase_date`, INTERVAL `warranty_months` MONTH) <= DATE_ADD(NOW(), INTERVAL ' . $days . ' DAY) AND DATE_ADD(`purchase_date`, INTERVAL `warranty_months` MONTH) > NOW()')