1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Account relation to activity table

This commit is contained in:
David Bomba 2023-12-04 07:58:59 +11:00
parent 54de9d6c07
commit 0841cd2c06

View File

@ -353,6 +353,10 @@ class Activity extends StaticModel
return $this->belongsTo(Expense::class)->withTrashed(); 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 public function recurring_expense(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{ {