Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 26cfeadb

Von Werner Hahn vor etwa 6 Jahren hinzugefügt

  • ID 26cfeadb8296f61fb4b5774a74f284a4c857144d
  • Vorgänger 9508e215
  • Nachfolger 4a98a423

Kundenstatistik: Templates

Unterschiede anzeigen:

templates/webpages/customer_vendor/form.html
36 36
      [% IF SELF.cv.id %]
37 37
        <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
38 38
      [% END %]
39
      <li><a href="[% 'controller.pl?action=CustomerVendorTurnover/list_turnover&id=' _ SELF.cv.id | html %]">[% LxERP.t8('Turnovers') %] [%- IF SELF.open_items > 0 %] <span style="background-color:red;color:black;">&nbsp; $&nbsp; </span>[% END %]</a></li>
39 40
    </ul>
40 41

  
41 42
    [% PROCESS "customer_vendor/tabs/billing.html" %]
templates/webpages/customer_vendor_turnover/_list_open_items.html
1
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
4
[%- USE HTML %]
5
<div class="listtop">[%- HTML.escape(title) %]</div>
6

  
7
<div id="sales_report">
8
  <table width="100%">
9
    <tbody>
10
      <tr>
11
        <td class="listheading">[% 'Invoice Number' | $T8 %]</td>
12
        <td class="listheading">[% 'Invoice Date' | $T8 %]</td>
13
        <td class="listheading">[% 'Amount' | $T8 %]</td>
14
        <td class="listheading">[% 'Inv. Duedate' | $T8 %]</td>
15
        <td class="listheading">[% 'Paid' | $T8 %]</td>
16
        <td class="listheading">[% 'Open Amount' | $T8 %]</td>
17
        <td class="listheading">[% 'Dunnings' | $T8 %]</td>
18
      </tr>
19

  
20
      [%- FOREACH row = OPEN_ITEMS %]
21
      <tr class="listrow[% loop.count % 2 %]">
22
        <td>[% row.invnumber | html %]</td>
23
        <td>[% row.transdate.to_kivitendo | html %]</td>
24
        <td>[%- LxERP.format_amount(row.amount, 2) %]</td>
25
        <td>[% row.duedate.to_kivitendo | html %]</td>
26
        <td>[%- LxERP.format_amount(row.paid, 2) %]</td>
27
        <td>[%- LxERP.format_amount(row.amount - row.paid,2) %]
28
        <td>
29
        [%- IF row.dunning_config_id != '' %]
30
          [%- FOREACH dun = row.dunnings %]
31
          [% dun.dunning_id | html %] -- [% dun.duedate.to_kivitendo | html %] -- [% dun.dunning_level | html %] -- [% dun.fee %]<br>
32
          [% END %]
33
        [% END %]
34
        </td>
35
      </tr>
36
      [% END %]
37
    </tbody>
38
  </table>
39
</div> 
templates/webpages/customer_vendor_turnover/count_open_items_by_year.html
1
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
4
[%- USE HTML %]
5
<div id="dun_statistic">
6
  <table width="100%">
7
    <tbody>
8
      <tr>
9
        <td class="listheading">[% 'Month/Year' | $T8 %]</td>
10
        <td class="listheading">[% 'Dunnings' | $T8 %]</td>
11
        <td class="listheading">[% 'Highest Dunninglevel' | $T8 %]</td>
12
      </tr>
13

  
14
      [%- FOREACH row = SELF.dun_statistic %]
15
      <tr class="listrow[% loop.count % 2 %]">
16
        <td>[% row.date_part | html %]</td>
17
        <td>[% row.count | html %]</td>
18
        <td>[% row.max | html %]</td>
19
      </tr>
20
      [% END %]
21
    </tbody>
22
  </table>
23
</div>
templates/webpages/customer_vendor_turnover/count_turnover.html
1
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
4
[%- USE HTML %]
5
<div id="turnover_statistic">
6
  <table width="100%">
7
    <tbody>
8
      <tr>
9
        <td class="listheading">[% 'Month/Year' | $T8 %]</td>
10
        <td class="listheading">[% 'Invoices' | $T8 %]</td>
11
        <td class="listheading">[% 'Turnover' | $T8 %]</td>
12
        <td class="listheading">[% 'Net.Turnover' | $T8 %]</td>
13
        <td class="listheading">[% 'Paid' | $T8 %]</td>
14
      </tr>
15
      [%- FOREACH row = SELF.turnover_statistic %]
16
      <tr class="listrow[% loop.count % 2 %]">
17
        <td>[% row.date_part | html %]</td>
18
        <td>[% row.count | html %]</td>
19
        <td>[%- LxERP.format_amount(row.amount,2) %]</td>
20
        <td>[%- LxERP.format_amount(row.netamount,2) %]</td>
21
        <td>[%- LxERP.format_amount(row.paid,2) %]</td>
22
      </tr>
23
      [% END %]
24

  
25
    </tbody>
26
  </table>
27
</div>
templates/webpages/customer_vendor_turnover/dun_statistic.html
1
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
4
[%- USE HTML %]
5

  
6
<p> 
7
[% L.radio_button_tag('period', value='year', label= LxERP.t8('Year'), onclick='show_dun_stat("y");') %]
8

  
9
[% L.radio_button_tag('period', value='month', label= LxERP.t8('Month'), onclick='show_dun_stat("m");') %]
10
</p>
11
<script type="text/javascript">
12
  function show_dun_stat(period) {
13
    if (period === 'y') {
14
      var url = 'controller.pl?action=CustomerVendorTurnover/count_open_items_by_year&id=' + $('#cv_id').val();
15
      $('#duns').load(url);
16
    } else {
17
      var url = 'controller.pl?action=CustomerVendorTurnover/count_open_items_by_month&id=' + $('#cv_id').val();
18
      $('#duns').load(url);
19
    }
20
  }
21
</script>
22
<div id="duns"></div>
templates/webpages/customer_vendor_turnover/invoices_statistic.html
1
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
4
[%- USE HTML %]
5
<div id="invoice_statistic">
6
  <table width="100%">
7
    <tbody>
8
      <tr>
9
        <td class="listheading">[% 'Invoice Number' | $T8 %]</td>
10
        <td class="listheading">[% 'Invoice Date' | $T8 %]</td>
11
        <td class="listheading">[% 'Amount' | $T8 %]</td>
12
        <td class="listheading">[% 'Inv. Duedate' | $T8 %]</td>
13
        <td class="listheading">[% 'Paid' | $T8 %]</td>
14
        <td class="listheading">[% 'Open Amount' | $T8 %]</td>
15
      </tr>
16

  
17
      [%- FOREACH row = invoices %]
18
      <tr class="listrow[% loop.count % 2 %]">
19
        <td>[% row.invnumber | html %]</td>
20
        <td>[% row.transdate.to_kivitendo | html %]</td>
21
        <td>[%- LxERP.format_amount(row.amount, 2) %]</td>
22
        <td>[% row.duedate.to_kivitendo | html %]</td>
23
        <td>[%- LxERP.format_amount(row.paid, 2) %]</td>
24
        <td>[%- LxERP.format_amount(row.amount - row.paid, 2) %]
25
      </tr>
26
      [% END %]
27
    </tbody>
28
  </table>
29

  
30
      
31
    </tbody>
32
  </table>
33
</div>
templates/webpages/customer_vendor_turnover/turnover.html
1
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
4
[%- USE HTML %]
5
[%- USE JavaScript -%]
6

  
7
[%- IF open_items %]
8
[% open_items %]
9
[% END %]
10

  
11
[% PROCESS "customer_vendor_turnover/_statistic_tabs.html" %]
templates/webpages/customer_vendor_turnover/turnover_statistic.html
1
[%- USE T8 %]
2
[%- USE LxERP %]
3
[%- USE L %]
4
[%- USE HTML %]
5
<p> 
6
[% L.radio_button_tag('period', value='year', label= LxERP.t8('Year'), onclick='show_turnover_stat("y");') %]
7

  
8
[% L.radio_button_tag('period', value='month', label= LxERP.t8('Month'), onclick='show_turnover_stat("m");') %]
9
</p>
10
<script type="text/javascript">
11
  function show_turnover_stat(period) {
12
    if (period === 'y') {
13
      var url = 'controller.pl?action=CustomerVendorTurnover/turnover_by_year&id=' + $('#cv_id').val();
14
      $('#turnovers').load(url);
15
    } else {
16
      var url = 'controller.pl?action=CustomerVendorTurnover/turnover_by_month&id=' + $('#cv_id').val();
17
      $('#turnovers').load(url);
18
    }
19
  }
20
</script>
21
<div id="turnovers"></div>

Auch abrufbar als: Unified diff