[%- USE LxERP -%][%- USE L -%] [%- SET num_delivery_orders = SELF.sales_delivery_order_models.count %]

[% LxERP.t8("Step 1 -- limit number of delivery orders to process") %]

[% 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?") %]

[% LxERP.t8("Number of invoices to create") %]: [% L.input_tag('', num_delivery_orders, size="5", id="cpa_number_of_invoices") %]
[% LxERP.t8("Print both sided") %]: [% L.checkbox_tag('', id="cpa_bothsided") %]
[% LxERP.t8("Print destination") %]: [% 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") %]

[% 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") %]