1 namespace('kivi.GL', function(ns) {
4 this.show_chart_balance = function(obj) {
5 var row = $(obj).attr('name').replace(/.*_/, '');
8 url: 'gl.pl?action=get_chart_balance',
9 data: { accno_id: $(obj).val() },
11 success: function (new_html) {
12 $('#chart_balance_' + row).html(new_html);
17 this.update_taxes = function(obj) {
18 var row = $(obj).attr('name').replace(/.*_/, '');
21 url: 'gl.pl?action=get_tax_dropdown',
22 data: { accno_id: $(obj).val(),
23 transdate: $('#transdate').val(),
24 deliverydate: $('#deliverydate').val() },
26 success: function (new_html) {
27 $("#taxchart_" + row).html(new_html);
34 kivi.File.doc_tab_init('gl_tabs', 'ui-tabs-docs', $('#id').val(), 'gl_transaction');