|
@@ -93,6 +93,7 @@ class Client extends Model
|
|
|
public function notes()
|
|
|
{
|
|
|
return $this->hasMany(Note::class, 'client_id', 'id')
|
|
|
+ ->where('id', '<>', $this->core_note_id)
|
|
|
->orderBy('effective_dateest', 'desc');
|
|
|
}
|
|
|
|
|
@@ -129,6 +130,7 @@ class Client extends Model
|
|
|
{
|
|
|
return $this->hasMany(Note::class, 'client_id', 'id')
|
|
|
->where('is_cancelled', false)
|
|
|
+ ->where('id', '<>', $this->core_note_id)
|
|
|
->orderBy('effective_dateest', 'desc');
|
|
|
}
|
|
|
|
|
@@ -136,6 +138,7 @@ class Client extends Model
|
|
|
{
|
|
|
return $this->hasMany(Note::class, 'client_id', 'id')
|
|
|
->where('is_cancelled', true)
|
|
|
+ ->where('id', '<>', $this->core_note_id)
|
|
|
->orderBy('effective_dateest', 'desc');
|
|
|
}
|
|
|
|