mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-18 19:07:55 +00:00
[fix] [client script] call cur_frm.cscript.custom_ type functions in the callback of standard functions
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user