Revision 0a64ac3d
Von Kivitendo Admin vor etwa 7 Jahren hinzugefügt
SL/AP.pm | ||
---|---|---|
368 | 368 |
|
369 | 369 |
# safety check datev export |
370 | 370 |
if ($::instance_conf->get_datev_check_on_ap_transaction) { |
371 |
my $transdate = $::form->{transdate} ? DateTime->from_lxoffice($::form->{transdate}) : undef; |
|
372 |
$transdate ||= DateTime->today; |
|
373 |
|
|
374 | 371 |
my $datev = SL::DATEV->new( |
375 |
exporttype => DATEV_ET_BUCHUNGEN, |
|
376 |
format => DATEV_FORMAT_KNE, |
|
377 | 372 |
dbh => $dbh, |
378 | 373 |
trans_id => $form->{id}, |
379 | 374 |
); |
380 |
|
|
381 |
$datev->export; |
|
375 |
$datev->generate_datev_data; |
|
382 | 376 |
|
383 | 377 |
if ($datev->errors) { |
384 | 378 |
die join "\n", $::locale->text('DATEV check returned errors:'), $datev->errors; |
Auch abrufbar als: Unified diff
DATEV-Checks beim Buchen nutzen nun generate_datev_data