projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[kivitendo-erp.git]
/
SL
/
Template
/
Plugin
/
LxERP.pm
diff --git
a/SL/Template/Plugin/LxERP.pm
b/SL/Template/Plugin/LxERP.pm
index
8f3a998
..
40bf195
100644
(file)
--- 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) = @_;
sub format_percent {
my ($self, $var, $places, $skip_zero) = @_;
+ $places ||= 2;
+
return $self->format_amount($var * 100, $places, $skip_zero);
}
return $self->format_amount($var * 100, $places, $skip_zero);
}
@@
-107,9
+109,8
@@
sub abs {
}
sub t8 {
}
sub t8 {
- my ($self, $text, $args) = @_;
- $self->{locale} ||= Locale->new($::myconfig{countrycode}, 'all');
- return $self->{locale}->text($text, @args) || $text;
+ my ($self, $text, @args) = @_;
+ return $::locale->text($text, @args) || $text;
}
1;
}
1;