X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6ff13e1da44c956cccc9e429cf25a5848fa37e55..8f3dc0b4dfd14847df54366f0c146d058522d022:/bin/mozilla/is.pl diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 7d79ba9f2..2baf7ec06 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -57,9 +57,10 @@ sub add { { $form->error("Access Denied"); } - &invoice_links; &prepare_invoice; + $form->{format} ="pdf"; + &display_form; $lxdebug->leave_sub(); @@ -74,7 +75,10 @@ sub edit { { $form->error("Access Denied"); } - + if ($form->{print_and_post}) { + $form->{action} = "print"; + $form->{resubmit} = 1; + } &invoice_links; &prepare_invoice; &display_form; @@ -187,7 +191,6 @@ sub prepare_invoice { $form->{type} = "invoice"; $form->{formname} = "invoice"; - $form->{format} = "html"; $form->{media} = "screen"; if ($form->{id}) { @@ -344,8 +347,10 @@ sub form_header { $button2 = qq|