Upgrade-Script für Steuerfilterung
[kivitendo-erp.git] / templates / webpages / dbupgrade / steuerfilterung.html
1
2 [% USE T8 %]
3 [% USE HTML %]
4 [% USE L %]
5 <div class="listtop">[% 'New filter for tax accounts' | $T8 %]</div>
6
7 <form name="Form" method="post" action="login.pl">
8 <input type="hidden" name="action" value="login">
9 <input type="hidden" name="continued" value="1">
10
11 <p>[% 'From this version on a new feature is available.' | $T8 %]</p>
12 <p>[% 'You can choose account categories for taxes. Depending on these categories taxes will be displayed for transfers in the general ledger or not.' | $T8 %]</p>
13 <p>[% 'If you have not chosen for example the category revenue for a tax and you choose an revenue account to create a transfer in the general ledger, this tax will not be displayed in the tax dropdown.' | $T8 %]</p>
14 <p>[% 'This feature especially prevents mistakes by mixing up prior tax and sales tax.' | $T8 %]</p>
15 <p>[% 'Please choose for which categories the taxes should be displayed:' | $T8 %]</p>
16 <table>
17   <tr>
18     <th class="listheading">[% 'Taxkey' | $T8 %]</th>
19     <th class="listheading">[% 'Description' | $T8 %]</th>
20     <th class="listheading">[% 'Tax rate' | $T8 %]</th>
21     <th class="listheading">[% 'Asset' | $T8 %] (A)</th>
22     <th class="listheading">[% 'Liability' | $T8 %] (L)</th>
23     <th class="listheading">[% 'Equity' | $T8 %] (Q)</th>
24     <th class="listheading">[% 'Costs' | $T8 %] (C)</th>
25     <th class="listheading">[% 'Revenue' | $T8 %] (I)</th>
26     <th class="listheading">[% 'Expense' | $T8 %] (E)</th>
27   </tr>
28
29   [% SET row_odd = '1' %][% FOREACH row = PARTS %]
30   <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
31     <td align="right">[% HTML.escape(row.taxkey) %]</td>
32     <td align="left"> [% HTML.escape(row.taxdescription) %]</a></td>
33     <td align="right">[% HTML.escape(row.rate) %] %</td>
34     <td align="center">[% IF row.taxkey == 0 or row.taxkey == 1 %]
35                      [% L.checkbox_tag('asset_' _ loop.count, value => 1, checked => 1, class => 'checkbox') %]
36                      [% ELSE %]
37                      [% L.checkbox_tag('asset_' _ loop.count, value => 1, checked => 0, class => 'checkbox') %]
38                      [% END %]</td>
39
40     <td align="center">[% IF row.taxkey == 0 or row.taxkey == 1 %]
41                      [% L.checkbox_tag('liability_' _ loop.count, value => 1, checked => 1, class => 'checkbox') %]
42                      [% ELSE %]
43                      [% L.checkbox_tag('liability_' _ loop.count, value => 1, checked => 0, class => 'checkbox') %]
44                      [% END %]</td>
45
46     <td align="center">[% IF row.taxkey == 0 or row.taxkey == 1 %]
47                      [% L.checkbox_tag('equity_' _ loop.count, value => 1, checked => 1, class => 'checkbox') %]
48                      [% ELSE %]
49                      [% L.checkbox_tag('equity_' _ loop.count, value => 1, checked => 0, class => 'checkbox') %]
50                      [% END %]</td>
51
52     <td align="center">[% IF row.taxkey == 0 or row.taxkey == 1 %]
53                      [% L.checkbox_tag('costs_' _ loop.count, value => 1, checked => 1, class => 'checkbox') %]
54                      [% ELSE %]
55                      [% L.checkbox_tag('costs_' _ loop.count, value => 1, checked => 0, class => 'checkbox') %]
56                      [% END %]</td>
57
58     <td align="center">[% IF row.taxkey == 8 or row.taxkey == 9 or row.taxkey == 18 or row.taxkey == 19%]
59                      [% L.checkbox_tag('revenue_' _ loop.count, value => 1, checked => 0, class => 'checkbox') %]
60                      [% ELSE %]
61                      [% L.checkbox_tag('revenue_' _ loop.count, value => 1, checked => 1, class => 'checkbox') %]
62                      [% END %]</td>
63
64     <td align="center">[% IF row.taxkey == 2 or row.taxkey == 3 or row.taxkey == 10 or row.taxkey == 11 or row.taxkey == 12 or row.taxkey == 13 %]
65                      [% L.checkbox_tag('expense_' _ loop.count, value => 1, checked => 0, class => 'checkbox') %]
66                      [% ELSE %]
67                      [% L.checkbox_tag('expense_' _ loop.count, value => 1, checked => 1, class => 'checkbox') %]
68                      [% END %]</td>
69   </tr>
70   <input type="hidden" name="tax_id_[% loop.count %]" value="[% row.tax_id %]">
71   [% SET rowcount = loop.count %]
72   [% END %]
73   <input type="hidden" name="rowcount" value="[% rowcount %]">
74 </table>
75
76 <input type="submit" value="[% 'Continue' | $T8 %]">
77
78 </form>