From: Moritz Bunkus Date: Mon, 2 Nov 2015 13:59:34 +0000 (+0100) Subject: DATEV: Falsche Variable für Nachkommastellen gefixt X-Git-Tag: release-3.4.1~604 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cd1ec53835a1b076d30f0847d2944e445e994e64;p=kivitendo-erp.git DATEV: Falsche Variable für Nachkommastellen gefixt Fun fact: das war seit Refactoring in 2008-12-15 kaputt (Commit 40d52f50). --- 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);