Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 63a2d818

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID 63a2d81836931819f8583c81104e1c9e203f5bc0
  • Vorgänger 1b788ad3
  • Nachfolger b9c01f38

Neues Design 2019 Standard-Code templates/webpages/liquidity_projection/

Unterschiede anzeigen:

templates/webpages/liquidity_projection/_filter.html
1 1
[% USE LxERP %]
2 2
[% USE L %]
3
[% USE T8 %]
3
[% USE T8 %]  
4
<div class="wrapper">
4 5

  
5 6
<form method="post" action="controller.pl" id="filter_form">
6
 <table border="0">
7
  <tr>
8
   <th align="right">[% LxERP.t8("Number of months") %]</th>
9
   <td>[% L.input_tag("params.months", FORM.params.months, class="initial_focus") %]</td>
10
  </tr>
11

  
12
  <tr>
13
   <th align="right" valign="top">[% LxERP.t8("Break down by") %]</th>
14
   <td valign="top">
15
    [% L.checkbox_tag("params.type",           value=1, checked=FORM.params.type,           label=LxERP.t8("Basis of calculation")) %]
16
    <br>
17
    [% L.checkbox_tag("params.salesman",       value=1, checked=FORM.params.salesman,       label=LxERP.t8("Salesman")) %]
18
    <br>
19
    [% L.checkbox_tag("params.buchungsgruppe", value=1, checked=FORM.params.buchungsgruppe, label=LxERP.t8("Booking group")) %]
20
   </td>
21
  </tr>
22
 </table>
7
  <table class="tbl-horizontal">
8
  <caption>[% 'Filter' | $T8 %]</caption>
9
  <tbody>
10
    <tr>
11
      <th>[% LxERP.t8("Number of months") %]</th>
12
      <td>[% L.input_tag("params.months", FORM.params.months, class="initial_focus") %]</td>
13
    </tr>
14
    <tr>
15
      <th>[% LxERP.t8("Break down by") %]</th>
16
      <td> 
17
        [% L.checkbox_tag("params.type",           value=1, checked=FORM.params.type,           label=LxERP.t8("Basis of calculation")) %] <br>
18
        [% L.checkbox_tag("params.salesman",       value=1, checked=FORM.params.salesman,       label=LxERP.t8("Salesman")) %] <br>
19
        [% L.checkbox_tag("params.buchungsgruppe", value=1, checked=FORM.params.buchungsgruppe, label=LxERP.t8("Booking group")) %] 
20
      </td>
21
    </tr>
22
  </tbody>
23
  </table>
23 24
</form>
25

  
26
</div><!-- /.wrapper -->
27

  
templates/webpages/liquidity_projection/_result.html
2 2
[% USE LxERP %]
3 3
[% SET name_col = FORM.params.salesman || FORM.params.buchungsgruppe || FORM.params.type %]
4 4

  
5
<table border="0">
6
 <tr>
7
  <th class="listheading">[% LxERP.t8("Type") %]</th>
8
  [%- IF name_col %]
9
   <th class="listheading">[% LxERP.t8("Name") %]</th>
10
  [%- END %]
11
  [%- FOREACH month = SELF.liquidity.sorted.month %]
12
   <th class="listheading" align="right">[%- IF month == 'old' %][% LxERP.t8("old") %][% ELSIF month == 'future' %][% LxERP.t8("prospective") %][% ELSE %][%- HTML.escape(month) %][% END %]</th>
13
  [%- END %]
14
 </tr>
15

  
16
 [% IF FORM.params.type %]
17
  [% FOREACH type = SELF.liquidity.sorted.type %]
18
   <tr class="listrow">
19
    <td>[% IF loop.first %][% LxERP.t8("Basis of calculation") %][% END %]</td>
20
    <td>
21
     [% IF    type == 'order' %][% LxERP.t8("Sales Orders") %]
22
     [% ELSIF type == 'partial' %][% LxERP.t8("Partial invoices") %]
23
     [% ELSE %][% LxERP.t8("Periodic Invoices") %]
24
     [% END %]
25
    </td>
26

  
27
    [%- FOREACH month = SELF.liquidity.sorted.month %]
28
     <td align="right">[% LxERP.format_amount(SELF.liquidity.$type.$month, 2) %]</td>
29
    [%- END %]
30
   </tr>
31
  [%- END %]
32
 [%- END %]
33

  
34
 [%- IF FORM.params.salesman %]
35
  [%- FOREACH salesman = SELF.liquidity.sorted.salesman %]
36
   <tr class="listrow">
37
    <td>[% IF loop.first %][% LxERP.t8("Salesman") %][% END %]</td>
38
    <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 %]
39 29

  
40
    [%- FOREACH month = SELF.liquidity.sorted.month %]
41
     <td align="right">[% LxERP.format_amount(SELF.liquidity.salesman.$salesman.$month, 2) %]</td>
42
    [%- END %]
43
   </tr>
44
  [%- END %]
45
 [%- 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>
46 35

  
47
 [%- IF FORM.params.buchungsgruppe %]
48
  [%- FOREACH buchungsgruppe = SELF.liquidity.sorted.buchungsgruppe %]
49
   <tr class="listrow">
50
    <td>[% IF loop.first %][% LxERP.t8("Booking group") %][% END %]</td>
51
    <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 %]
52 42

  
53
    [%- FOREACH month = SELF.liquidity.sorted.month %]
54
     <td align="right">[% LxERP.format_amount(SELF.liquidity.buchungsgruppe.$buchungsgruppe.$month, 2) %]</td>
55
    [%- END %]
56
   </tr>
57
  [%- END %]
58
 [%- 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>
59 48

  
60
 <tr class="listrow listtotal">
61
  <td>[% LxERP.t8("Total") %]</td>
62
  [% IF name_col %]<td></td>[% END %]
63
  [%- FOREACH month = SELF.liquidity.sorted.month %]
64
   <td align="right">
65
    [% IF SELF.liquidity.total.$month > 0 %]
66
     <a href="[% HTML.escape(SELF.link_to_old_orders(reqdate=month, months=params.months)) %]">
67
    [% END %]
68
    [% LxERP.format_amount(SELF.liquidity.total.$month, 2) %]
69
    [% IF SELF.liquidity.total.$month > 0 %]
70
     </a>
71
    [% END %]
72
   </td>
73
  [%- END %]
74
 </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>
75 73
</table>
templates/webpages/liquidity_projection/show.html
3 3
[% USE L %]
4 4
<body>
5 5

  
6
 <h1>[% HTML.escape(title) %]</h1>
6
<h1>[% HTML.escape(title) %]</h1>
7 7

  
8
 [% PROCESS 'liquidity_projection/_filter.html' %]
9

  
10
 [%- IF SELF.liquidity %]
11
  <hr>
8
[% PROCESS 'liquidity_projection/_filter.html' %]
12 9

  
10
[% IF SELF.liquidity %]
13 11
  [% PROCESS 'liquidity_projection/_result.html' %]
14
 [% END %]
12
[% END %]
15 13

  
16 14
</body>
17 15
</html>

Auch abrufbar als: Unified diff