From: Jan Büren Date: Mon, 12 Nov 2018 10:01:16 +0000 (+0100) Subject: DATEV::CSV undef ist kein gültiger Wert für den DATEV-Export X-Git-Tag: release-3.5.4~221 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=15a8545085842e1c922ebbe4b50cb23fd02b4040;p=kivitendo-erp.git DATEV::CSV undef ist kein gültiger Wert für den DATEV-Export fixt den Fehler beim Testfall --- diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index a4585de26..1f31f169b 100644 --- a/SL/DATEV/CSV.pm +++ b/SL/DATEV/CSV.pm @@ -113,7 +113,7 @@ my @kivitendo_to_datev = ( type => 'Text', default => '', input_check => sub { my ($check) = @_; return 1 unless $check; return (ref (DateTime->from_kivitendo($check)) eq 'DateTime') }, - formatter => sub { my ($input) = @_; return undef unless $input; return trim(DateTime->from_kivitendo($input)->strftime('%e%m%y')) }, + formatter => sub { my ($input) = @_; return '' unless $input; return trim(DateTime->from_kivitendo($input)->strftime('%e%m%y')) }, valid_check => sub { my ($check) = @_; return 1 unless $check; return ($check =~ m/^[0-9]{5,6}$/) }, }, {