Revert "DATEV:CSV nicht gesetztes Fälligkeitsdatum für Belegfeld2 akzeptieren"
authorJan Büren <jan@kivitendo-premium.de>
Mon, 4 Dec 2017 11:11:15 +0000 (12:11 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Mon, 4 Dec 2017 11:11:15 +0000 (12:11 +0100)
This reverts commit e9eaca9380ad2f3062d6b8cb75376a7d01559af9.

SL/DATEV/CSV.pm

index 9ac29c0..1717bdf 100644 (file)
@@ -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',