5 <h1>[% 'Tax-O-Matic' | $T8 %] [% title %]</h1>
7 <form method="post" action="am.pl">
8 <input type="hidden" name="id" value="[% HTML.escape(id) %]">
9 <input type="hidden" name="type" value="tax">
13 <td>[% 'tax_taxkey' | $T8 %]</td>
14 <td>[% IF tax_already_used %]<p>[% HTML.escape(taxkey) %]</p>
15 <input type="hidden" name="taxkey" size="2" value="[% HTML.escape(taxkey) %]">
16 [% ELSE %]<input name="taxkey" size="2" value="[% HTML.escape(taxkey) %]">
21 <td>[% 'tax_taxdescription' | $T8 %]</td>
22 <td><input name="taxdescription" size="60" value="[% HTML.escape(taxdescription) %]"></td>
25 [%- FOREACH language = LANGUAGES %]
27 <td>[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</td>
29 <input name="translation_[% language.id %]" value="[%- HTML.escape(TAX.translated_attribute('taxdescription', language, 1)) %]" size="60">
35 <td>[% 'tax_percent' | $T8 %]</td>
36 <td>[% IF tax_already_used %]<p>[% HTML.escape(rate) %] %</p>
37 <input type="hidden" name="rate" size="10" value="[% HTML.escape(rate) %]">
38 [% ELSE %]<input name="rate" size="10" value="[% HTML.escape(rate) %]"> %
43 <td>[% 'tax_chartaccno' | $T8 %]</td>
44 <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>
47 <td>[% 'Automatic skonto chart sales' | $T8 %]</td>
48 <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>
51 <td>[% 'Automatic skonto chart purchase' | $T8 %]</td>
52 <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>
55 <td>[% 'Account categories' | $T8 %]</td>
72 <td align="right">[% IF asset %]
73 [% L.checkbox_tag('asset', value => 1, checked => 1, class => 'checkbox') %]
75 [% L.checkbox_tag('asset', value => 1, checked => 0, class => 'checkbox') %]
78 <td align="left">[% 'Asset' | $T8 %] (A)</td>
79 <td align="right">[% IF liability %]
80 [% L.checkbox_tag('liability', value => 1, checked => 1, class => 'checkbox') %]
82 [% L.checkbox_tag('liability', value => 1, checked => 0, class => 'checkbox') %]
85 <td align="left">[% 'Liability' | $T8 %] (L)</td>
86 <td align="right">[% IF equity %]
87 [% L.checkbox_tag('equity', value => 1, checked => 1, class => 'checkbox') %]
89 [% L.checkbox_tag('equity', value => 1, checked => 0, class => 'checkbox') %]
92 <td align="left">[% 'Equity' | $T8 %] (Q)</td>
93 <td align="right">[% IF revenue %]
94 [% L.checkbox_tag('revenue', value => 1, checked => 1, class => 'checkbox') %]
96 [% L.checkbox_tag('revenue', value => 1, checked => 0, class => 'checkbox') %]
99 <td align="left">[% 'Revenue' | $T8 %] (I)</td>
100 <td align="right">[% IF expense %]
101 [% L.checkbox_tag('expense', value => 1, checked => 1, class => 'checkbox') %]
103 [% L.checkbox_tag('expense', value => 1, checked => 0, class => 'checkbox') %]
106 <td align="left">[% 'Expense' | $T8 %] (E)</td>
107 <td align="right">[% IF costs %]
108 [% L.checkbox_tag('costs', value => 1, checked => 1, class => 'checkbox') %]
110 [% L.checkbox_tag('costs', value => 1, checked => 0, class => 'checkbox') %]
113 <td align="left">[% 'Costs' | $T8 %] (C)</td>
122 [% UNLESS orphaned %]
124 [% 'Chartaccounts connected to this Tax:' | $T8 %]
125 [% FOREACH row = TAXINUSE %]
126 <a href="am.pl?action=edit_account&id=[% HTML.url(row.id) %]&callback=[% HTML.url(callback) %]">[% HTML.escape(row.accno) %]</a>
131 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
133 <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
135 [% IF orphaned AND NOT tax_already_used %]
136 <input type="submit" class="submit" name="action" value="[% 'Delete' | $T8 %]">