]> wagnertech.de Git - mfinanz.git/commitdiff
DATEV: auch Punkte in UStID-Nummern automatisch entfernen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 15 Dec 2017 09:51:05 +0000 (10:51 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 15 Dec 2017 10:55:10 +0000 (11:55 +0100)
SL/DATEV/CSV.pm

index c06ee704031fc1865ac152b916871cc0b38740d3..5c1e7ec44d58d750b29f0b3ef7e105a86ac2e098 100644 (file)
@@ -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);