From: Jan Büren Date: Mon, 4 Dec 2017 11:11:42 +0000 (+0100) Subject: Revert "DATEV belegfeld2 wieder als Fälligkeitsfeld im Format DDMMYY implementiert" X-Git-Tag: release-3.5.4~607 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8c1ef5dbfcbb079169c0aeb286656fc3513d2fe0;p=kivitendo-erp.git Revert "DATEV belegfeld2 wieder als Fälligkeitsfeld im Format DDMMYY implementiert" This reverts commit 982f53983fed52367985246082546fda053d59d5. --- diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index 1717bdf2e..6d6594582 100644 --- a/SL/DATEV/CSV.pm +++ b/SL/DATEV/CSV.pm @@ -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',