diff --git a/app/Models/Tenants/AiReport.php b/app/Models/Tenants/AiReport.php index d50785a..86f63db 100644 --- a/app/Models/Tenants/AiReport.php +++ b/app/Models/Tenants/AiReport.php @@ -73,7 +73,7 @@ class AiReport extends Model */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** diff --git a/app/Models/Tenants/BarobillSetting.php b/app/Models/Tenants/BarobillSetting.php index 8dbd0cc..45ad09e 100644 --- a/app/Models/Tenants/BarobillSetting.php +++ b/app/Models/Tenants/BarobillSetting.php @@ -83,7 +83,7 @@ public function tenant(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** @@ -91,7 +91,7 @@ public function creator(): BelongsTo */ public function updater(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'updated_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'updated_by'); } // ========================================================================= diff --git a/app/Models/Tenants/Deposit.php b/app/Models/Tenants/Deposit.php index 69ee158..6f62790 100644 --- a/app/Models/Tenants/Deposit.php +++ b/app/Models/Tenants/Deposit.php @@ -51,7 +51,7 @@ class Deposit extends Model */ public function client(): BelongsTo { - return $this->belongsTo(Client::class); + return $this->belongsTo(\App\Models\Orders\Client::class); } /** @@ -67,7 +67,7 @@ public function bankAccount(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** diff --git a/app/Models/Tenants/Purchase.php b/app/Models/Tenants/Purchase.php index 4f4ed37..8920277 100644 --- a/app/Models/Tenants/Purchase.php +++ b/app/Models/Tenants/Purchase.php @@ -49,7 +49,7 @@ class Purchase extends Model */ public function client(): BelongsTo { - return $this->belongsTo(Client::class); + return $this->belongsTo(\App\Models\Orders\Client::class); } /** @@ -65,7 +65,7 @@ public function withdrawal(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** diff --git a/app/Models/Tenants/Sale.php b/app/Models/Tenants/Sale.php index b9c980a..d285973 100644 --- a/app/Models/Tenants/Sale.php +++ b/app/Models/Tenants/Sale.php @@ -52,7 +52,7 @@ class Sale extends Model */ public function client(): BelongsTo { - return $this->belongsTo(Client::class); + return $this->belongsTo(\App\Models\Orders\Client::class); } /** @@ -68,7 +68,7 @@ public function deposit(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** diff --git a/app/Models/Tenants/TaxInvoice.php b/app/Models/Tenants/TaxInvoice.php index c3c7f8f..3f2ce19 100644 --- a/app/Models/Tenants/TaxInvoice.php +++ b/app/Models/Tenants/TaxInvoice.php @@ -162,7 +162,7 @@ public function reference(): MorphTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** @@ -170,7 +170,7 @@ public function creator(): BelongsTo */ public function updater(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'updated_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'updated_by'); } // ========================================================================= diff --git a/app/Models/Tenants/Withdrawal.php b/app/Models/Tenants/Withdrawal.php index 7d5e1c4..9b3a84a 100644 --- a/app/Models/Tenants/Withdrawal.php +++ b/app/Models/Tenants/Withdrawal.php @@ -51,7 +51,7 @@ class Withdrawal extends Model */ public function client(): BelongsTo { - return $this->belongsTo(Client::class); + return $this->belongsTo(\App\Models\Orders\Client::class); } /** @@ -67,7 +67,7 @@ public function bankAccount(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /**