projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c312f3b
)
DATEV-CSV-Export leere Feldwerte für Belegfeld2 erlauben
author
Jan Büren
<jan@kivitendo.de>
Mon, 15 Oct 2018 10:39:34 +0000
(12:39 +0200)
committer
Jan Büren
<jan@kivitendo.de>
Mon, 15 Oct 2018 12:30:42 +0000
(14:30 +0200)
SL/DATEV/CSV.pm
patch
|
blob
|
history
diff --git
a/SL/DATEV/CSV.pm
b/SL/DATEV/CSV.pm
index
908347a
..
a4585de
100644
(file)
--- a/
SL/DATEV/CSV.pm
+++ b/
SL/DATEV/CSV.pm
@@
-113,8
+113,8
@@
my @kivitendo_to_datev = (
type => 'Text',
default => '',
input_check => sub { my ($check) = @_; return 1 unless $check; return (ref (DateTime->from_kivitendo($check)) eq 'DateTime') },
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 trim(DateTime->from_kivitendo($input)->strftime('%e%m%y')) },
- valid_check => sub { my ($check) = @_; return ($check =~ m/^[0-9]{5,6}$/) },
+ formatter => sub { my ($input) = @_; return
undef 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}$/) },
},
{
kivi_datev_name => 'not yet implemented',
},
{
kivi_datev_name => 'not yet implemented',