Revision 0a64ac3d
Von Kivitendo Admin vor etwa 7 Jahren hinzugefügt
SL/AR.pm | ||
---|---|---|
312 | 312 |
|
313 | 313 |
# safety check datev export |
314 | 314 |
if ($::instance_conf->get_datev_check_on_ar_transaction) { |
315 |
my $transdate = $::form->{transdate} ? DateTime->from_lxoffice($::form->{transdate}) : undef; |
|
316 |
$transdate ||= DateTime->today; |
|
317 |
|
|
318 | 315 |
my $datev = SL::DATEV->new( |
319 |
exporttype => DATEV_ET_BUCHUNGEN, |
|
320 |
format => DATEV_FORMAT_KNE, |
|
321 | 316 |
dbh => $dbh, |
322 | 317 |
trans_id => $form->{id}, |
323 | 318 |
); |
324 | 319 |
|
325 |
$datev->export;
|
|
320 |
$datev->generate_datev_data;
|
|
326 | 321 |
|
327 | 322 |
if ($datev->errors) { |
328 | 323 |
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