X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/js/kivi.GL.js diff --git a/js/kivi.GL.js b/js/kivi.GL.js new file mode 100644 index 000000000..dc17ff38f --- /dev/null +++ b/js/kivi.GL.js @@ -0,0 +1,35 @@ +namespace('kivi.GL', function(ns) { + "use strict"; + + this.show_chart_balance = function(obj) { + var row = $(obj).attr('name').replace(/.*_/, ''); + + $.ajax({ + url: 'gl.pl?action=get_chart_balance', + data: { accno_id: $(obj).val() }, + dataType: 'html', + success: function (new_html) { + $('#chart_balance_' + row).html(new_html); + } + }); + }; + + this.update_taxes = function(obj) { + var row = $(obj).attr('name').replace(/.*_/, ''); + + $.ajax({ + url: 'gl.pl?action=get_tax_dropdown', + data: { accno_id: $(obj).val(), + transdate: $('#transdate').val(), + deliverydate: $('#deliverydate').val() }, + dataType: 'html', + success: function (new_html) { + $("#taxchart_" + row).html(new_html); + } + }); + }; +}); + +$(function() { + kivi.File.doc_tab_init('gl_tabs', 'ui-tabs-docs', $('#id').val(), 'gl_transaction'); +});