This commit is contained in:
2025-10-08 18:26:47 +02:00
parent ee1af56d03
commit f40c3d0f2e
6 changed files with 134 additions and 15 deletions
+9
View File
@@ -22,6 +22,15 @@ class Account extends Model
'balance_amount',
];
protected function casts(): array
{
return [
'initial_amount' => 'decimal:4',
'balance_amount' => 'decimal:4',
'promise_date' => 'date',
];
}
public function debtor(): BelongsTo
{
return $this->belongsTo(\App\Models\Person\Person::class, 'debtor_id');