X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDATEV%2FKNEFile.pm;h=9816ac0b7425f259947971c6bf8df75009cc7d82;hb=d1d70f4ad540f4d57d1b577b337b6db38074e223;hp=e8ad4748acdb5f280efaf5780930b0ffa35a54de;hpb=c510d88bbfea6818ffafaddb7286e88aec96d3b8;p=kivitendo-erp.git diff --git a/SL/DATEV/KNEFile.pm b/SL/DATEV/KNEFile.pm index e8ad4748a..9816ac0b7 100644 --- a/SL/DATEV/KNEFile.pm +++ b/SL/DATEV/KNEFile.pm @@ -71,7 +71,6 @@ sub format_amount { my $self = shift; my $amount = shift; my $width = shift; - our $stellen; $amount =~ s/-//; my ($places, $decimal_places) = split m/\./, "$amount"; @@ -81,7 +80,7 @@ sub format_amount { if (0 < $width) { $width -= 2; - $places = sprintf("\%0${stellen}d", $places); + $places = sprintf("\%0${width}d", $places); } $decimal_places .= '0' if (2 > length $decimal_places);