From 91ee6cb28c37fe07d001da04808f9c49e1959502 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 25 Jan 2010 16:47:27 +0100 Subject: [PATCH] format_percent auf 2 stellen defaulten --- SL/Template/Plugin/LxERP.pm | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.20.1