From a398496dd44e9a98feb5e668078f96a93ae968d8 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 26 Apr 2024 21:01:27 +0100 Subject: [PATCH] Added comments Signed-off-by: snipe --- app/Models/Asset.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index a700a0f365..c5373a04e2 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -1241,6 +1241,13 @@ class Asset extends Depreciable ->NotArchived(); } + /** + * Query builder scope for Assets that are overdue for checkin OR overdue + * + * @author A. Gianotto + * @since v6.4.0 + * @return \Illuminate\Database\Query\Builder Modified query builder + */ public function scopeOverdueForCheckin($query) { return $query->whereNotNull('assets.expected_checkin') @@ -1257,7 +1264,6 @@ class Asset extends Depreciable * @since v6.4.0 * @return \Illuminate\Database\Query\Builder Modified query builder */ - public function scopeDueOrOverdueForCheckin($query, $settings) { return $query->where(function ($query) {