diff --git a/app/Models/Activity.php b/app/Models/Activity.php index 311ee6b614..57ac9fc7c8 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -353,6 +353,10 @@ class Activity extends StaticModel return $this->belongsTo(Expense::class)->withTrashed(); } + public function account(): \Illuminate\Database\Eloquent\Relations\BelongsTo + { + return $this->belongsTo(Account::class); + } public function recurring_expense(): \Illuminate\Database\Eloquent\Relations\BelongsTo {