From 155f106a7d0b0bbd3c5e1d1aa5989bd08883e626 Mon Sep 17 00:00:00 2001 From: Niclas Zimmermann Date: Fri, 9 Nov 2012 12:31:46 +0100 Subject: [PATCH] Globale Projektnummer in Einzelpositionen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In Debitoren/Kreditorenbuchungen wird jetzt die globale Projektnummer als Projektnummer in der letzten Position übernommen. Behebt #1939. --- bin/mozilla/ap.pl | 2 +- bin/mozilla/ar.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 0654d860b..dcca628b3 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -569,7 +569,7 @@ $jsscript NTI($cgi->popup_menu('-name' => "project_id_$i", '-values' => \@project_values, '-labels' => \%project_labels, - '-default' => $form->{"project_id_$i"} )); + '-default' => ($i==$form->{rowcount})? $form->{globalproject_id} : $form->{"project_id_$i"} )); print qq| diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 80c87f966..655f35a9f 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -333,7 +333,7 @@ sub form_header { my $transaction = { amount => $form->{"amount_$i"}, tax => $form->{"tax_$i"}, - project_id => $form->{"project_id_$i"}, + project_id => ($i==$form->{rowcount}) ? $form->{globalproject_id} : $form->{"project_id_$i"}, }; my $selected_accno_full; -- 2.20.1