]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/io.pl
Merge von 639,640 aus unstable: Rundungsfehler nach erneuern
[kivitendo-erp.git] / bin / mozilla / io.pl
index 0fe78fd2a0e542287804aa79973daaaf7574283b..c0ab3dc9a6c29efe254bef943337517b51483145 100644 (file)
@@ -254,10 +254,13 @@ sub display_row {
         qq|<td><input name="description_$i" size=30 value="$form->{"description_$i"}"></td>|;
     }
 
+    (my $qty_dec)     = ($form->{"qty_$i"} =~ /\.(\d+)/);
+    $qty_dec          = length $qty_dec;
+
     $column_data{qty} =
-        qq|<td align=right><input name="qty_$i" size=5 value=|
-      . $form->format_amount(\%myconfig, $form->{"qty_$i"}, 0)
-      qq|></td>|;
+        qq|<td align=right><input name="qty_$i" size=5 value=|.
+          $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec)
+       .qq|></td>|;
     $column_data{ship} =
         qq|<td align=right><input name="ship_$i" size=5 value=|
       . $form->format_amount(\%myconfig, $form->{"ship_$i"})