From: Moritz Bunkus Date: Tue, 28 Feb 2017 08:38:11 +0000 (+0100) Subject: ActionBar: »Anhänge aller Artikel herunterladen« bei Angeboten/Aufträgen wieder imple... X-Git-Tag: release-3.5.4~1264 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a59f11b0bc1e3ce6d98f704a061be0c09e23086f;p=kivitendo-erp.git ActionBar: »Anhänge aller Artikel herunterladen« bei Angeboten/Aufträgen wieder implementiert --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index bb34a4655..12c689e1c 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1134,6 +1134,12 @@ sub _setup_edit_action_bar { t8('E-mail'), call => [ 'kivi.Order.email' ], ], + action => [ + t8('Download attachments of all parts'), + call => [ 'kivi.File.downloadOrderitemsFiles', $::form->{type}, $::form->{id} ], + disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, + only_if => $::instance_conf->get_doc_storage, + ], ], # end of combobox "Export" action => [ diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index b024853cc..f19a2876c 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -406,6 +406,12 @@ sub setup_oe_action_bar { call => [ 'kivi.SalesPurchase.show_email_dialog' ], checks => [ @req_trans_desc ], ], + action => [ + t8('Download attachments of all parts'), + call => [ 'kivi.File.downloadOrderitemsFiles', $::form->{type}, $::form->{id} ], + disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, + only_if => $::instance_conf->get_doc_storage, + ], ], #end of combobox "Export" combobox => [ diff --git a/locale/de/all b/locale/de/all index db1a23021..74caa926d 100755 --- a/locale/de/all +++ b/locale/de/all @@ -1020,6 +1020,7 @@ $self->{texts} = { 'Download PDF' => 'PDF herunterladen', 'Download PDF, do not print' => 'Nicht drucken, sondern PDF herunterladen', 'Download SEPA XML export file' => 'SEPA-XML-Exportdatei herunterladen', + 'Download attachments of all parts' => 'Anhänge aller Artikel herunterladen', 'Download list of payments as PDF' => 'Zahlungsliste als PDF herunterladen', 'Download picture' => 'Bild herunterladen', 'Download sample file' => 'Beispieldatei herunterladen',