projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IS: Departments anzeigen.
[kivitendo-erp.git]
/
bin
/
mozilla
/
datev.pl
diff --git
a/bin/mozilla/datev.pl
b/bin/mozilla/datev.pl
index
5f8c61e
..
8f0bdd8
100644
(file)
--- 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 SL::Common;
use SL::DATEV;
+use strict;
+
1;
# end of main
require "bin/mozilla/common.pl";
1;
# end of main
require "bin/mozilla/common.pl";
-sub continue { call_sub($form->{"nextsub"}); }
+sub continue { call_sub($
main::
form->{"nextsub"}); }
sub export {
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");
$form->{title} = $locale->text("DATEX - Export Assistent");
@@
-123,26
+129,32
@@
sub export {
</body>
</html>
|;
</body>
</html>
|;
- $lxdebug->leave_sub();
+ $
main::
lxdebug->leave_sub();
}
sub export2 {
}
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();
}
if ($form->{exporttype} == 0) {
&export_bewegungsdaten();
} else {
&export_stammdaten();
}
- $lxdebug->leave_sub();
+ $
main::
lxdebug->leave_sub();
}
sub export_bewegungsdaten {
}
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");
$form->{title} = $locale->text("DATEX - Export Assistent");
@@
-259,13
+271,16
@@
sub export_bewegungsdaten {
</html>
|;
</html>
|;
- $lxdebug->leave_sub();
+ $
main::
lxdebug->leave_sub();
}
sub export_stammdaten {
}
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");
$form->{title} = $locale->text("DATEX - Export Assistent");
@@
-323,13
+338,17
@@
sub export_stammdaten {
</html>
|;
</html>
|;
- $lxdebug->leave_sub();
+ $
main::
lxdebug->leave_sub();
}
sub export3 {
}
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();
DATEV::clean_temporary_directories();
@@
-362,13
+381,16
@@
sub export3 {
print("</body></html>");
print("</body></html>");
- $lxdebug->leave_sub();
+ $
main::
lxdebug->leave_sub();
}
sub download {
}
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()));
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();
DATEV::clean_temporary_directories();
- $lxdebug->leave_sub();
+ $
main::
lxdebug->leave_sub();
}
}