From 57fae76ebcb132282f9330d785183594087a93ec Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 11 Jan 2007 14:42:50 +0000 Subject: [PATCH] Umwandeln in Angebot und Auftrag: prepare_order erwartet, dass die Zahlen bereits geparst sind. --- bin/mozilla/io.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 1add7b354..c7d0aa37e 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1171,6 +1171,13 @@ sub order { \%myconfig, $form->{currency}, $form->{transdate}, $buysell ))); + for $i (1 .. $form->{rowcount}) { + map({ $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, + $form->{"${_}_${i}"}) + if ($form->{"${_}_${i}"}) } + qw(ship qty sellprice listprice basefactor)); + } + &prepare_order; &display_form; @@ -1224,6 +1231,13 @@ sub quotation { \%myconfig, $form->{currency}, $form->{transdate}, $buysell ))); + for $i (1 .. $form->{rowcount}) { + map({ $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, + $form->{"${_}_${i}"}) + if ($form->{"${_}_${i}"}) } + qw(ship qty sellprice listprice basefactor)); + } + &prepare_order; &display_form; -- 2.20.1