From a59f11b0bc1e3ce6d98f704a061be0c09e23086f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 28 Feb 2017 09:38:11 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20=C2=BBAnh=C3=A4nge=20aller=20Artike?= =?utf8?q?l=20herunterladen=C2=AB=20bei=20Angeboten/Auftr=C3=A4gen=20wiede?= =?utf8?q?r=20implementiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Order.pm | 6 ++++++ bin/mozilla/oe.pl | 6 ++++++ locale/de/all | 1 + 3 files changed, 13 insertions(+) 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', -- 2.20.1