794f51865bca9cb5475dc4d2760870f1db293514
[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
16  <tr>
17   <td>[% LxERP.t8("Print destination") %]:</td>
18   <td>
19     [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
20        CALL printers.import(SELF.printers);
21        L.select_tag("", printers, title_key="description", default=SELF.default_printer_id, id="cpa_printer_id") %]
22   </td>
23  </tr>
24  <!--tr>
25   <td>[% LxERP.t8("Print destination (copy)") %]:</td>
26   <td>
27     [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
28        CALL printers.import(SELF.printers);
29        L.select_tag("", printers, title_key="description", default=SELF.default_printer_id, id="cpa_printer_id") %]
30   </td>
31  </tr -->
32 </table>
33
34 <p>
35  [% L.button_tag("kivi.MassInvoiceCreatePrint.createPrintAllStartProcess();", LxERP.t8("Start process"), id="cpa_start_process_button") %]
36  [% L.link("#", LxERP.t8("Abort"), onclick="\$('#create_print_all_dialog').dialog('close');", id="cpa_start_process_abort_link") %]
37 </p>