mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Added comments
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
839db8ef44
commit
a398496dd4
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue