Revert "DATEV belegfeld2 wieder als Fälligkeitsfeld im Format DDMMYY implementiert"
authorJan Büren <jan@kivitendo-premium.de>
Mon, 4 Dec 2017 11:11:42 +0000 (12:11 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Mon, 4 Dec 2017 11:11:42 +0000 (12:11 +0100)
This reverts commit 982f53983fed52367985246082546fda053d59d5.

SL/DATEV/CSV.pm

index 1717bdf..6d65945 100644 (file)
@@ -106,14 +106,12 @@ my @kivitendo_to_datev = (
                               formatter       => sub { my ($input) = @_; return substr($input, 0, 12) },
                             },
                             {
-                              kivi_datev_name => 'belegfeld2',
+                              kivi_datev_name => 'not yet implemented',
                               csv_header_name => t8('Invoice Field 2'),
                               max_length      => 12,
                               type            => 'Text',
                               default         => '',
-                              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}$/) },
+                              valid_check     => sub { my ($check) = @_; return ($check =~ m/[ -~]{1,12}/) },
                             },
                             {
                               kivi_datev_name => 'not yet implemented',