Revision 0a64ac3d
Von Kivitendo Admin vor etwa 7 Jahren hinzugefügt
SL/GL.pm | ||
---|---|---|
197 | 197 |
|
198 | 198 |
# safety check datev export |
199 | 199 |
if ($::instance_conf->get_datev_check_on_gl_transaction) { |
200 |
my $transdate = $::form->{transdate} ? DateTime->from_lxoffice($::form->{transdate}) : undef; |
|
201 |
$transdate ||= DateTime->today; |
|
202 | 200 |
|
201 |
# create datev object |
|
203 | 202 |
my $datev = SL::DATEV->new( |
204 |
exporttype => DATEV_ET_BUCHUNGEN, |
|
205 |
format => DATEV_FORMAT_KNE, |
|
206 | 203 |
dbh => $dbh, |
207 | 204 |
trans_id => $form->{id}, |
208 | 205 |
); |
209 | 206 |
|
210 |
$datev->export;
|
|
207 |
$datev->generate_datev_data;
|
|
211 | 208 |
|
212 | 209 |
if ($datev->errors) { |
213 | 210 |
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