X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fdn.pl;h=f0f2a57e240f9a176f4ed97fddc849b3ba1baf2f;hb=5b47ed3efe5f4ef0810096b0f4849047cee54690;hp=c1d0f8bf6a1ea2042090bbb045aea36e8452fc37;hpb=595dc614f285c4ad859ab410e2c0e32026dd2dce;p=kivitendo-erp.git diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index c1d0f8bf6..f0f2a57e2 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -207,14 +207,7 @@ sub edit_config { {password}> |; - - if ($form->{menubar}) { - require "$form->{path}/menu.pl"; - &menubar; - } - - print qq| + . $locale->text('Save') . qq|"> @@ -448,7 +441,7 @@ sub show_invoices { -
{script}> +{script}> @@ -517,8 +510,8 @@ sub show_invoices {

|; -&print_options; -print qq| + &print_options; + print qq|
{script}> @@ -531,16 +524,9 @@ print qq| {path}> {login}> {password}> - -|; - - if ($form->{menubar}) { - require "$form->{path}/menu.pl"; - &menubar; - } - - print qq| + +
@@ -912,7 +898,7 @@ sub show_dunning { $dunning = qq||; - $column_data{dunning_description} = qq|$ref->{dunning_description}|; + $column_data{dunning_description} = qq|{dunning_id}&format=pdf&media=screen&path=$form->{path}&login=$form->{login}&password=$form->{password}&callback=$form->{callback}>$ref->{dunning_description}|; my $active = "checked"; $column_data{dunning_date} = qq|$ref->{dunning_date}|; $column_data{next_duedate} = qq|$ref->{dunning_duedate}|; @@ -956,14 +942,6 @@ sub show_dunning { {path}> {login}> {password}> -|; - - if ($form->{menubar}) { - require "$form->{path}/menu.pl"; - &menubar; - } - - print qq| @@ -975,5 +953,21 @@ sub show_dunning { $lxdebug->leave_sub(); } + +sub print_dunning { + $lxdebug->enter_sub(); + + DN->print_dunning(\%myconfig, \%$form, $form->{dunning_id}, $userspath,$spool, $sendmail); + + if($form->{DUNNING_PDFS}) { + DN->melt_pdfs(\%myconfig, \%$form,$spool); + } else { + $form->redirect($locale->text('Could not create dunning copy!')); + } + + $lxdebug->leave_sub(); + +} + # end of main