]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/oe.pl
Menge mit Nachkommastellen einlesen
[mfinanz.git] / bin / mozilla / oe.pl
index e4139ff97c17aa5c171455649b271261a5c8a32b..5db8f8e4db6778e7c0c4b8c15b12b76891ece148 100644 (file)
@@ -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) {