4 <form method="post" action="am.pl">
5 <input type="hidden" name="id" value="[% HTML.escape(id) %]">
6 <input type="hidden" name="type" value="tax">
8 <div class="listtop">[% 'Tax-O-Matic' | $T8 %] [% title %]</div>
12 <td>[% 'tax_taxkey' | $T8 %]</td>
13 <td>[% IF tax_already_used %]<p>[% HTML.escape(taxkey) %]</p>
14 <input type="hidden" name="taxkey" size="2" value="[% HTML.escape(taxkey) %]">
15 [% ELSE %]<input name="taxkey" size="2" value="[% HTML.escape(taxkey) %]">
20 <td>[% 'tax_taxdescription' | $T8 %]</td>
21 <td><input name="taxdescription" size="60" value="[% HTML.escape(taxdescription) %]"></td>
25 <td>[% 'tax_percent' | $T8 %]</td>
26 <td>[% IF tax_already_used %]<p>[% HTML.escape(rate) %] %</p>
27 <input type="hidden" name="rate" size="10" value="[% HTML.escape(rate) %]">
28 [% ELSE %]<input name="rate" size="10" value="[% HTML.escape(rate) %]"> %
33 <td>[% 'tax_chartaccno' | $T8 %]</td>
34 <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>
37 <td>[% 'Account categories' | $T8 %]</td>
54 <td align="right">[% IF asset %]
55 [% L.checkbox_tag('asset', value => 1, checked => 1, class => 'checkbox') %]
57 [% L.checkbox_tag('asset', value => 1, checked => 0, class => 'checkbox') %]
60 <td align="left">[% 'Asset' | $T8 %] (A)</td>
61 <td align="right">[% IF liability %]
62 [% L.checkbox_tag('liability', value => 1, checked => 1, class => 'checkbox') %]
64 [% L.checkbox_tag('liability', value => 1, checked => 0, class => 'checkbox') %]
67 <td align="left">[% 'Liability' | $T8 %] (L)</td>
68 <td align="right">[% IF equity %]
69 [% L.checkbox_tag('equity', value => 1, checked => 1, class => 'checkbox') %]
71 [% L.checkbox_tag('equity', value => 1, checked => 0, class => 'checkbox') %]
74 <td align="left">[% 'Equity' | $T8 %] (Q)</td>
75 <td align="right">[% IF revenue %]
76 [% L.checkbox_tag('revenue', value => 1, checked => 1, class => 'checkbox') %]
78 [% L.checkbox_tag('revenue', value => 1, checked => 0, class => 'checkbox') %]
81 <td align="left">[% 'Revenue' | $T8 %] (I)</td>
82 <td align="right">[% IF expense %]
83 [% L.checkbox_tag('expense', value => 1, checked => 1, class => 'checkbox') %]
85 [% L.checkbox_tag('expense', value => 1, checked => 0, class => 'checkbox') %]
88 <td align="left">[% 'Expense' | $T8 %] (E)</td>
89 <td align="right">[% IF costs %]
90 [% L.checkbox_tag('costs', value => 1, checked => 1, class => 'checkbox') %]
92 [% L.checkbox_tag('costs', value => 1, checked => 0, class => 'checkbox') %]
95 <td align="left">[% 'Costs' | $T8 %] (C)</td>
104 [% UNLESS orphaned %]
106 [% 'Chartaccounts connected to this Tax:' | $T8 %]
107 [% FOREACH row = TAXINUSE %]
108 <a href="am.pl?action=edit_account&id=[% HTML.url(row.id) %]&callback=[% HTML.url(callback) %]">[% HTML.escape(row.accno) %]</a>
113 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
115 <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
117 [% IF orphaned AND NOT tax_already_used %]
118 <input type="submit" class="submit" name="action" value="[% 'Delete' | $T8 %]">