5 [% L.button_tag('', LxERP.t8('Hide buttons'), id="hide_buttons_button", class="hide") %]
6 [% L.button_tag('', LxERP.t8('Show charts'), id="show_charts_button", class="hide") %]
7 [% L.button_tag('', LxERP.t8('Hide charts'), id="hide_charts_button", class="hide") %]
9 <h3 align="center" id="show_buttons"> [% title %]</h3>
12 [% accounting_method %]<br>
17 <style type="text/css">
20 border-collapse: collapse;
25 /* background set via jquery */
47 <td width=75% align=left colspan=2><font size="+1"><b>A. Betriebseinnahmen</font></b><br></td>
51 [% FOREACH i IN categories_income %]
52 <tr class="category" data-catid="cat[% i %]">
54 [% HTML.escape(category_names.item(i)) %]
57 [% eur_amounts.item(i) %]
60 [% FOREACH chart = charts_by_category.item(i).list %]
61 <tr class="chartrow cat[% i %]">
62 <td class="chartname">[% chart.accno %] [% chart.description %]</td>
63 <td class="numeric"> [% LxERP.format_amount(chart.amount,2) %] </td>
69 <td><hr noshade size=1></td>
73 <th align=left><b>Summe Einnahmen</b></th>
74 <td align=right>[% sumeura %]<hr noshade size=2></td>
81 <td align=left><font size="+1"><b>B. Betriebsausgaben</font></b><br></td>
85 [% FOREACH i IN categories_expense %]
86 <tr class="category" data-catid="cat[% i %]">
88 [% HTML.escape(category_names.item(i)) %]
91 [% eur_amounts.item(i) %]
94 [% FOREACH chart = charts_by_category.item(i).list %]
95 <tr class="chartrow cat[% i %]">
96 <td class="chartname">[% chart.accno %] [% chart.description %]</td>
97 <td class="numeric"> [% LxERP.format_amount(chart.amount,2) %] </td>
103 <td><hr noshade size=1></td>
107 <th align=left><b>Summe Ausgaben</b></th>
108 <td align=right>[% sumeurb %] <br><hr noshade size=2</td>
115 <td align=left>GEWINN / VERLUST</td>
116 <td align=right>[% guvsumme %]<br><hr noshade size=2></td>
124 [% L.button_tag('', LxERP.t8('Show chart list'), id="show_chartlist_button", class="hide") %]
125 [% L.button_tag('', LxERP.t8('Hide chart list'), id="hide_chartlist_button", class="hide") %]
128 <div>[% 'Chart list' | $T8 %]</div>
132 <th>[% 'Chart' | $T8 %]</th>
133 <th>[% 'Amount' | $T8 %]</th>
134 <th>[% 'Category' | $T8 %]</th>
136 [% FOREACH key = charts.keys.sort %]
137 [% UNLESS charts.$key.pos_eur %]
141 <td>[% charts.$key.accno %]</td>
142 <td class="numeric">[% LxERP.format_amount( charts.$key.amount, 2 ) %]</td>
143 <td>[% HTML.escape(category_names.item(charts.$key.pos_eur)) %]</td>
152 <script language="javascript">
153 $( document ).ready(function() {
154 $( ".chartrow" ).hide();
155 $( "#hide_charts_button" ).hide();
156 $( "#hide_chartlist_button" ).hide();
157 $( "#chartlist" ).hide();
158 $( '.category:even' ).css('background-color','#f0f0f0');
159 $( '.category:odd' ).css('background-color','#f8f8f8');
161 $( "#show_chartlist_button" ).click(function() {
162 $( "#chartlist" ).toggle();
163 $('html, body').animate({
164 scrollTop: $(this).offset().top
167 $("#hide_chartlist_button").show();
170 $( "#hide_chartlist_button" ).click(function() {
171 $( "#chartlist" ).toggle();
172 $('html, body').animate({
173 scrollTop: $(this).offset().top
176 $("#show_chartlist_button").show();
179 $( "#hide_buttons_button" ).click(function() {
183 $( "#show_buttons" ).click(function() {
187 $( "#show_charts_button" ).click(function() {
188 $( ".chartrow" ).show();
190 $("#hide_charts_button").show();
193 $( "#hide_charts_button" ).click(function() {
194 $( ".chartrow" ).hide();
196 $("#show_charts_button").show();
199 $( ".category" ).click(function() {
200 var chartrow_class = $(this).attr('data-catid');
201 $('.' + chartrow_class).toggle();