X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDATEV.pm;h=88c5fb43f441d4d80797b2d3e70076936ea81c68;hb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44;hp=ca74cd287531d70a25c443a7dd566ed4873afb39;hpb=6a3494478a287c2820e3f68a09bef700af1f57e0;p=kivitendo-erp.git diff --git a/SL/DATEV.pm b/SL/DATEV.pm index ca74cd287..88c5fb43f 100644 --- a/SL/DATEV.pm +++ b/SL/DATEV.pm @@ -258,7 +258,7 @@ sub clean_temporary_directories { sub _fill { $main::lxdebug->enter_sub(); - my $text = shift; + my $text = shift // ''; my $field_len = shift; my $fill_char = shift; my $alignment = shift || 'right'; @@ -674,7 +674,7 @@ sub make_kne_data_header { $header .= _fill($stamm->{dfvkz}, 2, '0'); $header .= _fill($stamm->{beraternr}, 7, '0'); $header .= _fill($stamm->{mandantennr}, 5, '0'); - $header .= _fill($stamm->{abrechnungsnr} . $jahr, 6, '0'); + $header .= _fill(($stamm->{abrechnungsnr} // '') . $jahr, 6, '0'); $header .= $self->from ? $self->from->strftime('%d%m%y') : ''; $header .= $self->to ? $self->to->strftime('%d%m%y') : ''; @@ -899,10 +899,10 @@ sub kne_buchungsexport { if ($transaction->[$haben]->{'name'} ne "") { $buchungstext = "\x1E" . $transaction->[$haben]->{'name'} . "\x1C"; } - if ($transaction->[$haben]->{'ustid'} ne "") { + if (($transaction->[$haben]->{'ustid'} // '') ne "") { $ustid = "\xBA" . $transaction->[$haben]->{'ustid'} . "\x1C"; } - if ($transaction->[$haben]->{'duedate'} ne "") { + if (($transaction->[$haben]->{'duedate'} // '') ne "") { $belegfeld2 = "\xBE" . &datetofour($transaction->[$haben]->{'duedate'}, 1) . "\x1C"; } } @@ -958,7 +958,7 @@ sub kne_buchungsexport { print(EV $ev_header); foreach my $file (@ed_versionset) { - print(EV $ed_versionset[$file]); + print(EV $file); } close(EV); ###