DATEV::CSV Bessere wartbarer Aufruf für _format_amount
authorJan Büren <jan@kivitendo-premium.de>
Wed, 8 Nov 2017 16:33:18 +0000 (17:33 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Wed, 8 Nov 2017 16:34:29 +0000 (17:34 +0100)
SL/DATEV/CSV.pm

index 45bd5f6..4a5fb9e 100644 (file)
@@ -20,7 +20,7 @@ my @kivitendo_to_datev = (
                               type            => 'Value',
                               required        => 1,
                               input_check     => sub { my ($input) = @_; return (looks_like_number($input) && length($input) <= 13) },
-                              formatter       => sub { my ($input) = @_; return _format_amount($input) },
+                              formatter       => \&_format_amount,
                               valid_check     => sub { my ($check) = @_; return ($check =~ m/^\d{1,10}(\,\d{1,2})?$/) },
                             },
                             {