added document real type check

This commit is contained in:
Cihan Şentürk 2025-03-03 12:04:44 +03:00 committed by GitHub
parent e06a26d62e
commit 9b54043cf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -267,6 +267,13 @@ trait Documents
return true; return true;
} }
public function getRealTypeOfDocument(string $type): string
{
$type = $this->getRealTypeOfRecurringDocument($type);
return $type;
}
public function getRealTypeOfRecurringDocument(string $recurring_type): string public function getRealTypeOfRecurringDocument(string $recurring_type): string
{ {
return Str::replace('-recurring', '', $recurring_type); return Str::replace('-recurring', '', $recurring_type);