From: Moritz Bunkus Date: Thu, 11 Jan 2007 15:03:35 +0000 (+0000) Subject: create_backorder() erwartet die Zahlen bereits geparst. X-Git-Tag: release-2.4.1~1^2~56 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d316e88eb2ce82eb422dcefecbbaa6704e1124b6;p=kivitendo-erp.git create_backorder() erwartet die Zahlen bereits geparst. --- 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