Kundenstatistik: Templates
[kivitendo-erp.git] / 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>