Expand new transaction form.

This commit is contained in:
James Cole
2024-01-03 17:43:05 +01:00
parent e6fe08dd61
commit 211526c032
10 changed files with 262 additions and 100 deletions

View File

@@ -93,12 +93,14 @@ class Location extends Model
return $rules;
}
/**
* Get all the accounts.
*/
public function accounts(): MorphMany
{
return $this->morphMany(Account::class, 'noteable');
return $this->morphMany(Account::class, 'locatable');
}
public function transactionJournals(): MorphMany
{
return $this->morphMany(TransactionJournal::class, 'locatable');
}
/**