From 8c1ef5dbfcbb079169c0aeb286656fc3513d2fe0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 4 Dec 2017 12:11:42 +0100 Subject: [PATCH] =?utf8?q?Revert=20"DATEV=20belegfeld2=20wieder=20als=20F?= =?utf8?q?=C3=A4lligkeitsfeld=20im=20Format=20DDMMYY=20implementiert"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This reverts commit 982f53983fed52367985246082546fda053d59d5. --- SL/DATEV/CSV.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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', -- 2.20.1