mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for zip documents
This commit is contained in:
parent
fbea193f75
commit
43a29c2bb0
@ -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…
x
Reference in New Issue
Block a user