From d83df93a4dc08d7ecb9047c176b610a5b9cc28ed Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 30 Jul 2007 08:43:03 +0000 Subject: [PATCH] =?utf8?q?1.=20Wenn=20ein=20Artikel=20bei=20Einkauf/Verkau?= =?utf8?q?f=20nicht=20gefunden=20und=20die=20Maske=20"Dieser=20Artikel=20i?= =?utf8?q?st=20nicht=20in=20der=20Datenbank"=20angezeigt=20wird,=20so=20we?= =?utf8?q?rden=20die=20eingegebene=20Artikelnummer,=20Beschreibung,=20Einh?= =?utf8?q?eit=20und=20Verkaufspreis=20wieder=20in=20die=20"Ware=20erfassen?= =?utf8?q?"-Maske=20=C3=BCbernommen.=20Fix=20f=C3=BCr=20Bug=20721.=202.=20?= =?utf8?q?Kosmetik:=20Einr=C3=BCckung,=20Funktionsaufrufe=20etc.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/io.pl | 11 +++++------ bin/mozilla/ir.pl | 9 +++------ bin/mozilla/is.pl | 9 +++------ bin/mozilla/oe.pl | 9 +++------ 4 files changed, 14 insertions(+), 24 deletions(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index f783c19c0..afa4d2341 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -871,12 +871,11 @@ sub new_item { . $locale->text('Part') . qq|
 | . $locale->text('Service'); -print $cgi->hidden("-name" => "previousform", "-value" => $previousform); -map({ print($cgi->hidden("-name" => $_, "-value" => $form->{$_})); } - qw(rowcount vc login password)); - map({ print($cgi->hidden("-name" => $_, "-value" => $form->{"$__$i"})); } - ("partnumber", "description")); -print $cgi->hidden("-name" => "taxaccount2", "-value" => $form->{taxaccounts}); + + print $cgi->hidden("-name" => "previousform", "-value" => $previousform); + map { print $cgi->hidden("-name" => $_, "-value" => $form->{$_}); } qw(rowcount vc login password); + map { print $cgi->hidden("-name" => $_, "-value" => $form->{"${_}_$i"}); } qw(partnumber description unit sellprice); + print $cgi->hidden("-name" => "taxaccount2", "-value" => $form->{taxaccounts}); print qq| diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 0cf01cc15..08b6f1d2f 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -955,14 +955,11 @@ sub update { && ($form->{"description_$i"} eq "")) { $form->{rowcount}--; $form->{"discount_$i"} = ""; - &display_form; - } else { + display_form(); + } else { $form->{"id_$i"} = 0; - $form->{"unit_$i"} = $locale->text('ea'); - - &new_item; - + new_item(); } } } diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index fe0c3ea81..c0f247ce6 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -1344,14 +1344,11 @@ sub update { && ($form->{"description_$i"} eq "")) { $form->{rowcount}--; $form->{"discount_$i"} = ""; - &display_form; - } else { + display_form(); + } else { $form->{"id_$i"} = 0; - $form->{"unit_$i"} = $locale->text('ea'); - - &new_item; - + new_item(); } } } diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 43357a876..9fcd34964 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1314,14 +1314,11 @@ sub update { && ($form->{"description_$i"} eq "")) { $form->{rowcount}--; $form->{"discount_$i"} = ""; - &display_form; - } else { + display_form(); + } else { $form->{"id_$i"} = 0; - $form->{"unit_$i"} = $locale->text('ea'); - - &new_item; - + new_item(); } } } -- 2.20.1