From 27309ff158fca21e731318045f4971fd966ce4de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 23 Oct 2009 16:59:54 +0200 Subject: [PATCH] datev strict --- bin/mozilla/datev.pl | 60 ++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 19 deletions(-) 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(); } -- 2.20.1