]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/customer_vendor_turnover/dun_statistic.html
Kundenstatistik: Templates
[mfinanz.git] / templates / webpages / customer_vendor_turnover / dun_statistic.html
diff --git a/templates/webpages/customer_vendor_turnover/dun_statistic.html b/templates/webpages/customer_vendor_turnover/dun_statistic.html
new file mode 100644 (file)
index 0000000..7d46bf9
--- /dev/null
@@ -0,0 +1,22 @@
+[%- USE T8 %]
+[%- USE LxERP %]
+[%- USE L %]
+[%- USE HTML %]
+
+<p> 
+[% L.radio_button_tag('period', value='year', label= LxERP.t8('Year'), onclick='show_dun_stat("y");') %]
+
+[% L.radio_button_tag('period', value='month', label= LxERP.t8('Month'), onclick='show_dun_stat("m");') %]
+</p>
+<script type="text/javascript">
+  function show_dun_stat(period) {
+    if (period === 'y') {
+      var url = 'controller.pl?action=CustomerVendorTurnover/count_open_items_by_year&id=' + $('#cv_id').val();
+      $('#duns').load(url);
+    } else {
+      var url = 'controller.pl?action=CustomerVendorTurnover/count_open_items_by_month&id=' + $('#cv_id').val();
+      $('#duns').load(url);
+    }
+  }
+</script>
+<div id="duns"></div>