This commit is contained in:
James Cole committed 2026-09-04 11:06:12 +02:00
1 parent bb75b6c099
commit a2ef2b4366
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ class RecurrenceTransaction extends Model
protected $fillable = [
'recurrence_id',
'transaction_currency_id',
'transaction_type_id',
'foreign_currency_id',
'source_id',
'destination_id',
+1 -1
View File
@@ -181,7 +181,7 @@ trait RecurrenceValidation
/** @var null|RecurrenceTransaction $first */
$first = $recurrence->recurrenceTransactions()->first();
if (null !== $first) {
$transactionType = null !== $first->transactionType ? $first->transactionType->type : 'withdrawal';
$transactionType = null !== $first->transactionType()->first() ? $first->transactionType->type : 'withdrawal';
Log::debug(sprintf('Determined type to be %s.', $transactionType));
}
if (null === $first) {