format_percent auf 2 stellen defaulten
[kivitendo-erp.git] / SL / Template / Plugin / LxERP.pm
index 8f3a998..dded297 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);
 }