From 51d553bdcd32f60634b00c9d4c90f023035e7707 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 8 Nov 2017 17:33:18 +0100 Subject: [PATCH] =?utf8?q?DATEV::CSV=20Bessere=20wartbarer=20Aufruf=20f?= =?utf8?q?=C3=BCr=20=5Fformat=5Famount?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DATEV/CSV.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})?$/) }, }, { -- 2.20.1