X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdn.pl;h=af615da51ac365d6d48752fd96932683f62c5c44;hb=2efc8cbcc63c56094e0692067b7cb678c1583987;hp=94af9502a6298605fe15295e3c9abe00004848d1;hpb=232a9153b591c815dacc4b41c15135166be550f0;p=kivitendo-erp.git diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index 94af9502a..af615da51 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -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(); } @@ -228,14 +231,6 @@ sub save_dunning { sub set_email { $lxdebug->enter_sub(); - - my $callback = "$form->{script}?action=set_email&"; - map({ $callback .= "$_=" . $form->escape($form->{$_}) . "&" } - (qw(login password name input_subject input_body input_attachment email_subject email_body email_attachment), grep({ /^[fl]_/ } keys %$form))); - - if ($form->{email_attachment}) { - $form->{email_attachment} = "checked"; - } $form->{"title"} = $locale->text("Set eMail text"); $form->header(); print($form->parse_html_template("dunning/set_email")); @@ -295,7 +290,7 @@ sub show_dunning { if (!$form->{callback}) { $form->{callback} = build_std_url("action=show_dunning", qw(customer_id customer dunning_level department_id invnumber ordnumber - ransdatefrom transdateto dunningfrom dunningto notes showold)); + transdatefrom transdateto dunningfrom dunningto notes showold)); } $form->get_lists('printers' => 'printers',