From: Thomas Heck Date: Mon, 8 Jul 2013 15:51:00 +0000 (+0200) Subject: Menge mit Nachkommastellen einlesen X-Git-Tag: release-3.1.0beta1~203 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2a61343ffdeee475d57c355d00955ff8f1937aef;p=kivitendo-erp.git Menge mit Nachkommastellen einlesen fixt #2307 --- diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index df2fec8d7..cf0e806ce 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -396,7 +396,10 @@ sub update_delivery_order { my $rows = scalar @{ $form->{item_list} }; if ($rows) { - $form->{"qty_$i"} = 1 unless $form->parse_amount(\%myconfig, $form->{"qty_$i"}); + $form->{"qty_$i"} = $form->parse_amount(\%myconfig, $form->{"qty_$i"}); + if( !$form->{"qty_$i"} ) { + $form->{"qty_$i"} = 1; + } if ($rows > 1) { diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index f6cd5e7ac..ecc5f5577 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -547,7 +547,10 @@ sub update { } if ($rows) { - $form->{"qty_$i"} = ($form->{"qty_$i"} * 1) ? $form->{"qty_$i"} : 1; + $form->{"qty_$i"} = $form->parse_amount(\%myconfig, $form->{"qty_$i"}); + if( !$form->{"qty_$i"} ) { + $form->{"qty_$i"} = 1; + } if ($rows > 1) { diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index e4139ff97..5db8f8e4d 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -597,7 +597,11 @@ sub update { $form->{"lastcost_$i"} = $form->parse_amount(\%myconfig, $form->{"lastcost_$i"}); if ($rows) { - $form->{"qty_$i"} = 1 unless ($form->parse_amount(\%myconfig, $form->{"qty_$i"})); + + $form->{"qty_$i"} = $form->parse_amount(\%myconfig, $form->{"qty_$i"}); + if( !$form->{"qty_$i"} ) { + $form->{"qty_$i"} = 1; + } if ($rows > 1) {