epic-s6ts
[kivitendo-erp.git] / templates / webpages / rp / balance_sheet.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 <h3 align="center">
5 [% company %]
6 <br>[% address %]
7 <p>[% 'BALANCE SHEET' | $T8 %]
8 <br>[% 'Balance sheet date' | $T8 %]: [% this_period %]
9 <br>[% 'Report date' | $T8 %]: [% report_date %]
10 </h3>
11
12 <table border="0">
13   <tr>
14     <th align="left" width="400" colspan="2">[% 'ASSETS' | $T8 %]<br><hr align="left" width="250" size="5" noshade></th>
15     <th><b>[% this_startdate %] - [% this_period %]<b></th>
16     <th><b>[% IF last_period %][% last_startdate %] - [% last_period %][% END %]<b></th>
17   </tr>
18
19   [% FOREACH row = A %]
20   <tr>
21     <td> </td>
22     <td>[% row.accno _ ' - ' IF l_accno %][% row.description %]</td>
23     <td align="right">[% LxERP.format_amount(row.this, decimalplaces) %]</td>
24     [%- IF last_period %]
25     <td align="right">[% LxERP.format_amount(row.last, decimalplaces) %]</td>
26     [%- END %]
27   </tr>
28   [% END %]
29
30 [% IF l_subtotal %]
31   <tr>
32     <td colspan="2"> </td>
33     <td><hr noshade size="1"></td>
34     <td><hr noshade size="1"></td>
35   </tr>
36
37   <tr valign="top">
38     <th align="left" colspan="2">[% 'TOTAL' | $T8 %]</th>
39     <td align="right">[% LxERP.format_amount(total.A.this, decimalplaces) %]<hr noshade size="2"></td>
40     [%- IF last_period %]
41     <td align="right">[% LxERP.format_amount(total.A.last, decimalplaces) %]<hr noshade size="2"></td>
42     [%- END %]
43   </tr>
44 [% END %]
45
46   <tr>
47     <th align="left" colspan="4">[% 'LIABILITIES' | $T8 %]<b><hr align="left" width="250" size="5" noshade></th>
48   </tr>
49
50   [% FOREACH row = L %]
51   <tr>
52     <td></td>
53     <td>[% row.accno _ ' - ' IF l_accno %][% row.description %]</td>
54     <td align="right">[% LxERP.format_amount(row.this, decimalplaces) %]</td>
55     [%- IF last_period %]
56     <td align="right">[% LxERP.format_amount(row.last, decimalplaces) %]</td>
57     [%- END %]
58   </tr>
59   [% END %]
60
61 [% IF l_subtotal %]
62   <tr>
63     <td colspan="2"> </td>
64     <td><hr noshade size="1"></td>
65     <td><hr noshade size="1"></td>
66   </tr>
67
68   <tr valign="top">
69     <td></td>
70     <th align="left">[% 'TOTAL' | $T8 %]</th>
71     <td align="right">[% LxERP.format_amount(total.L.this, decimalplaces) %]<br><hr noshade size="2"</td>
72     [%- IF last_period %]
73     <td align="right">[% LxERP.format_amount(total.L.last, decimalplaces) %]<br><hr noshade size="2"</td>
74     [%- END %]
75   </tr>
76 [% END %]
77
78   <tr>
79     <th align="left" colspan="4">[% 'EQUITY' | $T8 %]<br><hr align="left" width="250" size="5" noshade></th>
80   </tr>
81
82   [% FOREACH row = Q %]
83   <tr>
84     <td></td>
85     <td>[% row.accno _ ' - ' IF l_accno and row.accno %][% row.description %]</td>
86     <td align="right">[% LxERP.format_amount(row.this, decimalplaces) %]</td>
87     [%- IF last_period %]
88     <td align="right">[% LxERP.format_amount(row.last, decimalplaces) %]</td>
89     [%- END %]
90   </tr>
91   [% END  %]
92
93 [% IF l_subtotal %]
94   <tr>
95     <td colspan="2"> </td>
96     <td><hr noshade size="1"></td>
97     <td><hr noshade size="1"></td>
98   </tr>
99
100   <tr valign="top">
101     <td></td>
102     <th align="left">[% 'TOTAL' | $T8 %]</th>
103     <td align="right">[% LxERP.format_amount(total.Q.this, decimalplaces) %]<br><hr noshade size="2"</td>
104     [%- IF last_period %]
105     <td align="right">[% LxERP.format_amount(total.Q.last, decimalplaces) %]<br><hr noshade size="2"</td>
106     [%- END %]
107   </tr>
108 [% END %]
109
110   <tr valign="top">
111     <th align="left" colspan="2">[% 'TOTAL' | $T8 %] [% 'LIABILITIES' | $T8 %] &amp; [% 'EQUITY' | $T8 %]</th>
112     <td align="right">[% LxERP.format_amount(total.this, decimalplaces) %]<br><hr noshade size="2"></td>
113     [%- IF last_period %]
114     <td align="right">[% LxERP.format_amount(total.last, decimalplaces) %]<br><hr noshade size="2"></td>
115     [%- END %]
116   </tr>
117 </table>