Alte Partsgroup Templates entfernt
[kivitendo-erp.git] / templates / webpages / ar / ar_transactions_bottom.html
index 57bacca..d2c0cdc 100644 (file)
@@ -1,14 +1,27 @@
-[%- USE T8 %]
-[% USE HTML %] <form method="post" action="ar.pl">
+[% 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>
+ </form>
+
+ <form method="post" action="dispatcher.pl?M=ar">
 
   <input name="callback" type="hidden" value="[% callback %]">
 
   [% 'Create new' | $T8 %]<br>
 
-  <input class="submit" type="submit" name="action" value="[% 'AR Transaction' | $T8 %]">
-  <input class="submit" type="submit" name="action" value="[% 'Sales Invoice' | $T8 %]">
+  <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 %]">
 
  </form>
-
-</body>
-</html>