From: Jan Büren Date: Wed, 8 Nov 2017 16:33:18 +0000 (+0100) Subject: DATEV::CSV Bessere wartbarer Aufruf für _format_amount X-Git-Tag: release-3.5.4~646 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=51d553bdcd32f60634b00c9d4c90f023035e7707;p=kivitendo-erp.git DATEV::CSV Bessere wartbarer Aufruf für _format_amount --- diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index 45bd5f6fc..4a5fb9e23 100644 --- a/SL/DATEV/CSV.pm +++ b/SL/DATEV/CSV.pm @@ -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})?$/) }, }, {