c2ea10ec57d068285e4f106cb10f9a21633a82fe
[kivitendo-erp.git] / 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>