From: Moritz Bunkus Date: Fri, 15 Dec 2017 12:44:17 +0000 (+0100) Subject: Revert "DATEV: auch Punkte in UStID-Nummern automatisch entfernen" X-Git-Tag: release-3.5.4~575 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3800c37e357420450dacdfbd2ba04b37fd87e642;p=kivitendo-erp.git Revert "DATEV: auch Punkte in UStID-Nummern automatisch entfernen" This reverts commit 93f06915a1f2444585aeb8ed32f849d08da7b07a. --- diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index 6ac460c44..18389fe2e 100644 --- a/SL/DATEV/CSV.pm +++ b/SL/DATEV/CSV.pm @@ -231,10 +231,10 @@ my @kivitendo_to_datev = ( input_check => sub { my ($ustid) = @_; return 1 if ('' eq $ustid); - $ustid =~ s{[\s.]+}{}g; + $ustid =~ s{\s+}{}g; return ($ustid =~ m/^CH|^[A-Z]{2}\w{5,13}$/); }, - formatter => sub { my ($input) = @_; $input =~ s/[\s.]+//g; return $input }, + formatter => sub { my ($input) = @_; $input =~ s/\s//g; return $input }, valid_check => sub { my ($ustid) = @_; return 1 if ('' eq $ustid);