bug fix in clients controller

This commit is contained in:
Kwesi Banson Jnr
2026-08-13 20:12:24 +00:00
parent e4a417ec92
commit a797d9587c
20 changed files with 989 additions and 852 deletions

View File

@@ -29,13 +29,16 @@ class Client extends Model
return $this->hasMany('App\Models\MeetingReport', 'client', 'id');
}
public function auth_user_info(){
return $this->hasOne('App\Models\SystemUser', 'id', 'auth_user_id');
return $this->hasOne('App\Models\StaffMember', 'id', 'auth_user_id');
}
public function account_manager(){
return $this->hasOne('App\Models\StaffMember', 'id', 'auth_user_id');
}
public function created_by_info(){
return $this->hasOne('App\Models\SystemUser', 'id', 'created_by');
return $this->hasOne('App\Models\StaffMember', 'id', 'created_by');
}
public function modified_by_info(){
return $this->hasOne('App\Models\SystemUser', 'id', 'last_modified_by');
return $this->hasOne('App\Models\StaffMember', 'id', 'last_modified_by');
}
public function short_code_info(){
return $this->hasMany('App\Models\ShortCode', 'client_id', 'id');