Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / am / edit_tax.html
index cb86eb2..616ac2d 100644 (file)
@@ -2,12 +2,12 @@
 [%- USE HTML %]
 [%- USE L %]
 [%- USE LxERP %]
- <form method="post" action="am.pl">
+<h1>[% 'Tax-O-Matic' | $T8 %] [% title %]</h1>
+
+ <form method="post" action="am.pl" id="form">
   <input type="hidden" name="id" value="[% HTML.escape(id) %]">
   <input type="hidden" name="type" value="tax">
 
-  <div class="listtop">[% 'Tax-O-Matic' | $T8 %] [% title %]</div>
-
   <table width="100%">
    <tr>
     <td>[% 'tax_taxkey' | $T8 %]</td>
     <td>[% 'tax_chartaccno' | $T8 %]</td>
     <td><select name="chart_id"><option value="">[% 'None' | $T8 %]</option>[% FOREACH row = ACCOUNTS %]<option value="[% HTML.escape(row.id) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.taxaccount) %]</option>[% END %]</select></td>
    </tr>
-
+   <tr>
+    <td>[% 'Automatic skonto chart sales' | $T8 %]</td>
+    <td> [% L.select_tag('skonto_sales_chart_id', AR_PAID, value_title_sub = \skontochart_value_title_sub, with_empty = 1, default = skonto_sales_chart_id) %]</td>
+   </tr>
+   <tr>
+    <td>[% 'Automatic skonto chart purchase' | $T8 %]</td>
+    <td> [% L.select_tag('skonto_purchase_chart_id', AP_PAID, value_title_sub = \skontochart_value_title_sub, with_empty = 1, default = skonto_purchase_chart_id) %]</td>
+   </tr>
+   <tr>
     <td>[% 'Account categories' | $T8 %]</td>
     <td><table>
           <colgroup>
   [% END %]
 
   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
-
-  <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
-
-  [% IF orphaned AND NOT tax_already_used %]
-  <input type="submit" class="submit" name="action" value="[% 'Delete' | $T8 %]">
-  [% END %]
-
 </form>
-