From: Niclas Zimmermann Date: Fri, 9 Nov 2012 11:31:46 +0000 (+0100) Subject: Globale Projektnummer in Einzelpositionen X-Git-Tag: release-3.0.0beta2~10^2~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=155f106a7d0b0bbd3c5e1d1aa5989bd08883e626;p=kivitendo-erp.git Globale Projektnummer in Einzelpositionen In Debitoren/Kreditorenbuchungen wird jetzt die globale Projektnummer als Projektnummer in der letzten Position übernommen. Behebt #1939. --- 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;