X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fdatev.pl;h=4ada35f109624f47a852aec4d615a04fac42daad;hb=a35013886c936227e97cc868b77be1e584ad4272;hp=5f8c61e4353d6a2697fd54d340d19726cf2c2f91;hpb=f8138d1721521673da949aeac440011dfe0a22c8;p=kivitendo-erp.git diff --git a/bin/mozilla/datev.pl b/bin/mozilla/datev.pl index 5f8c61e43..4ada35f10 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"); @@ -66,45 +72,45 @@ sub export { - - - - - - - - - - - - - - - - - - - - - - - | . # OBE-Export noch nicht implementiert! + + + + + + + + + + + + + + + + + + + + + + + | . # OBE-Export noch nicht implementiert! qq| - - - + + + - - +
| . $locale->text("Beraternummer") . qq|| . $locale->text("DFV-Kennzeichen") . qq|
| . $locale->text("Beratername") . qq|| . $locale->text("Password") . qq|
| . $locale->text("Mandantennummer") . qq|| . $locale->text("Medium Number") . qq|
| . $locale->text("Kontonummernerweiterung (KNE)") . qq|
| . $locale->text("Beraternummer") . qq|| . $locale->text("DFV-Kennzeichen") . qq|
| . $locale->text("Beratername") . qq|| . $locale->text("Password") . qq|
| . $locale->text("Mandantennummer") . qq|| . $locale->text("Medium Number") . qq|
| . $locale->text("Kontonummernerweiterung (KNE)") . qq| | . $locale->text("Abrechnungsnummer") . qq|
| . $locale->text("Abrechnungsnummer") . qq|
| . $locale->text("Export Buchungsdaten") . qq| | + | . $locale->text("Export Stammdaten") . qq|
@@ -123,26 +129,32 @@ sub export { |; - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); } sub export2 { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); + + my $form = $main::form; - $auth->assert('datev_export'); + $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"); @@ -202,17 +214,17 @@ sub export_bewegungsdaten { - + - + - + @@ -221,10 +233,10 @@ sub export_bewegungsdaten { . $locale->text('Datum von') . qq| - + - +
 | . $locale->text('Monat') . qq|
 | . $locale->text('Quartal') . qq|
| . $locale->text('bis') . qq|| . $locale->text('bis') . qq|
@@ -259,13 +271,16 @@ sub export_bewegungsdaten { |; - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); } sub export_stammdaten { - $lxdebug->enter_sub(); + $main::lxdebug->enter_sub(); + + my $form = $main::form; + my $locale = $main::locale; - $auth->assert('datev_export'); + $main::auth->assert('datev_export'); $form->{title} = $locale->text("DATEX - Export Assistent"); @@ -287,11 +302,11 @@ sub export_stammdaten { - + - +
| . $locale->text('Von Konto: ') . qq|| . $locale->text('Von Konto: ') . qq|
| . $locale->text('Bis Konto: ') . qq|| . $locale->text('Bis Konto: ') . qq|
@@ -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(); @@ -344,6 +363,8 @@ sub export3 { print(qq|
| . $locale->text('KNE-Export erfolgreich!') . qq|

Download|); + print $form->parse_html_template('datev/net_gross_difference') if @{ $form->{net_gross_differences} }; + } else { $form->error("KNE-Export schlug fehl."); } @@ -362,13 +383,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 +432,5 @@ sub download { DATEV::clean_temporary_directories(); - $lxdebug->leave_sub(); + $main::lxdebug->leave_sub(); }