From 93f06915a1f2444585aeb8ed32f849d08da7b07a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 15 Dec 2017 10:51:05 +0100 Subject: [PATCH] DATEV: auch Punkte in UStID-Nummern automatisch entfernen --- SL/DATEV/CSV.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index c06ee7040..5c1e7ec44 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); -- 2.20.1