[%- USE T8 %]
[%- 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>
<td><input name="taxdescription" size="60" value="[% HTML.escape(taxdescription) %]"></td>
</tr>
+ [%- FOREACH language = LANGUAGES %]
+ <tr>
+ <td>[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</td>
+ <td>
+ <input name="translation_[% language.id %]" value="[%- HTML.escape(TAX.translated_attribute('taxdescription', language, 1)) %]" size="60">
+ </td>
+ </tr>
+ [%- END %]
+
<tr>
<td>[% 'tax_percent' | $T8 %]</td>
<td>[% IF tax_already_used %]<p>[% HTML.escape(rate) %] %</p>
<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>