X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdatev.pl;h=d352252047b8dc5f65634a509d0825fe6ce517f5;hb=1e0d413084100ccd892e8c5be95703be5d965de7;hp=8f0bdd8c50ea223345d4b7b5fb9d6b60f27ae5bc;hpb=27309ff158fca21e731318045f4971fd966ce4de;p=kivitendo-erp.git
diff --git a/bin/mozilla/datev.pl b/bin/mozilla/datev.pl
index 8f0bdd8c5..d35225204 100644
--- a/bin/mozilla/datev.pl
+++ b/bin/mozilla/datev.pl
@@ -72,45 +72,45 @@ sub export {
|
@@ -214,17 +214,17 @@ sub export_bewegungsdaten {
|
@@ -302,11 +302,11 @@ sub export_stammdaten {
@@ -363,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.");
}
@@ -419,11 +421,13 @@ sub download {
chdir($cwd);
open(IN, $tmp_name) || die("open $tmp_name");
- print("Content-Type: application/zip\n");
- print("Content-Disposition: attachment; filename=\"${zip_name}\"\n\n");
- while () {
- print($_);
- }
+ $::locale->with_raw_io(\*STDOUT, sub {
+ print("Content-Type: application/zip\n");
+ print("Content-Disposition: attachment; filename=\"${zip_name}\"\n\n");
+ while () {
+ print($_);
+ }
+ });
close(IN);
unlink($tmp_name);
|