X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/c954dea7c1b814d66b8c31d04fa70a1bbbcce71e..4720b32a11bf3a7719af1bc2844a7207ca58343b:/SL/IS.pm?ds=inline diff --git a/SL/IS.pm b/SL/IS.pm index d5e028067..bbf53e31a 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1409,17 +1409,13 @@ SQL # safety check datev export if ($::instance_conf->get_datev_check_on_sales_invoice) { - my $transdate = $::form->{invdate} ? DateTime->from_lxoffice($::form->{invdate}) : undef; - $transdate ||= DateTime->today; my $datev = SL::DATEV->new( - exporttype => DATEV_ET_BUCHUNGEN, - format => DATEV_FORMAT_KNE, dbh => $dbh, trans_id => $form->{id}, ); - $datev->export; + $datev->generate_datev_data; if ($datev->errors) { die join "\n", $::locale->text('DATEV check returned errors:'), $datev->errors;