[%- INCLUDE "common/flash.html" %]
-[% LIST_ACTION = 'action_list_invoices' %]
-[%- PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.filter %]
+[% LIST_ACTION = 'list_invoices' %]
+[%- PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.invoice_models.filtered.laundered %]
[% IF noshow == 1 %]
[% invoices = SELF.invoice_models.get;
</p>
[%- ELSE %]
- <form method="post" action="controller.pl">
+ <form method="post" action="controller.pl" id="report_form">
<table width="100%">
<thead>
<tr class="listheading">
[% L.paginate_controls %]
[% END %]
- <hr size="3" noshade>
+ [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
+ [% L.hidden_tag("printer_id") %]
+ [% L.hidden_tag("bothsided") %]
+ </form>
- [% IF SELF.printers.size %]
+ [% 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") } ] ;
CALL printers.import(SELF.printers);
- L.select_tag("printer_id", printers, title_key="description", default=FORM.printer_id) %]
+ L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=FORM.printer_id) %]
</p>
- [% END %]
- <p>
- [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
- [% L.submit_tag("action_print", LxERP.t8("Print")) %]
- </p>
- </form>
+ <p>
+ [% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]
+ </p>
+ </div>
+ [% END %]
[%- END %]
[%- END %]