From: Moritz Bunkus Date: Tue, 28 Feb 2017 08:58:15 +0000 (+0100) Subject: Dateimanagement: Anhänge-aller-Artikel-Download: auch für andere OE-Typen X-Git-Tag: release-3.5.4~1423 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ccffabd4b1ecf4d3554ef3a86a04ac925b7fe9e3;p=kivitendo-erp.git Dateimanagement: Anhänge-aller-Artikel-Download: auch für andere OE-Typen --- diff --git a/SL/Controller/DownloadZip.pm b/SL/Controller/DownloadZip.pm index 3304ff66a..92a03fcf7 100644 --- a/SL/Controller/DownloadZip.pm +++ b/SL/Controller/DownloadZip.pm @@ -43,8 +43,9 @@ sub action_download_orderitems_files { #my $name_encoding = 'cp850'; my $name_encoding = 'UTF-8'; - # today only sales_order implementation ! - if ( $object_id && $object_type eq 'sales_order' && $element_type eq 'part' ) { + if ( $object_id + && ($object_type =~ m{^(?:sales_order|purchase_order|sales_quotation|request_quotation)$}) + && ($element_type eq 'part')) { my $orderitems = SL::DB::Manager::OrderItem->get_all(query => ['order.id' => $object_id ], with_objects => [ 'order', 'part' ], sort_by => 'part.partnumber ASC');