e66b41feaadc0d5dc67b8e99a9f1a29e29d4d44b
[kivitendo-erp.git] / templates / webpages / mass_invoice_create_print_from_do / _create_print_all_step_1.html
1 [%- USE LxERP -%][%- USE L -%]
2 [%- SET num_delivery_orders = SELF.sales_delivery_order_models.count %]
3 <h2>[% LxERP.t8("Step 1 -- limit number of delivery orders to process") %]</h2>
4
5 <p>
6  [% LxERP.t8("Currently #1 delivery orders can be converted into invoices and printed.", num_delivery_orders) %]
7  [% LxERP.t8("How many do you want to create and print?") %]
8 </p>
9
10 <table>
11  <tr>
12   <td>[% LxERP.t8("Number of invoices to create") %]:</td>
13   <td>[% L.input_tag('', num_delivery_orders, size="5", id="cpa_number_of_invoices") %]</td>
14  </tr>
15  <tr>
16   <td>[% LxERP.t8("Print both sided") %]:</td>
17   <td>[% L.checkbox_tag('', id="cpa_bothsided") %]</td>
18  </tr>
19  <tr>
20   <td>[% LxERP.t8("Print destination") %]:</td>
21   <td>
22     [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
23        CALL printers.import(SELF.printers);
24        L.select_tag("", printers, title_key="description", default=SELF.default_printer_id, id="cpa_printer_id") %]
25   </td>
26  </tr>
27  <!--tr>
28   <td>[% LxERP.t8("Print destination (copy)") %]:</td>
29   <td>
30     [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
31        CALL printers.import(SELF.printers);
32        L.select_tag("", printers, title_key="description", default=SELF.default_printer_id, id="cpa_printer_id") %]
33   </td>
34  </tr -->
35 </table>
36
37 <p>
38  [% L.button_tag("kivi.MassInvoiceCreatePrint.createPrintAllStartProcess();", LxERP.t8("Start process"), id="cpa_start_process_button") %]
39  [% L.link("#", LxERP.t8("Abort"), onclick="\$('#create_print_all_dialog').dialog('close');", id="cpa_start_process_abort_link") %]
40 </p>