]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Template/Plugin/LxERP.pm
Aufrufe von focus() entfernt.
[mfinanz.git] / SL / Template / Plugin / LxERP.pm
index c26988beb3405c23580eee98a1a92d30a6e488f3..40bf195f205f2569b422ed92448fcf621e6c3f7b 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);
 }
 
@@ -106,4 +108,9 @@ sub abs {
   return $var < 0 ? $var * -1 : $var;
 }
 
+sub t8 {
+  my ($self, $text, @args) = @_;
+  return $::locale->text($text, @args) || $text;
+}
+
 1;