X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FTemplate%2FPlugin%2FLxERP.pm;h=dded29777913a777b375558d55eead40795ddaa1;hb=91ee6cb28c37fe07d001da04808f9c49e1959502;hp=8f3a9980dc4eecce184a5273eafd6e9aa77ed904;hpb=29889ce3aadfc613b1135e833609e7be79134ebf;p=kivitendo-erp.git diff --git a/SL/Template/Plugin/LxERP.pm b/SL/Template/Plugin/LxERP.pm index 8f3a9980d..dded29777 100644 --- a/SL/Template/Plugin/LxERP.pm +++ b/SL/Template/Plugin/LxERP.pm @@ -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); }