From: Jan Büren Date: Mon, 4 Dec 2017 11:11:15 +0000 (+0100) Subject: Revert "DATEV:CSV nicht gesetztes Fälligkeitsdatum für Belegfeld2 akzeptieren" X-Git-Tag: release-3.5.4~609 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d743ef9574e19859c324d3bf89724f8e380fe3cf;p=kivitendo-erp.git Revert "DATEV:CSV nicht gesetztes Fälligkeitsdatum für Belegfeld2 akzeptieren" This reverts commit e9eaca9380ad2f3062d6b8cb75376a7d01559af9. --- diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index 9ac29c036..1717bdf2e 100644 --- a/SL/DATEV/CSV.pm +++ b/SL/DATEV/CSV.pm @@ -111,9 +111,9 @@ my @kivitendo_to_datev = ( max_length => 12, type => 'Text', default => '', - input_check => sub { my ($check) = @_; return 1 unless $check; return (ref (DateTime->from_kivitendo($check)) eq 'DateTime') }, - formatter => sub { my ($input) = @_; return DateTime->from_kivitendo($input)->strftime('%d%m%y') }, - valid_check => sub { my ($check) = @_; return ($check =~ m/^[0-9]{6}$/) }, + input_check => sub { my ($check) = @_; return (ref (DateTime->from_kivitendo($check)) eq 'DateTime') }, + formatter => sub { my ($input) = @_; return DateTime->from_kivitendo($input)->strftime('%d%m') }, + valid_check => sub { my ($check) = @_; return ($check =~ m/^[0-9]{4}$/) }, }, { kivi_datev_name => 'not yet implemented',