From 97b2253e9d464e5a25dd1de8ffadd9d513cb3fda Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 2 Jul 2025 11:10:53 +0530 Subject: [PATCH] fix: made lost notes as text and non mandatory if lost reason is not Other --- crm/fcrm/doctype/crm_deal/crm_deal.json | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.json b/crm/fcrm/doctype/crm_deal/crm_deal.json index 121c5e95..6b7ce0fe 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.json +++ b/crm/fcrm/doctype/crm_deal/crm_deal.json @@ -15,7 +15,7 @@ "status", "deal_owner", "lost_reason", - "other_lost_reason", + "lost_notes", "section_break_jgpm", "probability", "deal_value", @@ -402,17 +402,16 @@ "options": "CRM Lost Reason" }, { - "depends_on": "eval: doc.lost_reason == \"Other\"", - "fieldname": "other_lost_reason", - "fieldtype": "Data", - "label": "Specify Other Reason", + "fieldname": "lost_notes", + "fieldtype": "Text", + "label": "Lost Notes", "mandatory_depends_on": "eval: doc.lost_reason == \"Other\"" } ], "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-06-30 17:53:23.408301", + "modified": "2025-07-02 11:07:50.192089", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Deal",