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) = @_;
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;