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");
</body>
</html>
|;
- $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");
</html>
|;
- $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");
</html>
|;
- $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();
print("</body></html>");
- $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()));
DATEV::clean_temporary_directories();
- $lxdebug->leave_sub();
+ $main::lxdebug->leave_sub();
}