]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/Letter.pm
Letter: Nur Druckoptionen anzeigen, die momentan unterstützt werden.
[mfinanz.git] / SL / Controller / Letter.pm
index 994b3c001f31b3dc1d8db58dbf251b36f7389f2f..8e588d9f858fc21bffc33814a2fd0916b18de98e 100644 (file)
@@ -11,6 +11,7 @@ use SL::DB::LetterDraft;
 use SL::DB::Employee;
 use SL::Helper::Flash qw(flash);
 use SL::Helper::CreatePDF;
+use SL::Helper::PrintOptions;
 use SL::Locale::String qw(t8);
 use SL::IS;
 use SL::ReportGenerator;
@@ -302,8 +303,6 @@ sub _display {
 
   my $letter = $self->letter;
 
-  require 'bin/mozilla/io.pl';
-
  $params{title} ||= t8('Edit Letter');
 
   $::form->{type}             = 'letter';   # needed for print_options
@@ -320,7 +319,12 @@ sub _display {
     PCF           => [ map { key => $_, value => t8(ucfirst $_) }, PAGE_CREATED_FOR_VALUES() ],
     letter        => $letter,
     employees     => $self->all_employees,
-    print_options => print_options(inline => 1),
+    print_options => SL::Helper::PrintOptions->get_print_options (
+      options => { no_postscript   => 1,
+                   no_opendocument => 1,
+                   no_html         => 1,
+                   no_queue        => 1 }),
+
   );
 }