epic-ts
[kivitendo-erp.git] / templates / webpages / am / edit_tax.html
index 83a10c4..46c45d8 100644 (file)
@@ -2,12 +2,12 @@
 [%- USE HTML %]
 [%- USE L %]
 [%- USE LxERP %]
+<h1>[% 'Tax-O-Matic' | $T8 %] [% title %]</h1>
+
  <form method="post" action="am.pl">
   <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>
 
    <tr>
     <td>[% 'tax_chartaccno' | $T8 %]</td>
-    <td><select name="chart_id"><option value="0">[% '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>
+    <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>