A free open source IT asset/license management system
Removed unused scope
snipe50d8b02f8b84
diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 98f3dcc065..b3972b1c87 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -1221,22 +1221,14 @@ class Asset extends Depreciable/**- * Query builder scope for Assets that are OVERDUE for checkin, based on the assets.next_audit_date- * and settings.audit_warning_days. It checks to see if assets.expected_checkin is before now+ * Query builder scope for Assets that are DUE for checkin, based on the assets.expected_checkin+ * and settings.audit_warning_days. It checks to see if assets.expected_checkin is now** @author A. Gianotto <[email protected]>* @since v6.4.0* @return \Illuminate\Database\Query\Builder Modified query builder*/- public function scopeDueForCheckinToday($query)- {- return $query->whereNotNull('assets.expected_checkin')- ->where('assets.expected_checkin', '=', Carbon::now()->format('Y-m-d'))- ->where('assets.archived', '=', 0)- ->NotArchived();- }-public function scopeDueForCheckin($query, $settings){$interval = $settings->audit_warning_days ?? 0;