From: Bernd Bleßmann Date: Mon, 23 Sep 2019 11:14:24 +0000 (+0200) Subject: Bericht EK-Rg/Kreditorenbuchungen: Filter nach Abteilung als Option anzeigen X-Git-Tag: release-3.5.6.1~488 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=94ca2a659164fcb3cd7a08504d67e03efde8a8a5;p=kivitendo-erp.git Bericht EK-Rg/Kreditorenbuchungen: Filter nach Abteilung als Option anzeigen --- diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 29da92dca..6b83d385e 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1054,10 +1054,13 @@ sub ap_transactions { $report->set_sort_indicator($form->{sort}, $form->{sortdir}); + my $department_description; + $department_description = SL::DB::Manager::Department->find_by(id => $form->{department_id})->description if $form->{department_id}; + my @options; 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') . " : $form->{department}" if ($form->{department}); + push @options, $locale->text('Department') . " : $department_description" if ($form->{department_id}); push @options, $locale->text('Invoice Number') . " : $form->{invnumber}" if ($form->{invnumber}); push @options, $locale->text('Order Number') . " : $form->{ordnumber}" if ($form->{ordnumber}); push @options, $locale->text('Notes') . " : $form->{notes}" if ($form->{notes});