Kundenstatistik: Weiteres Template
authorWerner Hahn <wh@futureworldsearch.net>
Thu, 6 Sep 2018 14:01:55 +0000 (16:01 +0200)
committerWerner Hahn <wh@futureworldsearch.net>
Mon, 10 Sep 2018 17:54:03 +0000 (19:54 +0200)
templates/webpages/customer_vendor_turnover/_statistic_tabs.html [new file with mode: 0644]

diff --git a/templates/webpages/customer_vendor_turnover/_statistic_tabs.html b/templates/webpages/customer_vendor_turnover/_statistic_tabs.html
new file mode 100644 (file)
index 0000000..06bcb8c
--- /dev/null
@@ -0,0 +1,23 @@
+[%- USE T8 %]
+[%- USE LxERP %]
+[%- USE L %]
+[%- USE HTML %]
+<script type="text/javascript">
+  $(function() {
+    $ ( "#statistic_tabs" ).tabs();
+  });
+  function get_invoices() {
+    var url = 'controller.pl?action=CustomerVendorTurnover/get_invoices&id=' + $('#cv_id').val();
+    $('#invoices').load(url);
+  }
+</script>
+<div class="tabwidget" id="statistic_tabs">
+  <ul>
+    <li><a href="#turnover_stat">[% 'Turnoverstatistic' | $T8 %]</a></li>
+    <li><a href="#dun_stat">[% 'Dunningstatistic' | $T8 %]</a></li>
+    <li><a href="#invoices" onclick="get_invoices();">[% 'Invoices' | $T8 %]</a></li>
+  </ul>
+  <div id="turnover_stat">[% PROCESS "customer_vendor_turnover/turnover_statistic.html" %]</div>
+  <div id="dun_stat">[% PROCESS "customer_vendor_turnover/dun_statistic.html" %]</div>
+  <div id="invoices"></div>
+</div>