Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5d2e89ae

Von Hans Peter Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 5d2e89aedc462184026083c3691eeb0491d1f3c3
  • Vorgänger c9683b95
  • Nachfolger 1cb35917

Design 4.0: Anpassungen neues kivitendo Design in templates/webpages/rp/..

Unterschiede anzeigen:

templates/webpages/rp/balance_sheet.html
1 1
[% USE T8 %]
2 2
[% USE HTML %]
3 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 4

  
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 %]
5
<!-- PENDENT: Ueberschriften mal genauer anschauen, ebenfalls in Tabellen -->
6
<h3>[% company %]
7
<br>[% address %] [% 'BALANCE SHEET' | $T8 %]
8
<br>[% 'Balance sheet date' | $T8 %]: [% this_period %]
9
<br>[% 'Report date' | $T8 %]: [% report_date %]</h3>
109 10

  
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>
11
<table class="tbl-horizontal test">
12
  <tbody>
13
    <tr>
14
      <th colspan="2"><h3>[% 'ASSETS' | $T8 %]</h3></th>
15
      <th>[% this_startdate %] - [% this_period %]</th>
16
      <th>[% IF last_period %][% last_startdate %] - [% last_period %][% END %]</th>
17
    </tr>
18
    [% FOREACH row = A %]
19
      <tr>
20
        <td class="right">[% row.accno IF l_accno %]</td>
21
        [%
22
          SET colspan = 1 ;
23
          IF row.accno < 1000 ;
24
            SET colspan = colspan+1 ;
25
            IF last_period      ;
26
              SET colspan = colspan+1 ;
27
            END ;
28
          END ;
29
         %]
30
        [% IF colspan > 1 %]<td colspan="[% colspan %]">[% ELSE %]<td>[%  END %]
31
        [% row.description %]</td>
32
        [% IF row.accno > 999 %]
33
          <td class="numeric">[% LxERP.format_amount(row.this, decimalplaces) %]</td>
34
          <td class="numeric">[% IF last_period %][% LxERP.format_amount(row.last, decimalplaces) %][% END %]</td>
35
        [% END %]
36
      </tr>
37
    [% END %]
38
    [% IF l_subtotal %]
39
      <tr class="subtotal">
40
        <th colspan="2">[% 'TOTAL' | $T8 %]</th>
41
        <th class="numeric">[% LxERP.format_amount(total.A.this, decimalplaces) %]</th>
42
        <th class="numeric">[% IF last_period %][% LxERP.format_amount(total.A.last, decimalplaces) %][% END %]</th>
43
      </tr>
44
    [% END %]
45
    <tr><th colspan="4" class="caption">[% 'LIABILITIES' | $T8 %]</th></tr>
46
    [% FOREACH row = L %]
47
      <tr>
48
        <td class="right">[% row.accno IF l_accno %]</td>
49
        <td>[% row.description %]</td>
50
        <td class="numeric">[% LxERP.format_amount(row.this, decimalplaces) %]</td>
51
        <td class="numeric">[% IF last_period %][% LxERP.format_amount(row.last, decimalplaces) %][% END %]</td>
52
      </tr>
53
    [% END %]
54
    [% IF l_subtotal %]
55
      <tr class="subtotal">
56
        <th colspan="2">[% 'TOTAL' | $T8 %]</th>
57
        <td class="numeric">[% LxERP.format_amount(total.L.this, decimalplaces) %]</td>
58
        <td class="numeric">[% IF last_period %][% LxERP.format_amount(total.L.last, decimalplaces) %][% END %]</td>
59
      </tr>
60
    [% END %]
61
    <tr><th colspan="4" class="caption">[% 'EQUITY' | $T8 %]</th></tr>
62
    [% FOREACH row = Q %]
63
      <tr>
64
        <td class="right">[% row.accno IF l_accno and row.accno %]</td>
65
        <td>[% row.description %]</td>
66
        <td class="numeric">[% LxERP.format_amount(row.this, decimalplaces) %]</td>
67
        <td class="numeric">[% IF last_period %][% LxERP.format_amount(row.last, decimalplaces) %][% END %]</td>
68
      </tr>
69
    [% END  %]
70
    [% IF l_subtotal %]
71
    <tr class="subtotal">
72
      <th colspan="2">[% 'TOTAL' | $T8 %]</th>
73
      <td class="numeric">[% LxERP.format_amount(total.Q.this, decimalplaces) %]</td>
74
      <td class="numeric">[% IF last_period %][% LxERP.format_amount(total.Q.last, decimalplaces) %][% END %]</td>
75
    </tr>
76
    [% END %]
77
  </tbody>
78
  <tfoot>
79
    <tr>
80
      <th colspan="2">[% 'TOTAL' | $T8 %] [% 'LIABILITIES' | $T8 %] &amp; [% 'EQUITY' | $T8 %]</th>
81
      <td class="numeric">[% LxERP.format_amount(total.this, decimalplaces) %]</td>
82
      <td class="numeric">[% IF last_period %][% LxERP.format_amount(total.last, decimalplaces) %][% END %]</td>
83
    </tr>
84
  </tfoot>
117 85
</table>

Auch abrufbar als: Unified diff