From 338322774e49fb93e649998b9f6adc1f893d8543 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 4 Dec 2023 15:28:10 +0530 Subject: [PATCH] fix: added sla related fields in lead & deal doctype --- crm/fcrm/doctype/crm_deal/crm_deal.json | 65 ++++++++++++++++++++++++- crm/fcrm/doctype/crm_lead/crm_lead.json | 65 ++++++++++++++++++++++++- 2 files changed, 126 insertions(+), 4 deletions(-) diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.json b/crm/fcrm/doctype/crm_deal/crm_deal.json index 4cf453ea..7b34cd93 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.json +++ b/crm/fcrm/doctype/crm_deal/crm_deal.json @@ -24,7 +24,17 @@ "deal_owner", "section_break_eepu", "lead", - "column_break_bqvs" + "column_break_bqvs", + "sla_tab", + "sla", + "column_break_pfvq", + "sla_status", + "sla_creation", + "response_details_section", + "response_by", + "column_break_hpvj", + "first_response_time", + "first_responded_on" ], "fields": [ { @@ -134,11 +144,62 @@ "fieldname": "organization_tab", "fieldtype": "Tab Break", "label": "Organization" + }, + { + "fieldname": "sla_tab", + "fieldtype": "Tab Break", + "label": "SLA", + "read_only": 1 + }, + { + "fieldname": "sla", + "fieldtype": "Link", + "label": "SLA", + "options": "CRM Service Level Agreement" + }, + { + "fieldname": "response_by", + "fieldtype": "Datetime", + "label": "Response By" + }, + { + "fieldname": "column_break_pfvq", + "fieldtype": "Column Break" + }, + { + "fieldname": "sla_status", + "fieldtype": "Select", + "label": "SLA Status", + "options": "\nFirst Response Due\nFailed\nFulfilled" + }, + { + "fieldname": "sla_creation", + "fieldtype": "Datetime", + "label": "SLA Creation" + }, + { + "fieldname": "response_details_section", + "fieldtype": "Section Break", + "label": "Response Details" + }, + { + "fieldname": "column_break_hpvj", + "fieldtype": "Column Break" + }, + { + "fieldname": "first_response_time", + "fieldtype": "Duration", + "label": "First Response Time" + }, + { + "fieldname": "first_responded_on", + "fieldtype": "Datetime", + "label": "First Responded On" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-11-29 11:31:46.968519", + "modified": "2023-12-04 15:27:30.887589", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Deal", diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.json b/crm/fcrm/doctype/crm_lead/crm_lead.json index 300f9901..d940f653 100644 --- a/crm/fcrm/doctype/crm_lead/crm_lead.json +++ b/crm/fcrm/doctype/crm_lead/crm_lead.json @@ -34,7 +34,17 @@ "no_of_employees", "annual_revenue", "image", - "converted" + "converted", + "sla_tab", + "sla", + "sla_creation", + "column_break_ffnp", + "sla_status", + "response_details_section", + "response_by", + "column_break_pweh", + "first_response_time", + "first_responded_on" ], "fields": [ { @@ -196,12 +206,63 @@ "fieldname": "details", "fieldtype": "Tab Break", "label": "Details" + }, + { + "fieldname": "sla_tab", + "fieldtype": "Tab Break", + "label": "SLA", + "read_only": 1 + }, + { + "fieldname": "sla", + "fieldtype": "Link", + "label": "SLA", + "options": "CRM Service Level Agreement" + }, + { + "fieldname": "response_by", + "fieldtype": "Datetime", + "label": "Response By" + }, + { + "fieldname": "column_break_ffnp", + "fieldtype": "Column Break" + }, + { + "fieldname": "sla_status", + "fieldtype": "Select", + "label": "SLA Status", + "options": "\nFirst Response Due\nFailed\nFulfilled" + }, + { + "fieldname": "sla_creation", + "fieldtype": "Datetime", + "label": "SLA Creation" + }, + { + "fieldname": "response_details_section", + "fieldtype": "Section Break", + "label": "Response Details" + }, + { + "fieldname": "column_break_pweh", + "fieldtype": "Column Break" + }, + { + "fieldname": "first_response_time", + "fieldtype": "Duration", + "label": "First Response Time" + }, + { + "fieldname": "first_responded_on", + "fieldtype": "Datetime", + "label": "First Responded On" } ], "image_field": "image", "index_web_pages_for_search": 1, "links": [], - "modified": "2023-11-29 11:31:08.555096", + "modified": "2023-12-04 15:25:07.155734", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Lead",