From 15e7c186390a3097617dc6af7a08bb6c396e71d6 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 28 Feb 2013 18:10:19 +0530 Subject: [PATCH] fixes in price list currency --- buying/doctype/purchase_common/purchase_common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buying/doctype/purchase_common/purchase_common.js b/buying/doctype/purchase_common/purchase_common.js index b8346d3893..7775426eaa 100644 --- a/buying/doctype/purchase_common/purchase_common.js +++ b/buying/doctype/purchase_common/purchase_common.js @@ -54,9 +54,6 @@ erpnext.buying.BuyingController = erpnext.utils.Controller.extend({ }, price_list_name: function(callback_fn) { - this.frm.toggle_reqd(["price_list_currency", "plc_conversion_rate"], - !!(this.frm.doc.price_list_name)); - var me = this; if(this.frm.doc.price_list_name) { @@ -137,6 +134,9 @@ erpnext.buying.BuyingController = erpnext.utils.Controller.extend({ }, price_list_currency: function() { + this.frm.toggle_reqd("plc_conversion_rate", + !!(this.frm.doc.price_list_name && this.frm.doc.price_list_currency)); + this.set_dynamic_labels(); if(this.frm.doc.price_list_currency === this.get_company_currency())