6 <h1>[% 'Tax-O-Matic' | $T8 %] [% title %]</h1>
8 <form method="post" action="am.pl" id="form">
10 <input type="hidden" name="id" value="[% HTML.escape(id) %]">
11 <input type="hidden" name="type" value="tax">
13 <div class="wrapper cols">
15 <table class="tbl-horizontal col">
16 <caption>[% 'Tax' | $T8 %]</caption>
19 <th>[% 'tax_taxkey' | $T8 %]</th>
21 [% IF tax_already_used %]
22 [% HTML.escape(taxkey) %]
23 <input type="hidden" name="taxkey" value="[% HTML.escape(taxkey) %]">
25 <input name="taxkey" value="[% HTML.escape(taxkey) %]" class="wi-tinynumber" type="text">
30 <th>[% 'tax_taxdescription' | $T8 %]</th>
31 <td><input name="taxdescription" value="[% HTML.escape(taxdescription) %]" class="wi-verywide" type="text"></td>
33 [% FOREACH language = LANGUAGES %]
35 <th>[% HTML.escape(language.description) %] ([% LxERP.t8('Translation') %])</th>
36 <td><input name="translation_[% language.id %]" value="[% HTML.escape(TAX.translated_attribute('taxdescription', language, 1)) %]" class="wi-verywide" type="text"></td>
40 <th>[% 'tax_percent' | $T8 %]</th>
42 [% IF tax_already_used %]
43 [% HTML.escape(rate) %]%
44 <input type="hidden" name="rate" value="[% HTML.escape(rate) %]">
46 <input name="rate" value="[% HTML.escape(rate) %]" class="wi-tinynumber" type="text">%
51 <th>[% 'tax_chartaccno' | $T8 %]</th>
53 <select name="chart_id" class="wi-verywide">
54 <option value="">[% 'None' | $T8 %]</option>
55 [% FOREACH row = ACCOUNTS %]
56 <option value="[% HTML.escape(row.id) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.taxaccount) %]</option>
62 <th>[% 'Automatic skonto chart sales' | $T8 %]</th>
63 <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, class='wi-verywide') %]</td>
66 <th>[% 'Automatic skonto chart purchase' | $T8 %]</th>
67 <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 class='wi-verywide') %]</td>
70 <th>[% 'Account categories' | $T8 %]</th>
73 [% L.checkbox_tag('asset', value => 1, checked => 1) %]
75 [% L.checkbox_tag('asset', value => 1, checked => 0) %]
77 [% 'Asset' | $T8 %] (A) <br>
80 [% L.checkbox_tag('liability', value => 1, checked => 1) %]
82 [% L.checkbox_tag('liability', value => 1, checked => 0) %]
84 [% 'Liability' | $T8 %] (L) <br>
87 [% L.checkbox_tag('equity', value => 1, checked => 1) %]
89 [% L.checkbox_tag('equity', value => 1, checked => 0) %]
91 [% 'Equity' | $T8 %] (Q) <br>
94 [% L.checkbox_tag('revenue', value => 1, checked => 1) %]
96 [% L.checkbox_tag('revenue', value => 1, checked => 0) %]
98 [% 'Revenue' | $T8 %] (I) <br>
101 [% L.checkbox_tag('expense', value => 1, checked => 1) %]
103 [% L.checkbox_tag('expense', value => 1, checked => 0) %]
105 [% 'Expense' | $T8 %] (E) <br>
108 [% L.checkbox_tag('costs', value => 1, checked => 1) %]
110 [% L.checkbox_tag('costs', value => 1, checked => 0) %]
112 [% 'Costs' | $T8 %] (C)
119 [% UNLESS orphaned %]
121 <h3 class="caption">[% 'Chartaccounts connected to this Tax:' | $T8 %]</h3>
123 [% FOREACH row = TAXINUSE %]
124 <li><a href="am.pl?action=edit_account&id=[% HTML.url(row.id) %]&callback=[% HTML.url(callback) %]">[% HTML.escape(row.accno) %]</a></li>
130 <input type="hidden" name="callback" value="[% #HTML.escape(callback) %]">
132 </div><!-- /.wrapper -->