From: Sven Schöling Date: Tue, 22 Mar 2016 12:02:43 +0000 (+0100) Subject: Form::round_amount: nicht initialisierte Variable $places X-Git-Tag: release-3.4.1~295 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/c841eb4f1f375e1a66144b61ef82be1c9edc687d Form::round_amount: nicht initialisierte Variable $places --- diff --git a/SL/Form.pm b/SL/Form.pm index cc9881413..1f380b7cf 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -951,6 +951,8 @@ sub round_amount { return 0 if !defined $amount; + $places //= 0; + if ($adjust) { my $precision = $::instance_conf->get_precision || 0.01; return $self->round_amount( $self->round_amount($amount / $precision, 0) * $precision, $places);