From: Jan Büren Date: Tue, 2 Feb 2021 11:21:12 +0000 (+0100) Subject: Einkaufsbericht: Anzeigefilter um Projektbeschreibung erweitert X-Git-Tag: kivitendo-mebil_0.1-0~9^2~490 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=457c1bb063d985acdd97f31d450fc58437595e45;p=kivitendo-erp.git Einkaufsbericht: Anzeigefilter um Projektbeschreibung erweitert --- diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 65ccc4b1b..c993d9ed7 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1061,11 +1061,14 @@ sub ap_transactions { my $department_description; $department_description = SL::DB::Manager::Department->find_by(id => $form->{department_id})->description if $form->{department_id}; + my $project_description; + $project_description = SL::DB::Manager::Project->find_by(id => $form->{project_id})->description if $form->{project_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') . " : $department_description" if ($form->{department_id}); + push @options, $locale->text('Project') . " : $project_description" if ($project_description); 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});