[% USE T8 %][% USE HTML %][%- USE LxERP -%][%- USE L -%]
- [% IF ALL_PRINTERS.size %]
- <p>
- [% LxERP.t8("Print destination") %]:
- [% SET printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
- CALL printers.import(ALL_PRINTERS);
- L.select_tag("printer_id", printers, title_key="description", default=printer_id) %]
- </p>
- [% END %]
-
- <p>
- [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
- [% L.submit_tag("action_print", LxERP.t8("Print")) %]
- </p>
+ [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
+ [% L.hidden_tag("printer_id") %]
</form>
- <form method="post" action="dispatcher.pl?M=ar">
-
- <input name="callback" type="hidden" value="[% callback %]">
-
- [% 'Create new' | $T8 %]<br>
+ <form method="post" action="ar.pl" id="create_new_form">
+ [% L.hidden_tag("callback", callback) %]
+ </form>
- <input class="submit" type="submit" name="A_ar_transaction" value="[%- 'AR Transaction' | $T8 %]">
- <input class="submit" type="submit" name="A_sales_invoice" value="[%- 'Sales Invoice' | $T8 %]">
+[% IF ALL_PRINTERS.size %]
+ <div id="print_options" class="hidden">
+ <p>
+ [% LxERP.t8("Print destination") %]:
+ [% SET printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
+ CALL printers.import(ALL_PRINTERS);
+ L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=printer_id) %]
+ </p>
- </form>
+ <p>
+ [% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]
+ </p>
+ </div>
+[% END %]