Revision 1261511c
Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt
templates/webpages/liquidity_projection/_result.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%] |
|
2 |
[%- SET name_col = FORM.params.salesman || FORM.params.buchungsgruppe || FORM.params.type %] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% SET name_col = FORM.params.salesman || FORM.params.buchungsgruppe || FORM.params.type %] |
|
3 | 4 |
|
4 |
<table border="0"> |
|
5 |
<tr> |
|
6 |
<th class="listheading">[% LxERP.t8("Type") %]</th> |
|
7 |
[%- IF name_col %] |
|
8 |
<th class="listheading">[% LxERP.t8("Name") %]</th> |
|
9 |
[%- END %] |
|
10 |
[%- FOREACH month = SELF.liquidity.sorted.month %] |
|
11 |
<th class="listheading" align="right">[%- IF month == 'old' %][% LxERP.t8("old") %][% ELSIF month == 'future' %][% LxERP.t8("prospective") %][% ELSE %][%- HTML.escape(month) %][% END %]</th> |
|
12 |
[%- END %] |
|
13 |
</tr> |
|
14 |
|
|
15 |
[% IF FORM.params.type %] |
|
16 |
[% FOREACH type = SELF.liquidity.sorted.type %] |
|
17 |
<tr class="listrow"> |
|
18 |
<td>[% IF loop.first %][% LxERP.t8("Basis of calculation") %][% END %]</td> |
|
19 |
<td> |
|
20 |
[% IF type == 'order' %][% LxERP.t8("Sales Orders") %] |
|
21 |
[% ELSIF type == 'partial' %][% LxERP.t8("Partial invoices") %] |
|
22 |
[% ELSE %][% LxERP.t8("Periodic Invoices") %] |
|
23 |
[% END %] |
|
24 |
</td> |
|
25 |
|
|
26 |
[%- FOREACH month = SELF.liquidity.sorted.month %] |
|
27 |
<td align="right">[% LxERP.format_amount(SELF.liquidity.$type.$month, 2) %]</td> |
|
28 |
[%- END %] |
|
29 |
</tr> |
|
30 |
[%- END %] |
|
31 |
[%- END %] |
|
32 |
|
|
33 |
[%- IF FORM.params.salesman %] |
|
34 |
[%- FOREACH salesman = SELF.liquidity.sorted.salesman %] |
|
35 |
<tr class="listrow"> |
|
36 |
<td>[% IF loop.first %][% LxERP.t8("Salesman") %][% END %]</td> |
|
37 |
<td>[%- HTML.escape(salesman) %]</td> |
|
5 |
<table class="tbl-list wi-moderate"> |
|
6 |
<caption>[% 'Search Result' | $T8 %]</caption> |
|
7 |
<thead> |
|
8 |
<tr> |
|
9 |
<th>[% LxERP.t8("Type") %]</th> |
|
10 |
[% IF name_col %] |
|
11 |
<th>[% LxERP.t8("Name") %]</th> |
|
12 |
[% END %] |
|
13 |
[% FOREACH month = SELF.liquidity.sorted.month %] |
|
14 |
<th>[% IF month == 'old' %][% LxERP.t8("old") %][% ELSIF month == 'future' %][% LxERP.t8("prospective") %][% ELSE %][% HTML.escape(month) %][% END %]</th> |
|
15 |
[% END %] |
|
16 |
</tr> |
|
17 |
</thead> |
|
18 |
<tbody> |
|
19 |
[% IF FORM.params.type %] [% FOREACH type = SELF.liquidity.sorted.type %] |
|
20 |
<tr> |
|
21 |
<td>[% IF loop.first %][% LxERP.t8("Basis of calculation") %][% END %]</td> |
|
22 |
<td>[% IF type == 'order' %][% LxERP.t8("Sales Orders") %] [% ELSIF type == 'partial' %][% LxERP.t8("Partial invoices") %] [% ELSE %][% LxERP.t8("Periodic Invoices") %] [% END %] </td> |
|
23 |
[% FOREACH month = SELF.liquidity.sorted.month %] |
|
24 |
<td class="numeric">[% LxERP.format_amount(SELF.liquidity.$type.$month, 2) %]</td> |
|
25 |
[% END %] |
|
26 |
</tr> |
|
27 |
[% END %] |
|
28 |
[% END %] |
|
38 | 29 |
|
39 |
[%- FOREACH month = SELF.liquidity.sorted.month %] |
|
40 |
<td align="right">[% LxERP.format_amount(SELF.liquidity.salesman.$salesman.$month, 2) %]</td> |
|
41 |
[%- END %] |
|
42 |
</tr> |
|
43 |
[%- END %] |
|
44 |
[%- END %] |
|
30 |
[% IF FORM.params.salesman %] |
|
31 |
[% FOREACH salesman = SELF.liquidity.sorted.salesman %] |
|
32 |
<tr> |
|
33 |
<td>[% IF loop.first %][% LxERP.t8("Salesman") %][% END %]</td> |
|
34 |
<td>[% HTML.escape(salesman) %]</td> |
|
45 | 35 |
|
46 |
[%- IF FORM.params.buchungsgruppe %] |
|
47 |
[%- FOREACH buchungsgruppe = SELF.liquidity.sorted.buchungsgruppe %] |
|
48 |
<tr class="listrow"> |
|
49 |
<td>[% IF loop.first %][% LxERP.t8("Booking group") %][% END %]</td> |
|
50 |
<td>[%- HTML.escape(buchungsgruppe) %]</td> |
|
36 |
[% FOREACH month = SELF.liquidity.sorted.month %] |
|
37 |
<td class="numeric">[% LxERP.format_amount(SELF.liquidity.salesman.$salesman.$month, 2) %]</td> |
|
38 |
[% END %] |
|
39 |
</tr> |
|
40 |
[% END %] |
|
41 |
[% END %] |
|
51 | 42 |
|
52 |
[%- FOREACH month = SELF.liquidity.sorted.month %] |
|
53 |
<td align="right">[% LxERP.format_amount(SELF.liquidity.buchungsgruppe.$buchungsgruppe.$month, 2) %]</td> |
|
54 |
[%- END %] |
|
55 |
</tr> |
|
56 |
[%- END %] |
|
57 |
[%- END %] |
|
43 |
[% IF FORM.params.buchungsgruppe %] |
|
44 |
[% FOREACH buchungsgruppe = SELF.liquidity.sorted.buchungsgruppe %] |
|
45 |
<tr> |
|
46 |
<td>[% IF loop.first %][% LxERP.t8("Booking group") %][% END %]</td> |
|
47 |
<td>[% HTML.escape(buchungsgruppe) %]</td> |
|
58 | 48 |
|
59 |
<tr class="listrow listtotal"> |
|
60 |
<td>[% LxERP.t8("Total") %]</td> |
|
61 |
[% IF name_col %]<td></td>[% END %] |
|
62 |
[%- FOREACH month = SELF.liquidity.sorted.month %] |
|
63 |
<td align="right"> |
|
64 |
[% IF SELF.liquidity.total.$month > 0 %] |
|
65 |
<a href="[% HTML.escape(SELF.link_to_old_orders(reqdate=month, months=params.months)) %]"> |
|
66 |
[% END %] |
|
67 |
[% LxERP.format_amount(SELF.liquidity.total.$month, 2) %] |
|
68 |
[% IF SELF.liquidity.total.$month > 0 %] |
|
69 |
</a> |
|
70 |
[% END %] |
|
71 |
</td> |
|
72 |
[%- END %] |
|
73 |
</tr> |
|
49 |
[% FOREACH month = SELF.liquidity.sorted.month %] |
|
50 |
<td class="numeric">[% LxERP.format_amount(SELF.liquidity.buchungsgruppe.$buchungsgruppe.$month, 2) %]</td> |
|
51 |
[% END %] |
|
52 |
</tr> |
|
53 |
[% END %] |
|
54 |
[% END %] |
|
55 |
</tbody> |
|
56 |
<tfoot> |
|
57 |
<tr class="listrow listtotal"> |
|
58 |
<td>[% LxERP.t8("Total") %]</td> |
|
59 |
[% IF name_col %]<td></td>[% END %] |
|
60 |
[% FOREACH month = SELF.liquidity.sorted.month %] |
|
61 |
<td class="numeric"> |
|
62 |
[% IF SELF.liquidity.total.$month > 0 %] |
|
63 |
<a href="[% HTML.escape(SELF.link_to_old_orders(reqdate=month, months=params.months)) %]"> |
|
64 |
[% END %] |
|
65 |
[% LxERP.format_amount(SELF.liquidity.total.$month, 2) %] |
|
66 |
[% IF SELF.liquidity.total.$month > 0 %] |
|
67 |
</a> |
|
68 |
[% END %] |
|
69 |
</td> |
|
70 |
[% END %] |
|
71 |
</tr> |
|
72 |
</tfoot> |
|
74 | 73 |
</table> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/l*
Dateien letter/* liquidity_projection/* login/* login_screen/*