deprecated gl_control and some rewrites

This commit is contained in:
Nabin Hait
2013-01-30 19:16:13 +05:30
parent c6a86535ef
commit fb3fd6e3e5
24 changed files with 242 additions and 313 deletions

View File

@@ -236,12 +236,15 @@ erpnext.AccountsChart = Class.extend({
v.master_type = '';
v.company = me.company;
$c_obj('GL Control', 'add_ac', v,
function(r,rt) {
wn.call({
args: v,
method:'accounts.utils.add_ac',
callback: function(r) {
$(btn).done_working();
d.hide();
node.trigger('reload');
});
node.trigger('reload');
}
});
});
// show
@@ -280,12 +283,15 @@ erpnext.AccountsChart = Class.extend({
v.parent_cost_center = node.data('label');
v.company_name = me.company;
$c_obj('GL Control', 'add_cc', v,
function(r,rt) {
wn.call({
args: v,
method:'accounts.utils.add_cc',
callback: function(r) {
$(btn).done_working();
d.hide();
node.trigger('reload');
});
node.trigger('reload');
}
});
});
d.show();
}