Merge pull request #3317 from imhayatunnabi/fix/missing-non-recurring-helpers

Fix missing non-recurring helpers in shared traits
This commit is contained in:
Cüneyt Şentürk 2025-11-08 08:28:31 +00:00 committed by GitHub
commit c1dd91238d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ trait Documents
public function isNotRecurringDocument(): bool
{
return ! $this->isRecurring();
return ! $this->isRecurringDocument();
}
public function getRecurringDocumentTypes() : array

View File

@ -42,7 +42,7 @@ trait Transactions
public function isNotRecurringTransaction(): bool
{
return ! $this->isRecurring();
return ! $this->isRecurringTransaction();
}
public function isTransferTransaction(): bool
@ -194,7 +194,7 @@ trait Transactions
'add_an' => trans('general.form.add_an', ['field' => trans_choice('general.' . Str::plural($document_type), 1)]),
'transaction' => trans_choice('general.' . Str::plural($type), 1),
'difference' => trans('general.difference'),
'connect_tax' => trans('messages.warning.connect_tax', ['type' => $type]),
'connect_tax' => trans('messages.warning.connect_tax', ['type' => $type]),
];
}