X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c510d88bbfea6818ffafaddb7286e88aec96d3b8..49b7cab6d1510010fac0345701ba8e46ea9b39a5:/SL/Template/Plugin/LxERP.pm diff --git a/SL/Template/Plugin/LxERP.pm b/SL/Template/Plugin/LxERP.pm index 66f32689b..8f3a9980d 100644 --- a/SL/Template/Plugin/LxERP.pm +++ b/SL/Template/Plugin/LxERP.pm @@ -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;