</html> entfernen
[kivitendo-erp.git] / templates / webpages / rp / tax_report.html
1 [%- USE L %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE T8 %]
5
6 [% BLOCK sub_total %]
7   <tr class='[% class %]'>
8   [% FOREACH col IN column_index %]
9     <td class='[% class %] numeric'>
10       [%- SWITCH col %]
11       [%- CASE [ 'netamount', 'tax', 'amount' ] %][% LxERP.format_amount(row.$col, 2) %]
12       [%- CASE %]&nbsp;[% END %]
13     </td>
14   [% END %]
15   </tr>
16 [% END %]
17
18 <body>
19
20 <h1>[% title %] [% SET tax_report__accno_title = accno _ '_description' %][% GET $tax_report__accno_title %]</h1>
21
22 <p>
23  [% FOREACH option IN options %][% option %][% '<br>' UNLESS loop.last %][% END %]
24 </p>
25
26 <table width=100%>
27   <tr class=listheading>
28     [%- FOREACH col IN column_index %]
29     <th>
30      [%- IF column_sorted.$col %]<a href="[% sort_base %]&sort=[% col %]">[% END %]
31      [%- column_header.$col %]
32      [%- IF column_sorted.$col %]</a>[% END %]
33     </th>
34     [%- END %]
35   </tr>
36
37 [%- FOREACH row IN DATA %]
38  [% IF row.subtotal %]
39   [% PROCESS sub_total class='listsubtotal' %]
40  [% ELSIF row.total %]
41   [% PROCESS sub_total class='listtotal' %]
42  [% ELSE %]
43   <tr class='listrow[% loop.count % 2 %]'>
44   [%- FOREACH col IN column_index %]
45     <td[% IF row.$col.numeric %] class="numeric"[% END %]>
46        [%- IF row.$col.link %]<a href="[% row.$col.link %]">[% END %]
47        [%- IF row.$col.numeric %]
48          [%- LxERP.format_amount(row.$col.data, 2) | html %]
49        [%- ELSE %]
50          [%- row.$col.data | html %]
51        [%- END %]
52        [%- IF row.$col.link %]</a>[% END %]
53     </td>
54   [%- END %]
55   </tr>
56  [% END %]
57 [%- END %]
58 </table>
59 <hr size=3 noshade>
60 </body>
61