From d262eb1a1c20cdd2651202667b94d3b8cef80d11 Mon Sep 17 00:00:00 2001 From: khatrijitendra Date: Wed, 8 Feb 2017 14:59:59 +0530 Subject: [PATCH] issue in type and rate 1. there is not such field, "type" it is "margin_type" 2. there is not such field, "rate" it is "margin_rate_or_amount" --- erpnext/accounts/doctype/pricing_rule/pricing_rule.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.js b/erpnext/accounts/doctype/pricing_rule/pricing_rule.js index 5a3e651b24..03bb7aef5a 100644 --- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.js +++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.js @@ -91,8 +91,8 @@ cur_frm.cscript.buying = function() { } //Dynamically change the description based on type of margin -cur_frm.cscript.type = function(doc){ - cur_frm.set_df_property('rate', 'description', doc.type=='Percentage'?'In Percentage %':'In Amount') +cur_frm.cscript.margin_type = function(doc){ + cur_frm.set_df_property('margin_rate_or_amount', 'description', doc.margin_type=='Percentage'?'In Percentage %':'In Amount') } frappe.ui.form.on('Pricing Rule', 'price_or_discount', function(frm){ @@ -112,4 +112,4 @@ frappe.ui.form.on('Pricing Rule', { } } } -}) \ No newline at end of file +})