#539 - Allow checked out asset in requestable

This commit is contained in:
madd15
2015-02-19 08:20:27 +10:30
parent c07907833c
commit ae104293da
+1 -1
View File
@@ -307,7 +307,7 @@ class Asset extends Depreciable
public function scopeRequestableAssets($query)
{
return $query->where('requestable','=',1)->whereNULL('assigned_to')->whereHas('assetstatus',function($query)
return $query->where('requestable','=',1)->whereHas('assetstatus',function($query)
{
$query->where('deployable','=',1)->where('pending','=',0)->where('archived','=',0);
});