X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/c954dea7c1b814d66b8c31d04fa70a1bbbcce71e..d1f44c84d990f57982854c6a4716c0f233f45bca:/SL/AR.pm diff --git a/SL/AR.pm b/SL/AR.pm index 2ca302258..56f2da9df 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -312,17 +312,12 @@ sub _post_transaction { # safety check datev export if ($::instance_conf->get_datev_check_on_ar_transaction) { - my $transdate = $::form->{transdate} ? DateTime->from_lxoffice($::form->{transdate}) : 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;