From: G. Richardson Date: Wed, 14 Sep 2016 12:37:24 +0000 (+0200) Subject: Verkauf->Berichte->Aufträge: Abteilung im Bericht X-Git-Tag: release-3.5.4~2034 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d27b7dd63f35a0ac27d617803715ae79f93c9a1c;p=kivitendo-erp.git Verkauf->Berichte->Aufträge: Abteilung im Bericht wenn nach Abteilung gefiltert wird den Namen der Abteilung oben angeben. --- 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};