This commit is contained in:
Simon Pocrnjič
2025-09-28 00:30:18 +02:00
parent 7227c888d4
commit a913cfc381
44 changed files with 2123 additions and 587 deletions
+7
View File
@@ -100,6 +100,13 @@ public function emails(): HasMany
->orderBy('id');
}
public function bankAccounts(): HasMany
{
return $this->hasMany(\App\Models\BankAccount::class, 'person_id')
->where('is_active', '=', 1)
->orderBy('id');
}
public function group(): BelongsTo
{
return $this->belongsTo(\App\Models\Person\PersonGroup::class, 'group_id');