From: Moritz Bunkus Date: Wed, 28 Feb 2007 10:46:49 +0000 (+0000) Subject: Dialogbuchen: Beim Aufrufen bestehender Buchungen die Projektnummern richtig in der... X-Git-Tag: release-2.4.3^2~650 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/9c2d49bb4dae241b4290afaeeb762d9c0e584301?ds=inline Dialogbuchen: Beim Aufrufen bestehender Buchungen die Projektnummern richtig in der Drop-Down-Box vorauswählen. --- diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index a20554d7f..5154a3fcf 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -148,6 +148,8 @@ sub edit { $form->{"credit_$j"} += $form->{"tax_$j"}; } } + $form->{"project_id_$j"} = $ref->{project_id}; + } else { $form->{"accno_$i"} = "$ref->{accno}--$ref->{tax_id}"; for (qw(fx_transaction source memo)) { $form->{"${_}_$i"} = $ref->{$_} } @@ -159,6 +161,7 @@ sub edit { $form->{"credit_$i"} = $ref->{amount}; } $form->{"taxchart_$i"} = "0--0.00"; + $form->{"project_id_$i"} = $ref->{project_id}; $i++; } if ($ref->{taxaccno} && !$tax) { @@ -168,7 +171,6 @@ sub edit { $taxaccno = ""; $tax = 0; } - } $form->{rowcount} = $i;