From d316e88eb2ce82eb422dcefecbbaa6704e1124b6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 11 Jan 2007 15:03:35 +0000 Subject: [PATCH] create_backorder() erwartet die Zahlen bereits geparst. --- bin/mozilla/oe.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 89cb39cdd..f0a0b3ca5 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -2141,6 +2141,13 @@ sub invoice { $form->{cp_id} *= 1; + for $i (1 .. $form->{rowcount}) { + map({ $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, + $form->{"${_}_${i}"}) + if ($form->{"${_}_${i}"}) } + qw(ship qty sellprice listprice basefactor)); + } + if ( $form->{type} =~ /_order/ && $form->{currency} ne $form->{defaultcurrency}) { @@ -2230,13 +2237,6 @@ sub invoice { $form->{creditremaining} -= ($form->{oldinvtotal} - $form->{ordtotal}); - for $i (1 .. $form->{rowcount}) { - map({ $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, - $form->{"${_}_${i}"}) - if ($form->{"${_}_${i}"}) } - qw(ship qty sellprice listprice basefactor)); - } - &prepare_invoice; # format amounts -- 2.20.1