From e9eec93be7d6d7d3f11373cafc57a51d2d4071fe Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Feb 2015 01:47:08 +0530 Subject: [PATCH] minor fix --- erpnext/selling/sales_common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/selling/sales_common.js b/erpnext/selling/sales_common.js index 1414912dfd..c153f94ab8 100644 --- a/erpnext/selling/sales_common.js +++ b/erpnext/selling/sales_common.js @@ -391,7 +391,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({ var item_grid = this.frm.fields_dict["items"].grid; $.each(["base_rate", "base_price_list_rate", "base_amount"], function(i, fname) { if(frappe.meta.get_docfield(item_grid.doctype, fname)) - item_grid.set_column_disp(fname, this.frm.doc.currency != company_currency); + item_grid.set_column_disp(fname, me.frm.doc.currency != company_currency); }); var show = (cint(cur_frm.doc.discount_amount)) || @@ -404,7 +404,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({ $.each(["base_net_rate", "base_net_amount"], function(i, fname) { if(frappe.meta.get_docfield(item_grid.doctype, fname)) - item_grid.set_column_disp(fname, (show && (this.frm.doc.currency != company_currency))); + item_grid.set_column_disp(fname, (show && (me.frm.doc.currency != company_currency))); }); // set labels