Bei fehlender Übersetzung nicht übersetzten Begriff zurückggeben.
[kivitendo-erp.git] / SL / Template / Plugin / LxERP.pm
index 66f3268..8f3a998 100644 (file)
@@ -23,6 +23,13 @@ sub format_amount {
   return '';
 }
 
+sub round_amount {
+  my ($self, $var, $places, $skip_zero) = @_;
+
+  return $main::form->round_amount($var * 1, $places) unless $skip_zero && $var == 0;
+  return '';
+}
+
 sub format_amount_units {
   my ($self, $amount, $amount_unit, $part_unit) = @_;
 
@@ -99,4 +106,10 @@ sub abs {
   return $var < 0 ? $var * -1 : $var;
 }
 
+sub t8 {
+  my ($self, $text, $args) = @_;
+  $self->{locale} ||= Locale->new($::myconfig{countrycode}, 'all');
+  return $self->{locale}->text($text, @args) || $text;
+}
+
 1;