]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Template/Plugin/LxERP.pm
format_percent auf 2 stellen defaulten
[mfinanz.git] / SL / Template / Plugin / LxERP.pm
index 8f3a9980dc4eecce184a5273eafd6e9aa77ed904..dded29777913a777b375558d55eead40795ddaa1 100644 (file)
@@ -42,6 +42,8 @@ sub format_amount_units {
 sub format_percent {
   my ($self, $var, $places, $skip_zero) = @_;
 
+  $places ||= 2;
+
   return $self->format_amount($var * 100, $places, $skip_zero);
 }