revert: removed all follow up related doctype and field in SLA

This commit is contained in:
Shariq Ansari 2023-12-15 11:52:28 +05:30
parent ee8f5d8188
commit 8c797d1532
9 changed files with 7 additions and 162 deletions

View File

@ -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": []
}

View File

@ -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

View File

@ -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");
},
});
// },
// });

View File

@ -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",

View File

@ -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",

View File

@ -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": []
}

View File

@ -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