Skip to content

A free open source IT asset/license management system

Fleshed out comments on new scope

snipedaf6c72005c6
diff --git a/app/Models/Asset.php b/app/Models/Asset.php
index f4bc125155..14613149a1 100644
--- a/app/Models/Asset.php
+++ b/app/Models/Asset.php
@@ -1148,7 +1148,11 @@ class Asset extends Depreciable
/**
- * Query builder scope for Archived assets
+ * Query builder scope for Archived assets counting
+ *
+ * This is primarily used for the tab counters so that IF the admin
+ * has chosen to not display archived assets in their regular lists
+ * and views, it will return the correct number.
*
* @param \Illuminate\Database\Query\Builder $query Query builder instance
*