Form::round_amount: nicht initialisierte Variable $places
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 22 Mar 2016 12:02:43 +0000 (13:02 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 22 Mar 2016 12:02:43 +0000 (13:02 +0100)
SL/Form.pm

index cc98814..1f380b7 100644 (file)
@@ -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);