X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FPayPostingImport.pm;h=6d9fd2ac4bd0a18c51604d0c5e303a86a85ce5c7;hb=f5341298db5dbe7e14d0f97525f4f6226e5940c0;hp=03a44d0bb81b8900afce5098b2a5b0427a5c3c6b;hpb=f5e39f21bd5f9c5dd9a8bbbdfa34d0c17a2fc44d;p=kivitendo-erp.git diff --git a/SL/Controller/PayPostingImport.pm b/SL/Controller/PayPostingImport.pm index 03a44d0bb..6d9fd2ac4 100644 --- a/SL/Controller/PayPostingImport.pm +++ b/SL/Controller/PayPostingImport.pm @@ -28,7 +28,7 @@ sub action_import_datev_pay_postings { my $filename= $::form->{ATTACHMENTS}{file}{filename}; # check name and first fields of CSV data die t8("Wrong file name, expects name like: DTVF_*_LOHNBUCHUNG*.csv") unless $filename =~ /^DTVF_.*_LOHNBUCHUNGEN_LUG.*\.csv$/; - die t8("not a valid DTVF file, expected first field in A1 'DTVF'") unless ($::form->{file} =~ m/^"DTVF";/); + die t8("not a valid DTVF file, expected first field in A1 'DTVF'") unless ($::form->{file} =~ m/^('|")?DTVF/); die t8("not a valid DTVF file, expected field header start with 'Umsatz; (..) ;Konto;Gegenkonto'") unless ($::form->{file} =~ m/Umsatz;S\/H;;;;;Konto;Gegenkonto.*;;Belegdatum;Belegfeld 1;Belegfeld 2;;Buchungstext/);