mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
[fix] [client script] call cur_frm.cscript.custom_ type functions in the callback of standard functions
This commit is contained in:
@@ -73,7 +73,7 @@ pscript['onload_Accounts Browser'] = function(wrapper){
|
||||
})
|
||||
|
||||
// load up companies
|
||||
wn.call({
|
||||
return wn.call({
|
||||
method:'accounts.page.accounts_browser.accounts_browser.get_companies',
|
||||
callback: function(r) {
|
||||
wrapper.$company_select.empty();
|
||||
@@ -265,7 +265,7 @@ erpnext.AccountsChart = Class.extend({
|
||||
v.master_type = '';
|
||||
v.company = me.company;
|
||||
|
||||
wn.call({
|
||||
return wn.call({
|
||||
args: v,
|
||||
method:'accounts.utils.add_ac',
|
||||
callback: function(r) {
|
||||
@@ -312,7 +312,7 @@ erpnext.AccountsChart = Class.extend({
|
||||
v.parent_cost_center = node.data('label');
|
||||
v.company = me.company;
|
||||
|
||||
wn.call({
|
||||
return wn.call({
|
||||
args: v,
|
||||
method:'accounts.utils.add_cc',
|
||||
callback: function(r) {
|
||||
|
||||
@@ -62,7 +62,7 @@ pscript['onload_Financial Statements'] = function(wrapper) {
|
||||
</div>').css({"min-height": "400px"});
|
||||
|
||||
// load companies
|
||||
$c_obj('MIS Control','get_comp','', function(r,rt) {
|
||||
return $c_obj('MIS Control','get_comp','', function(r,rt) {
|
||||
// company
|
||||
erpnext.fs.stmt_company.$input.empty()
|
||||
.add_options(['Select Company...'].concat(r.message.company));
|
||||
@@ -86,7 +86,7 @@ pscript.stmt_new = function(stmt,company_name,level,period,year) {
|
||||
year: erpnext.fs.stmt_fiscal_year.get_value()
|
||||
}
|
||||
|
||||
$c_obj('MIS Control', 'get_statement', docstring(arg), function(r,rt) {
|
||||
return $c_obj('MIS Control', 'get_statement', docstring(arg), function(r,rt) {
|
||||
var nl = r.message;
|
||||
var t = $i('stmt_tree');
|
||||
var stmt_type = erpnext.fs.stmt_type.get_value();
|
||||
|
||||
Reference in New Issue
Block a user