Added comments

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-04-26 21:01:27 +01:00
parent 839db8ef44
commit a398496dd4

View file

@ -1241,6 +1241,13 @@ class Asset extends Depreciable
->NotArchived(); ->NotArchived();
} }
/**
* Query builder scope for Assets that are overdue for checkin OR overdue
*
* @author A. Gianotto <snipe@snipe.net>
* @since v6.4.0
* @return \Illuminate\Database\Query\Builder Modified query builder
*/
public function scopeOverdueForCheckin($query) public function scopeOverdueForCheckin($query)
{ {
return $query->whereNotNull('assets.expected_checkin') return $query->whereNotNull('assets.expected_checkin')
@ -1257,7 +1264,6 @@ class Asset extends Depreciable
* @since v6.4.0 * @since v6.4.0
* @return \Illuminate\Database\Query\Builder Modified query builder * @return \Illuminate\Database\Query\Builder Modified query builder
*/ */
public function scopeDueOrOverdueForCheckin($query, $settings) public function scopeDueOrOverdueForCheckin($query, $settings)
{ {
return $query->where(function ($query) { return $query->where(function ($query) {