Massenkonvertierung von Lieferscheinen nach Rechnung ink. Druck
[kivitendo-erp.git] / templates / webpages / mass_invoice_create_print_from_do / _create_print_all_step_1.html
diff --git a/templates/webpages/mass_invoice_create_print_from_do/_create_print_all_step_1.html b/templates/webpages/mass_invoice_create_print_from_do/_create_print_all_step_1.html
new file mode 100644 (file)
index 0000000..794f518
--- /dev/null
@@ -0,0 +1,37 @@
+[%- USE LxERP -%][%- USE L -%]
+[%- SET num_delivery_orders = SELF.sales_delivery_order_models.count %]
+<h2>[% LxERP.t8("Step 1 -- limit number of delivery orders to process") %]</h2>
+
+<p>
+ [% LxERP.t8("Currently #1 delivery orders can be converted into invoices and printed.", num_delivery_orders) %]
+ [% LxERP.t8("How many do you want to create and print?") %]
+</p>
+
+<table>
+ <tr>
+  <td>[% LxERP.t8("Number of invoices to create") %]:</td>
+  <td>[% L.input_tag('', num_delivery_orders, size="5", id="cpa_number_of_invoices") %]</td>
+ </tr>
+
+ <tr>
+  <td>[% LxERP.t8("Print destination") %]:</td>
+  <td>
+    [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
+       CALL printers.import(SELF.printers);
+       L.select_tag("", printers, title_key="description", default=SELF.default_printer_id, id="cpa_printer_id") %]
+  </td>
+ </tr>
+ <!--tr>
+  <td>[% LxERP.t8("Print destination (copy)") %]:</td>
+  <td>
+    [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
+       CALL printers.import(SELF.printers);
+       L.select_tag("", printers, title_key="description", default=SELF.default_printer_id, id="cpa_printer_id") %]
+  </td>
+ </tr -->
+</table>
+
+<p>
+ [% L.button_tag("kivi.MassInvoiceCreatePrint.createPrintAllStartProcess();", LxERP.t8("Start process"), id="cpa_start_process_button") %]
+ [% L.link("#", LxERP.t8("Abort"), onclick="\$('#create_print_all_dialog').dialog('close');", id="cpa_start_process_abort_link") %]
+</p>