X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=js%2Fkivi.GL.js;fp=js%2Fkivi.GL.js;h=dc17ff38f7e7640cae731d0dc37db5414cb84acf;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 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'); +});