added document real type check
This commit is contained in:
parent
e06a26d62e
commit
9b54043cf1
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue