X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIS.pm;h=bbf53e31ac3b203a5aaf3149b7e70c00bb6b38ad;hb=c623caef58787a808fd292e7a8f1f074067e5711;hp=d5e028067fca12f560e4a6711c2f53d50d1299af;hpb=c954dea7c1b814d66b8c31d04fa70a1bbbcce71e;p=kivitendo-erp.git 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;