From: Sven Schöling Date: Mon, 25 Jan 2010 15:47:27 +0000 (+0100) Subject: format_percent auf 2 stellen defaulten X-Git-Tag: release-2.6.2beta1~331^2~13 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=91ee6cb28c37fe07d001da04808f9c49e1959502;p=kivitendo-erp.git format_percent auf 2 stellen defaulten --- 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); }