Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8298c2ea

Von Bernd Bleßmann vor etwa 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
return $self->redirect_to(action => 'list_invoices');
}
$self->download_or_print_documents(printer_id => $::form->{printer_id}, invoices => \@invoices);
$self->download_or_print_documents(printer_id => $::form->{printer_id}, invoices => \@invoices, bothsided => $::form->{bothsided});
}
sub action_create_print_all_start {
......
});
@pdf_file_names = $self->create_pdfs(%pdf_params);
my $merged_pdf = $self->merge_pdfs(file_names => \@pdf_file_names);
my $merged_pdf = $self->merge_pdfs(file_names => \@pdf_file_names, bothsided => $params{bothsided});
unlink @pdf_file_names;
if (!$params{printer_id}) {
js/kivi.MassInvoiceCreatePrint.js
$('#print_options').dialog('close');
$('#printer_id').val($('#print_options_printer_id').val());
$('#bothsided').val($('#print_options_bothsided').prop('checked') ? 1 : 0);
$('#action').val('MassInvoiceCreatePrint/print');
$('#report_form').submit();
templates/webpages/ar/ar_transactions_bottom.html
[% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
[% L.hidden_tag("printer_id") %]
[% L.hidden_tag("bothsided") %]
</form>
<form method="post" action="ar.pl" id="create_new_form">
......
[% IF ALL_PRINTERS.size %]
<div id="print_options" class="hidden">
<p>
[% LxERP.t8("Print both sided") %]:
[% L.checkbox_tag('', id="print_options_bothsided") %]
</p>
<p>
[% LxERP.t8("Print destination") %]:
[% SET printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
templates/webpages/mass_invoice_create_print_from_do/list_invoices.html
[% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
[% L.hidden_tag("printer_id") %]
[% L.hidden_tag("bothsided") %]
</form>
[% IF SELF.printers.size %]
<div id="print_options" class="hidden">
<p>
[% LxERP.t8("Print both sided") %]:
[% L.checkbox_tag('', id="print_options_bothsided") %]
</p>
<p>
[% LxERP.t8("Print destination") %]:
[% SET printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;

Auch abrufbar als: Unified diff