X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/bddc0f6c64506c26696be850f1c0ecd5677664fe..12f8fb507f7531f2e434214eb9a8c4d7a55c75d5:/SL/GoBD.pm diff --git a/SL/GoBD.pm b/SL/GoBD.pm index e8a055891..2992b5f4e 100644 --- a/SL/GoBD.pm +++ b/SL/GoBD.pm @@ -419,6 +419,10 @@ sub do_datev_csv_export { $datev->_get_transactions(from_to => $datev->fromto); + if ($datev->errors) { + die [ $datev->errors ]; + } + for my $transaction (@{ $datev->{DATEV} }) { for my $entry (@{ $transaction }) { $entry->{sortkey} = join '-', map { lc } (DateTime->from_kivitendo($entry->{transdate})->strftime('%Y%m%d'), $entry->{name}, $entry->{reference});