<body> entfernt.
[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
19 <h1>[% title %] [% SET tax_report__accno_title = accno _ '_description' %][% GET $tax_report__accno_title %]</h1>
20
21 <p>
22  [% FOREACH option IN options %][% option %][% '<br>' UNLESS loop.last %][% END %]
23 </p>
24
25 <table width=100%>
26   <tr class=listheading>
27     [%- FOREACH col IN column_index %]
28     <th>
29      [%- IF column_sorted.$col %]<a href="[% sort_base %]&sort=[% col %]">[% END %]
30      [%- column_header.$col %]
31      [%- IF column_sorted.$col %]</a>[% END %]
32     </th>
33     [%- END %]
34   </tr>
35
36 [%- FOREACH row IN DATA %]
37  [% IF row.subtotal %]
38   [% PROCESS sub_total class='listsubtotal' %]
39  [% ELSIF row.total %]
40   [% PROCESS sub_total class='listtotal' %]
41  [% ELSE %]
42   <tr class='listrow[% loop.count % 2 %]'>
43   [%- FOREACH col IN column_index %]
44     <td[% IF row.$col.numeric %] class="numeric"[% END %]>
45        [%- IF row.$col.link %]<a href="[% row.$col.link %]">[% END %]
46        [%- IF row.$col.numeric %]
47          [%- LxERP.format_amount(row.$col.data, 2) | html %]
48        [%- ELSE %]
49          [%- row.$col.data | html %]
50        [%- END %]
51        [%- IF row.$col.link %]</a>[% END %]
52     </td>
53   [%- END %]
54   </tr>
55  [% END %]
56 [%- END %]
57 </table>
58 <hr size=3 noshade>
59