From: Bernd Bleßmann Date: Thu, 11 Feb 2021 17:49:36 +0000 (+0100) Subject: File: POD-Korrektur: File-Typen sind singular X-Git-Tag: kivitendo-mebil_0.1-0~9^2~477 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=83fac3d1ba84a900cd1d0c0d48db544831b0dd2b;p=kivitendo-erp.git File: POD-Korrektur: File-Typen sind singular --- diff --git a/SL/File.pm b/SL/File.pm index 93655f6f7..e232908e6 100644 --- a/SL/File.pm +++ b/SL/File.pm @@ -388,7 +388,7 @@ SL::File - The intermediate Layer for handling files object_id => $self->object_id, object_type => $self->object_type, mime_type => 'application/pdf', - file_type => 'documents', + file_type => 'document', file_contents => 'this is no pdf'); my $file1 = SL::File->get(id => $id); @@ -401,7 +401,7 @@ SL::File - The intermediate Layer for handling files SL::File->rename(id => $id,to => $newname); my $files1 = SL::File->get_all(object_id => $object_id, object_type => $object_type, - file_type => 'images', # may be optional + file_type => 'image', # may be optional source => 'uploaded' # may be optional ); @@ -418,13 +418,13 @@ There are three types of files: =over 2 -=item - documents, +=item - document, which can be generated files (for sales), scanned files or uploaded files (for purchase) for an ERP-object. They can exist in different versions. The versioning is handled implicit. All versions of a file may be deleted by the user if she/he is allowed to do this. -=item - attachments, +=item - attachment, which have additional information for an ERP-objects. They are uploadable. If a filename still exists on a ERP-Object the new uploaded file is a new version of this or it must be renamed by user. @@ -433,7 +433,7 @@ There are generic attachments for a specific document group (like sales_invoices combinide/merged with the document-file in the time of printing. Today only PDF-Attachmnets can be merged with the generated document-PDF. -=item - images, +=item - image, they are like attachments, but they may be have thumbnails for displaying. So the must have an image format like png,jpg. The versioning is like attachments @@ -526,7 +526,7 @@ The Type of the ERP-object like "sales_quotation" for a new file. A clear mappin =item C -The type may be "documents", "attachments" or "images" for a new file. +The type may be "document", "attachment" or "image" for a new file. =item C @@ -631,7 +631,7 @@ The Type of the ERP-object like "sales_quotation". A clear mapping to the class/ =item C -The type may be "documents", "attachments" or "images". This parameter is optional. +The type may be "document", "attachment" or "image". This parameter is optional. =item C diff --git a/SL/File/Object.pm b/SL/File/Object.pm index 3aa553d23..42a651f98 100644 --- a/SL/File/Object.pm +++ b/SL/File/Object.pm @@ -151,7 +151,7 @@ SL::File::Object - a filemangement object wrapper my ($object) = SL::File->get_all(object_id => $object_id, object_type => $object_type, - file_type => 'images', # may be optional + file_type => 'image', # may be optional source => 'uploaded' # may be optional ); # read attributes