Revision ccffabd4
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Controller/DownloadZip.pm | ||
---|---|---|
43 | 43 |
#my $name_encoding = 'cp850'; |
44 | 44 |
my $name_encoding = 'UTF-8'; |
45 | 45 |
|
46 |
# today only sales_order implementation ! |
|
47 |
if ( $object_id && $object_type eq 'sales_order' && $element_type eq 'part' ) { |
|
46 |
if ( $object_id |
|
47 |
&& ($object_type =~ m{^(?:sales_order|purchase_order|sales_quotation|request_quotation)$}) |
|
48 |
&& ($element_type eq 'part')) { |
|
48 | 49 |
my $orderitems = SL::DB::Manager::OrderItem->get_all(query => ['order.id' => $object_id ], |
49 | 50 |
with_objects => [ 'order', 'part' ], |
50 | 51 |
sort_by => 'part.partnumber ASC'); |
Auch abrufbar als: Unified diff
Dateimanagement: Anhänge-aller-Artikel-Download: auch für andere OE-Typen