projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c02626d
)
DATEV: Falsche Variable für Nachkommastellen gefixt
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 2 Nov 2015 13:59:34 +0000
(14:59 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 2 Nov 2015 14:01:08 +0000
(15:01 +0100)
Fun fact: das war seit Refactoring in 2008-12-15 kaputt (Commit
40d52f50
).
SL/DATEV/KNEFile.pm
patch
|
blob
|
history
diff --git
a/SL/DATEV/KNEFile.pm
b/SL/DATEV/KNEFile.pm
index
e8ad474
..
9816ac0
100644
(file)
--- 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);