Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8298c2ea

Von Bernd Bleßmann vor fast 5 Jahren hinzugefügt

  • ID 8298c2ea8ba03bb3d1eb85a3ce0a049a505433ae
  • Vorgänger 10fbcae8
  • Nachfolger 9c4828ab

Massendruck: Option "beidseitig" auch beim Drucken aus Rechnungsberichten

Unterschiede anzeigen:

SL/Controller/MassInvoiceCreatePrint.pm
113 113
    return $self->redirect_to(action => 'list_invoices');
114 114
  }
115 115

  
116
  $self->download_or_print_documents(printer_id => $::form->{printer_id}, invoices => \@invoices);
116
  $self->download_or_print_documents(printer_id => $::form->{printer_id}, invoices => \@invoices, bothsided => $::form->{bothsided});
117 117
}
118 118

  
119 119
sub action_create_print_all_start {
......
295 295
      });
296 296

  
297 297
    @pdf_file_names = $self->create_pdfs(%pdf_params);
298
    my $merged_pdf  = $self->merge_pdfs(file_names => \@pdf_file_names);
298
    my $merged_pdf  = $self->merge_pdfs(file_names => \@pdf_file_names, bothsided => $params{bothsided});
299 299
    unlink @pdf_file_names;
300 300

  
301 301
    if (!$params{printer_id}) {
js/kivi.MassInvoiceCreatePrint.js
104 104
    $('#print_options').dialog('close');
105 105

  
106 106
    $('#printer_id').val($('#print_options_printer_id').val());
107
    $('#bothsided').val($('#print_options_bothsided').prop('checked') ? 1 : 0);
107 108
    $('#action').val('MassInvoiceCreatePrint/print');
108 109

  
109 110
    $('#report_form').submit();
templates/webpages/ar/ar_transactions_bottom.html
2 2

  
3 3
  [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
4 4
  [% L.hidden_tag("printer_id") %]
5
  [% L.hidden_tag("bothsided") %]
5 6
 </form>
6 7

  
7 8
 <form method="post" action="ar.pl" id="create_new_form">
......
10 11

  
11 12
[% IF ALL_PRINTERS.size %]
12 13
 <div id="print_options" class="hidden">
14
   <p>
15
     [% LxERP.t8("Print both sided") %]:
16
     [% L.checkbox_tag('', id="print_options_bothsided") %]
17
   </p>
13 18
  <p>
14 19
  [% LxERP.t8("Print destination") %]:
15 20
  [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
templates/webpages/mass_invoice_create_print_from_do/list_invoices.html
59 59

  
60 60
  [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
61 61
  [% L.hidden_tag("printer_id") %]
62
  [% L.hidden_tag("bothsided") %]
62 63
 </form>
63 64

  
64 65
 [% IF SELF.printers.size %]
65 66
  <div id="print_options" class="hidden">
67
   <p>
68
     [% LxERP.t8("Print both sided") %]:
69
     [% L.checkbox_tag('', id="print_options_bothsided") %]
70
   </p>
66 71
   <p>
67 72
    [% LxERP.t8("Print destination") %]:
68 73
    [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;

Auch abrufbar als: Unified diff