From: Jan Büren Date: Mon, 7 Jun 2021 08:35:15 +0000 (+0200) Subject: zu #317 datev_stamm (kontenexport) auch entfernen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~189 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c255a38e15c7e342b32f569c20fd39812747f427;p=kivitendo-erp.git zu #317 datev_stamm (kontenexport) auch entfernen --- diff --git a/bin/mozilla/datev.pl b/bin/mozilla/datev.pl index 428a391e0..79097022e 100644 --- a/bin/mozilla/datev.pl +++ b/bin/mozilla/datev.pl @@ -62,11 +62,8 @@ sub export2 { $::lxdebug->enter_sub; $::auth->assert('datev_export'); - if ($::form->{exporttype} == 0) { - export_bewegungsdaten(); - } else { - export_stammdaten(); - } + export_bewegungsdaten(); + $::lxdebug->leave_sub; } @@ -88,18 +85,6 @@ sub export_bewegungsdaten { $::lxdebug->leave_sub; } -sub export_stammdaten { - $::lxdebug->enter_sub; - $::auth->assert('datev_export'); - - setup_datev_export2_action_bar(); - - $::form->header; - print $::form->parse_html_template('datev/export_stammdaten'); - - $::lxdebug->leave_sub; -} - sub export3 { $::lxdebug->enter_sub; $::auth->assert('datev_export'); @@ -109,20 +94,13 @@ sub export3 { format => $::form->{exportformat} eq 'kne' ? DATEV_FORMAT_KNE : DATEV_FORMAT_CSV, ); - if ($::form->{exporttype} == DATEV_ET_STAMM) { - $data{accnofrom} = $::form->{accnofrom}, - $data{accnoto} = $::form->{accnoto}, - } elsif ($::form->{exporttype} == DATEV_ET_BUCHUNGEN) { - @data{qw(from to)} = _get_dates( - $::form->{zeitraum}, $::form->{monat}, $::form->{quartal}, - $::form->{transdatefrom}, $::form->{transdateto}, - ); - $data{use_pk} = $::form->{use_pk}; - $data{locked} = $::form->{locked}; - $data{imported} = $::form->{imported}; - } else { - die 'invalid exporttype'; - } + @data{qw(from to)} = _get_dates( + $::form->{zeitraum}, $::form->{monat}, $::form->{quartal}, + $::form->{transdatefrom}, $::form->{transdateto}, + ); + $data{use_pk} = $::form->{use_pk}; + $data{locked} = $::form->{locked}; + $data{imported} = $::form->{imported}; my $datev = SL::DATEV->new(%data);