Minor fixes for zip documents
This commit is contained in:
parent
fbea193f75
commit
43a29c2bb0
1 changed files with 7 additions and 1 deletions
|
|
@ -126,6 +126,12 @@ class ZipDocuments implements ShouldQueue
|
|||
$number = '_'.$document->documentable->number;
|
||||
}
|
||||
|
||||
return "{$date}_{$document->documentable->translate_entity()}{$number}_{$filename}";
|
||||
$entity = ctrans('texts.document');
|
||||
|
||||
if(isset($document->documentable)){
|
||||
$entity = $document->documentable->translate_entity();
|
||||
}
|
||||
|
||||
return "{$date}_{$entity}{$number}_{$filename}";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue