]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/dn.pl
Mahnwesen:
[mfinanz.git] / bin / mozilla / dn.pl
index 94af9502a6298605fe15295e3c9abe00004848d1..9af3089f2d614f6f174697f84a69b1109373fbb9 100644 (file)
@@ -209,7 +209,7 @@ sub save_dunning {
   }
 
   if($form->{DUNNING_PDFS}) {
-    DN->melt_pdfs(\%myconfig, $form);
+    DN->melt_pdfs(\%myconfig, $form, $form->{copies});
   }
 
   # saving the history
@@ -220,7 +220,10 @@ sub save_dunning {
   }
   # /saving the history
 
-  $form->redirect($locale->text('Dunning Process started for selected invoices!')) if ($form->{media} eq 'printer');
+  if ($form->{media} eq 'printer') {
+    delete $form->{callback};
+    $form->redirect($locale->text('Dunning Process started for selected invoices!'));
+  }
 
   $lxdebug->leave_sub();
 }