From 6614d8aa014f2e12be77405426c559dd3cb68928 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Thu, 25 Jan 2018 12:27:00 +0530 Subject: [PATCH] Multiple changes: [Mod] Added 'primary_address_and_contact_detail' in toggle_display [Mod] Added a description for 'primary_address_and_contact_detail' --- erpnext/selling/doctype/customer/customer.js | 2 +- erpnext/selling/doctype/customer/customer.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/erpnext/selling/doctype/customer/customer.js b/erpnext/selling/doctype/customer/customer.js index 2dbbdf1051..16f0fafc67 100644 --- a/erpnext/selling/doctype/customer/customer.js +++ b/erpnext/selling/doctype/customer/customer.js @@ -63,7 +63,7 @@ frappe.ui.form.on("Customer", { frappe.dynamic_link = {doc: frm.doc, fieldname: 'name', doctype: 'Customer'} - frm.toggle_display(['address_html','contact_html'], !frm.doc.__islocal); + frm.toggle_display(['address_html','contact_html','primary_address_and_contact_detail'], !frm.doc.__islocal); if(!frm.doc.__islocal) { frappe.contacts.render_address_and_contact(frm); diff --git a/erpnext/selling/doctype/customer/customer.json b/erpnext/selling/doctype/customer/customer.json index 7e2c658022..1a104b543b 100644 --- a/erpnext/selling/doctype/customer/customer.json +++ b/erpnext/selling/doctype/customer/customer.json @@ -725,7 +725,8 @@ "bold": 0, "collapsible": 0, "columns": 0, - "fieldname": "primary_contact_detail", + "description": "Select, to make the customer searchable with these fields", + "fieldname": "primary_address_and_contact_detail", "fieldtype": "Section Break", "hidden": 0, "ignore_user_permissions": 0, @@ -1417,7 +1418,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-01-20 02:07:05.098742", + "modified": "2018-01-25 12:20:24.665219", "modified_by": "Administrator", "module": "Selling", "name": "Customer",