-[%- USE T8 %]
-[% USE HTML %] <form method="post" action="ap.pl">
+[% USE T8 %][% USE HTML %] <form method="post" action="dispatcher.pl?M=ap">
<input name="callback" type="hidden" value="[% callback %]">
[% 'Create new' | $T8 %]<br>
- <input class="submit" type="submit" name="action" value="[% 'AP Transaction' | $T8 %]">
- <input class="submit" type="submit" name="action" value="[% 'Vendor Invoice' | $T8 %]">
+ <input class="submit" type="submit" name="A_ap_transaction" value="[%- 'AP Transaction' | $T8 %]">
+ <input class="submit" type="submit" name="A_vendor_invoice" value="[%- 'Vendor Invoice' | $T8 %]">
</form>
-[%- USE T8 %]
-[% USE HTML %] <form method="post" action="ar.pl">
+[% USE T8 %][% USE HTML %] <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>
-[%- USE T8 %]
-[% USE HTML %]
- <form action="bankaccounts.pl" method="post">
+[% USE T8 %][% USE HTML %]
+ <form action="dispatcher.pl?M=bankaccounts" method="post">
<p>
- [% 'New bank account' | $T8 %]<br>
- <input type="submit" value="[% 'Add' | $T8 %]">
+ [%- 'New bank account' | $T8 %]<br>
+ <input type="submit" name="A_bank_account_add" value="[%- 'Add' | $T8 %]">
</p>
- <input type="hidden" name="action" value="bank_account_add">
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
</form>
-[%- USE T8 %]
-[% USE HTML %]<form method="post" action="ct.pl">
+[% USE T8 %][% USE HTML %]<form method="post" action="dispatcher.pl?M=ct">
<input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
<input name="db" type="hidden" value="[% HTML.escape(db) %]">
[% IF IS_CUSTOMER %][% 'New customer' | $T8 %][% ELSE %][% 'New vendor' | $T8 %][% END %]<br>
- <input class="submit" type="submit" name="action" value="[% 'Add' | $T8 %]">
+ <input class="submit" type="submit" name="A_add" value="[%- 'Add' | $T8 %]">
</form>
<p>
[% 'Dunnings' | $T8 %]<br>
<input type="hidden" name="print_nextsub" value="print_multiple">
- <input type="submit" class="submit" name="action" value="[% 'Print' | $T8 %]">
+ <input type="hidden" name="action" value="print">
+ <input type="submit" class="submit" value="[%- 'Print' | $T8 %]">
</p>
</form>
-[%- USE T8 %]
-[% USE HTML %]<form method="post" action="gl.pl">
+[% USE T8 %][% USE HTML %]<form method="post" action="dispatcher.pl?M=gl">
<input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
- <input class="submit" type="submit" name="action" value="[% 'GL Transaction' | $T8 %]">
- <input class="submit" type="submit" name="action" value="[% 'AR Transaction' | $T8 %]">
- <input class="submit" type="submit" name="action" value="[% 'AP Transaction' | $T8 %]">
- <input class="submit" type="submit" name="action" value="[% 'Sales Invoice' | $T8 %]">
- <input class="submit" type="submit" name="action" value="[% 'Vendor Invoice' | $T8 %]">
+ <input class="submit" type="submit" name="A_gl_transaction" value="[%- 'GL Transaction' | $T8 %]">
+ <input class="submit" type="submit" name="A_ar_transaction" value="[%- 'AR Transaction' | $T8 %]">
+ <input class="submit" type="submit" name="A_ap_transaction" value="[%- 'AP Transaction' | $T8 %]">
+ <input class="submit" type="submit" name="A_sales_invoice" value="[%- 'Sales Invoice' | $T8 %]">
+ <input class="submit" type="submit" name="A_vendor_invoice" value="[%- 'Vendor Invoice' | $T8 %]">
</form>
<input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
<input type="hidden" name="item" value="[% HTML.escape(searchitems) %]">
+ <input type="hidden" name="action" value="add">
[% SWITCH searchitems %]
[% CASE 'part' %][% 'New part' | $T8 %]
[% CASE 'assembly' %][% 'New assembly' | $T8 %]
[% END %]
<br>
- <input class="submit" type="submit" name="action" value="[% 'Add' | $T8 %]">
+ <input class="submit" type="submit" value="[%- 'Add' | $T8 %]">
</form>