From d27b7dd63f35a0ac27d617803715ae79f93c9a1c Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Wed, 14 Sep 2016 14:37:24 +0200 Subject: [PATCH] =?utf8?q?=20Verkauf->Berichte->Auftr=C3=A4ge:=20Abteilung?= =?utf8?q?=20im=20Bericht?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit wenn nach Abteilung gefiltert wird den Namen der Abteilung oben angeben. --- bin/mozilla/oe.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 4753a71d8..4451e34c1 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -986,6 +986,13 @@ sub orders { push @options, $locale->text('Vendor') . " : $form->{vendor}" if $form->{vendor}; push @options, $locale->text('Contact Person') . " : $form->{cp_name}" if $form->{cp_name}; push @options, $locale->text('Department') . " : $department" if $form->{department}; + if ($form->{department_id}) { + unless ($form->{department}) { + require SL::DB::Department; + my $department = SL::DB::Manager::Department->find_by(id => $::form->{department_id}); + push @options, $locale->text('Department') . " : " . $department->description if $department; + } + } push @options, $locale->text('Order Number') . " : $form->{ordnumber}" if $form->{ordnumber}; push @options, $locale->text('Customer Order Number') . " : $form->{cusordnumber}" if $form->{cusordnumber}; push @options, $locale->text('Notes') . " : $form->{notes}" if $form->{notes}; -- 2.20.1