From 9b54043cf1e78a2b9eb08b1c9a89c043f0501bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Mon, 3 Mar 2025 12:04:44 +0300 Subject: [PATCH] added document real type check --- app/Traits/Documents.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Traits/Documents.php b/app/Traits/Documents.php index 81968a110..db0894148 100644 --- a/app/Traits/Documents.php +++ b/app/Traits/Documents.php @@ -267,6 +267,13 @@ trait Documents return true; } + public function getRealTypeOfDocument(string $type): string + { + $type = $this->getRealTypeOfRecurringDocument($type); + + return $type; + } + public function getRealTypeOfRecurringDocument(string $recurring_type): string { return Str::replace('-recurring', '', $recurring_type);