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);