From 8c797d1532e3654ad2aa080de5fbd057ce73e28f Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 15 Dec 2023 11:52:28 +0530 Subject: [PATCH] revert: removed all follow up related doctype and field in SLA --- .../crm_pause_sla_on_status/__init__.py | 0 .../crm_pause_sla_on_status.json | 33 ---------------- .../crm_pause_sla_on_status.py | 9 ----- .../crm_service_level_agreement.js | 38 ++----------------- .../crm_service_level_agreement.json | 35 +---------------- .../crm_service_level_priority.json | 12 +----- .../crm_sla_fulfilled_on_status/__init__.py | 0 .../crm_sla_fulfilled_on_status.json | 33 ---------------- .../crm_sla_fulfilled_on_status.py | 9 ----- 9 files changed, 7 insertions(+), 162 deletions(-) delete mode 100644 crm/fcrm/doctype/crm_pause_sla_on_status/__init__.py delete mode 100644 crm/fcrm/doctype/crm_pause_sla_on_status/crm_pause_sla_on_status.json delete mode 100644 crm/fcrm/doctype/crm_pause_sla_on_status/crm_pause_sla_on_status.py delete mode 100644 crm/fcrm/doctype/crm_sla_fulfilled_on_status/__init__.py delete mode 100644 crm/fcrm/doctype/crm_sla_fulfilled_on_status/crm_sla_fulfilled_on_status.json delete mode 100644 crm/fcrm/doctype/crm_sla_fulfilled_on_status/crm_sla_fulfilled_on_status.py diff --git a/crm/fcrm/doctype/crm_pause_sla_on_status/__init__.py b/crm/fcrm/doctype/crm_pause_sla_on_status/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/crm/fcrm/doctype/crm_pause_sla_on_status/crm_pause_sla_on_status.json b/crm/fcrm/doctype/crm_pause_sla_on_status/crm_pause_sla_on_status.json deleted file mode 100644 index cd581c59..00000000 --- a/crm/fcrm/doctype/crm_pause_sla_on_status/crm_pause_sla_on_status.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "actions": [], - "allow_rename": 1, - "creation": "2023-12-14 10:57:31.009512", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "status" - ], - "fields": [ - { - "fieldname": "status", - "fieldtype": "Link", - "in_list_view": 1, - "label": "Status", - "options": "CRM Communication Status", - "reqd": 1 - } - ], - "index_web_pages_for_search": 1, - "istable": 1, - "links": [], - "modified": "2023-12-14 10:57:51.811369", - "modified_by": "Administrator", - "module": "FCRM", - "name": "CRM Pause SLA On Status", - "owner": "Administrator", - "permissions": [], - "sort_field": "modified", - "sort_order": "DESC", - "states": [] -} \ No newline at end of file diff --git a/crm/fcrm/doctype/crm_pause_sla_on_status/crm_pause_sla_on_status.py b/crm/fcrm/doctype/crm_pause_sla_on_status/crm_pause_sla_on_status.py deleted file mode 100644 index 41b59470..00000000 --- a/crm/fcrm/doctype/crm_pause_sla_on_status/crm_pause_sla_on_status.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - - -class CRMPauseSLAOnStatus(Document): - pass diff --git a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js b/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js index 0680a8c1..77448ff4 100644 --- a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js +++ b/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.js @@ -1,38 +1,8 @@ // Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt -frappe.ui.form.on("CRM Service Level Agreement", { - // refresh(frm) {}, +// frappe.ui.form.on("CRM Service Level Agreement", { +// refresh(frm) { - apply_sla_for_follow_up: function (frm) { - frm.trigger("toggle_follow_up_fields"); - }, - - toggle_follow_up_fields: function (frm) { - if (cint(frm.doc.apply_sla_for_follow_up) === 1) { - frm.fields_dict.priorities.grid.update_docfield_property( - "follow_up_time", - "hidden", - 0 - ); - frm.fields_dict.priorities.grid.update_docfield_property( - "follow_up_time", - "reqd", - 1 - ); - } else { - frm.fields_dict.priorities.grid.update_docfield_property( - "follow_up_time", - "hidden", - 1 - ); - frm.fields_dict.priorities.grid.update_docfield_property( - "follow_up_time", - "reqd", - 0 - ); - } - - frm.refresh_field("priorities"); - }, -}); +// }, +// }); diff --git a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json b/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json index e41043cb..e563ccea 100644 --- a/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json +++ b/crm/fcrm/doctype/crm_service_level_agreement/crm_service_level_agreement.json @@ -17,12 +17,7 @@ "column_break_pzjg", "condition", "section_break_ufaf", - "apply_sla_for_follow_up", "priorities", - "section_break_jlli", - "sla_fulfilled_on", - "column_break_faws", - "sla_paused_on", "section_break_rmgo", "holiday_list", "working_hours" @@ -92,28 +87,6 @@ "options": "CRM Service Day", "reqd": 1 }, - { - "depends_on": "apply_sla_for_follow_up", - "fieldname": "section_break_jlli", - "fieldtype": "Section Break", - "label": "Follow Up Conditions" - }, - { - "fieldname": "sla_fulfilled_on", - "fieldtype": "Table", - "label": "SLA Fulfilled On", - "options": "CRM SLA Fulfilled On Status" - }, - { - "fieldname": "column_break_faws", - "fieldtype": "Column Break" - }, - { - "fieldname": "sla_paused_on", - "fieldtype": "Table", - "label": "SLA Paused On", - "options": "CRM Pause SLA On Status" - }, { "fieldname": "section_break_nevd", "fieldtype": "Section Break", @@ -138,17 +111,11 @@ "fieldtype": "Link", "label": "Holiday List", "options": "CRM Holiday List" - }, - { - "default": "0", - "fieldname": "apply_sla_for_follow_up", - "fieldtype": "Check", - "label": "Apply SLA for Follow Up" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-12-14 11:28:41.751377", + "modified": "2023-12-15 11:50:29.956775", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Service Level Agreement", diff --git a/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.json b/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.json index 368bc29c..ede5c8c0 100644 --- a/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.json +++ b/crm/fcrm/doctype/crm_service_level_priority/crm_service_level_priority.json @@ -11,8 +11,7 @@ "priority", "section_break_anyl", "first_response_time", - "column_break_bwgs", - "follow_up_time" + "column_break_bwgs" ], "fields": [ { @@ -48,19 +47,12 @@ { "fieldname": "column_break_bwgs", "fieldtype": "Column Break" - }, - { - "fieldname": "follow_up_time", - "fieldtype": "Duration", - "hidden": 1, - "in_list_view": 1, - "label": "Follow Up Time" } ], "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2023-12-14 11:37:13.929628", + "modified": "2023-12-15 11:49:54.424029", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Service Level Priority", diff --git a/crm/fcrm/doctype/crm_sla_fulfilled_on_status/__init__.py b/crm/fcrm/doctype/crm_sla_fulfilled_on_status/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/crm/fcrm/doctype/crm_sla_fulfilled_on_status/crm_sla_fulfilled_on_status.json b/crm/fcrm/doctype/crm_sla_fulfilled_on_status/crm_sla_fulfilled_on_status.json deleted file mode 100644 index 1bd5b330..00000000 --- a/crm/fcrm/doctype/crm_sla_fulfilled_on_status/crm_sla_fulfilled_on_status.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "actions": [], - "allow_rename": 1, - "creation": "2023-12-14 10:55:23.175418", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "status" - ], - "fields": [ - { - "fieldname": "status", - "fieldtype": "Link", - "in_list_view": 1, - "label": "Status", - "options": "CRM Communication Status", - "reqd": 1 - } - ], - "index_web_pages_for_search": 1, - "istable": 1, - "links": [], - "modified": "2023-12-14 10:56:35.658964", - "modified_by": "Administrator", - "module": "FCRM", - "name": "CRM SLA Fulfilled On Status", - "owner": "Administrator", - "permissions": [], - "sort_field": "modified", - "sort_order": "DESC", - "states": [] -} \ No newline at end of file diff --git a/crm/fcrm/doctype/crm_sla_fulfilled_on_status/crm_sla_fulfilled_on_status.py b/crm/fcrm/doctype/crm_sla_fulfilled_on_status/crm_sla_fulfilled_on_status.py deleted file mode 100644 index 2245b206..00000000 --- a/crm/fcrm/doctype/crm_sla_fulfilled_on_status/crm_sla_fulfilled_on_status.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - - -class CRMSLAFulfilledOnStatus(Document): - pass