[fix] [client script] call cur_frm.cscript.custom_ type functions in the callback of standard functions

This commit is contained in:
Anand Doshi
2013-07-29 19:30:39 +05:30
parent 17082e71f1
commit 1fac2a98cf
68 changed files with 154 additions and 154 deletions

View File

@@ -55,7 +55,7 @@ erpnext.TransactionController = wn.ui.form.Controller.extend({
onload_post_render: function() {
if(this.frm.doc.__islocal && this.frm.doc.company) {
var me = this;
this.frm.call({
return this.frm.call({
doc: this.frm.doc,
method: "onload_post_render",
freeze: true,
@@ -116,7 +116,7 @@ erpnext.TransactionController = wn.ui.form.Controller.extend({
price_list_name: function(buying_or_selling) {
var me = this;
if(this.frm.doc.price_list_name) {
this.frm.call({
return this.frm.call({
method: "setup.utils.get_price_list_currency",
args: {
price_list_name: this.frm.doc.price_list_name,
@@ -557,7 +557,7 @@ erpnext.TransactionController = wn.ui.form.Controller.extend({
get_terms: function() {
var me = this;
if(this.frm.doc.tc_name) {
this.frm.call({
return this.frm.call({
method: "webnotes.client.get_value",
args: {
doctype: "Terms and Conditions",