epic-ts
[kivitendo-erp.git] / SL / DATEV / KNEFile.pm
index c5f60ea..9816ac0 100644 (file)
@@ -1,5 +1,7 @@
 package SL::DATEV::KNEFile;
 
+use strict;
+
 sub new {
   my $type = shift;
   my $self = {};
@@ -78,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);