Merged in bugfix/PMCORE-2636 (pull request #7677)
PMCORE-2636 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -455,6 +455,18 @@ class Delegation extends Model
|
||||
return $query->where('APP_DELEGATION.APP_NUMBER', '<=', $to);
|
||||
}
|
||||
|
||||
/**
|
||||
* Scope for query to get the positive cases for avoid the web entry
|
||||
*
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Builder
|
||||
*/
|
||||
public function scopePositiveCases($query)
|
||||
{
|
||||
return $query->where('APP_DELEGATION.APP_NUMBER', '>', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Scope more than one range of cases
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user