X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/bf10f3138d563538d95d93d572738d07d8fd6fa4..e44cbe168d7cdaedc952a23102d8c834bd3a2993:/bin/mozilla/is.pl diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index ae8c7748f..c6afe176c 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -210,7 +210,12 @@ sub prepare_invoice { $form->{"sellprice_$i"} = $form->format_amount(\%myconfig, $form->{"sellprice_$i"}, $decimalplaces); - $form->{"qty_$i"} = $form->format_amount(\%myconfig, $form->{"qty_$i"}); + + (my $dec_qty) = ($form->{"qty_$i"} =~ /\.(\d+)/); + $dec_qty = length $dec_qty; + + $form->{"qty_$i"} = $form->format_amount(\%myconfig, $form->{"qty_$i"}, + $dec_qty); map { $form->{"${_}_$i"} =~ s/\"/"/g } qw(partnumber description unit partnotes);