From 8be9afee4fef39c4753399a2d4a7c42a5658f828 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 5 Mar 2008 13:33:56 +0000 Subject: [PATCH] =?utf8?q?Nur=20dann=20rowcount=20von=20form=5Fdetails=20a?= =?utf8?q?bleiten,=20wenn=20ein=20bestehender=20Vorgang=20aus=20der=20Date?= =?utf8?q?nbank=20ausgelesen=20wird,=20nicht=20aber=20z.B.=20beim=20Umwand?= =?utf8?q?eln=20von=20Angeot=20in=20Auftrag.=20Fix=20f=C3=BCr=20Commit=203?= =?utf8?q?140.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index f6648f194..4d40e0bc7 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -171,11 +171,20 @@ sub edit { set_headings("edit"); &order_links; + + $form->{rowcount} = 0; + foreach $ref (@{ $form->{form_details} }) { + $form->{rowcount}++; + map { $form->{"${_}_$form->{rowcount}"} = $ref->{$_} } keys %{$ref}; + } + &prepare_order; + if ($form->{print_and_save}) { $form->{language_id} = $language_id; $form->{printer_id} = $printer_id; } + &display_form; $lxdebug->leave_sub(); @@ -233,11 +242,6 @@ sub prepare_order { $form->{formname} ||= $form->{type}; - $form->{rowcount} = 0; - foreach $ref (@{ $form->{form_details} }) { - $form->{rowcount}++; - map { $form->{"${_}_$form->{rowcount}"} = $ref->{$_} } keys %{$ref}; - } for my $i (1 .. $form->{rowcount}) { $form->{"reqdate_$i"} ||= $form->{"deliverydate_$i"}; $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{"discount_$i"} * ($form->{id} ? 100 : 1)); -- 2.20.1