X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fdatev.pl;h=8f0bdd8c50ea223345d4b7b5fb9d6b60f27ae5bc;hb=e2b9e1737230c4e4209904784808dcaec723f730;hp=5f8c61e4353d6a2697fd54d340d19726cf2c2f91;hpb=f8138d1721521673da949aeac440011dfe0a22c8;p=kivitendo-erp.git diff --git a/bin/mozilla/datev.pl b/bin/mozilla/datev.pl index 5f8c61e43..8f0bdd8c5 100644 --- a/bin/mozilla/datev.pl +++ b/bin/mozilla/datev.pl @@ -31,18 +31,24 @@ use Archive::Zip qw(:ERROR_CODES :CONSTANTS); use SL::Common; use SL::DATEV; +use strict; + 1; # end of main require "bin/mozilla/common.pl"; -sub continue { call_sub($form->{"nextsub"}); } +sub continue { call_sub($main::form->{"nextsub"}); } sub export { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); + + my $form = $main::form; + my %myconfig = %main::myconfig; + my $locale = $main::locale; - $auth->assert('datev_export'); + $main::auth->assert('datev_export'); $form->{title} = $locale->text("DATEX - Export Assistent"); @@ -123,26 +129,32 @@ sub export { |; - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); } sub export2 { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); - $auth->assert('datev_export'); + my $form = $main::form; + + $main::auth->assert('datev_export'); if ($form->{exporttype} == 0) { &export_bewegungsdaten(); } else { &export_stammdaten(); } - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); } sub export_bewegungsdaten { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); + + my $form = $main::form; + my %myconfig = %main::myconfig; + my $locale = $main::locale; - $auth->assert('datev_export'); + $main::auth->assert('datev_export'); $form->{title} = $locale->text("DATEX - Export Assistent"); @@ -259,13 +271,16 @@ sub export_bewegungsdaten { |; - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); } sub export_stammdaten { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); - $auth->assert('datev_export'); + my $form = $main::form; + my $locale = $main::locale; + + $main::auth->assert('datev_export'); $form->{title} = $locale->text("DATEX - Export Assistent"); @@ -323,13 +338,17 @@ sub export_stammdaten { |; - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); } sub export3 { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); + + my $form = $main::form; + my %myconfig = %main::myconfig; + my $locale = $main::locale; - $auth->assert('datev_export'); + $main::auth->assert('datev_export'); DATEV::clean_temporary_directories(); @@ -362,13 +381,16 @@ sub export3 { print(""); - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); } sub download { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); + + my $form = $main::form; + my $locale = $main::locale; - $auth->assert('datev_export'); + $main::auth->assert('datev_export'); my $tmp_name = Common->tmpname(); my $zip_name = strftime("lx-office-datev-export-%Y%m%d.zip", localtime(time())); @@ -408,5 +430,5 @@ sub download { DATEV::clean_temporary_directories(); - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); }