|
@@ -687,6 +687,7 @@ class Client extends Model
|
|
{
|
|
{
|
|
return $this->hasMany(ClientCmRmReason::class, 'client_id', 'id')
|
|
return $this->hasMany(ClientCmRmReason::class, 'client_id', 'id')
|
|
->where('cm_or_rm', 'RM')
|
|
->where('cm_or_rm', 'RM')
|
|
|
|
+ ->where('is_removed', false)
|
|
->orderBy('position_index', 'ASC')
|
|
->orderBy('position_index', 'ASC')
|
|
->orderBy('code', 'ASC');
|
|
->orderBy('code', 'ASC');
|
|
}
|
|
}
|