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>[% 'Account categories' | $T8 %]</td>
64 <td align="right">[% IF asset %]
65 [% L.checkbox_tag('asset', value => 1, checked => 1, class => 'checkbox') %]
67 [% L.checkbox_tag('asset', value => 1, checked => 0, class => 'checkbox') %]
70 <td align="left">[% 'Asset' | $T8 %] (A)</td>
71 <td align="right">[% IF liability %]
72 [% L.checkbox_tag('liability', value => 1, checked => 1, class => 'checkbox') %]
74 [% L.checkbox_tag('liability', value => 1, checked => 0, class => 'checkbox') %]
77 <td align="left">[% 'Liability' | $T8 %] (L)</td>
78 <td align="right">[% IF equity %]
79 [% L.checkbox_tag('equity', value => 1, checked => 1, class => 'checkbox') %]
81 [% L.checkbox_tag('equity', value => 1, checked => 0, class => 'checkbox') %]
84 <td align="left">[% 'Equity' | $T8 %] (Q)</td>
85 <td align="right">[% IF revenue %]
86 [% L.checkbox_tag('revenue', value => 1, checked => 1, class => 'checkbox') %]
88 [% L.checkbox_tag('revenue', value => 1, checked => 0, class => 'checkbox') %]
91 <td align="left">[% 'Revenue' | $T8 %] (I)</td>
92 <td align="right">[% IF expense %]
93 [% L.checkbox_tag('expense', value => 1, checked => 1, class => 'checkbox') %]
95 [% L.checkbox_tag('expense', value => 1, checked => 0, class => 'checkbox') %]
98 <td align="left">[% 'Expense' | $T8 %] (E)</td>
99 <td align="right">[% IF costs %]
100 [% L.checkbox_tag('costs', value => 1, checked => 1, class => 'checkbox') %]
102 [% L.checkbox_tag('costs', value => 1, checked => 0, class => 'checkbox') %]
105 <td align="left">[% 'Costs' | $T8 %] (C)</td>
114 [% UNLESS orphaned %]
116 [% 'Chartaccounts connected to this Tax:' | $T8 %]
117 [% FOREACH row = TAXINUSE %]
118 <a href="am.pl?action=edit_account&id=[% HTML.url(row.id) %]&callback=[% HTML.url(callback) %]">[% HTML.escape(row.accno) %]</a>
123 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
125 <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
127 [% IF orphaned AND NOT tax_already_used %]
128 <input type="submit" class="submit" name="action" value="[% 'Delete' | $T8 %]">