fix: added holiday list & holiday doctype for SLA
This commit is contained in:
parent
c9ff153412
commit
0e443f926a
0
crm/fcrm/doctype/crm_holiday/__init__.py
Normal file
0
crm/fcrm/doctype/crm_holiday/__init__.py
Normal file
57
crm/fcrm/doctype/crm_holiday/crm_holiday.json
Normal file
57
crm/fcrm/doctype/crm_holiday/crm_holiday.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"actions": [],
|
||||
"allow_rename": 1,
|
||||
"creation": "2023-12-14 11:16:15.476366",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"date",
|
||||
"column_break_xzyo",
|
||||
"weekly_off",
|
||||
"section_break_zenz",
|
||||
"description"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "date",
|
||||
"fieldtype": "Date",
|
||||
"in_list_view": 1,
|
||||
"label": "Date",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_xzyo",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"fieldname": "weekly_off",
|
||||
"fieldtype": "Check",
|
||||
"label": "Weekly Off"
|
||||
},
|
||||
{
|
||||
"fieldname": "section_break_zenz",
|
||||
"fieldtype": "Section Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "description",
|
||||
"fieldtype": "Text Editor",
|
||||
"in_list_view": 1,
|
||||
"label": "Description",
|
||||
"reqd": 1
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"istable": 1,
|
||||
"links": [],
|
||||
"modified": "2023-12-14 11:17:41.745419",
|
||||
"modified_by": "Administrator",
|
||||
"module": "FCRM",
|
||||
"name": "CRM Holiday",
|
||||
"owner": "Administrator",
|
||||
"permissions": [],
|
||||
"sort_field": "modified",
|
||||
"sort_order": "DESC",
|
||||
"states": []
|
||||
}
|
||||
9
crm/fcrm/doctype/crm_holiday/crm_holiday.py
Normal file
9
crm/fcrm/doctype/crm_holiday/crm_holiday.py
Normal file
@ -0,0 +1,9 @@
|
||||
# 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 CRMHoliday(Document):
|
||||
pass
|
||||
0
crm/fcrm/doctype/crm_holiday_list/__init__.py
Normal file
0
crm/fcrm/doctype/crm_holiday_list/__init__.py
Normal file
8
crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.js
Normal file
8
crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.js
Normal file
@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
// frappe.ui.form.on("CRM Holiday List", {
|
||||
// refresh(frm) {
|
||||
|
||||
// },
|
||||
// });
|
||||
111
crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.json
Normal file
111
crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.json
Normal file
@ -0,0 +1,111 @@
|
||||
{
|
||||
"actions": [],
|
||||
"allow_rename": 1,
|
||||
"autoname": "field:holiday_list_name",
|
||||
"creation": "2023-12-14 11:09:12.876640",
|
||||
"doctype": "DocType",
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"holiday_list_name",
|
||||
"from_date",
|
||||
"to_date",
|
||||
"column_break_qwqc",
|
||||
"total_holidays",
|
||||
"add_weekly_holidays_section",
|
||||
"weekly_off",
|
||||
"add_to_holidays",
|
||||
"holidays_section",
|
||||
"holidays",
|
||||
"clear_table"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "holiday_list_name",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Holiday List Name",
|
||||
"reqd": 1,
|
||||
"unique": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "from_date",
|
||||
"fieldtype": "Date",
|
||||
"in_list_view": 1,
|
||||
"label": "From Date",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "to_date",
|
||||
"fieldtype": "Date",
|
||||
"in_list_view": 1,
|
||||
"label": "To Date",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_qwqc",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"fieldname": "total_holidays",
|
||||
"fieldtype": "Int",
|
||||
"label": "Total Holidays"
|
||||
},
|
||||
{
|
||||
"fieldname": "add_weekly_holidays_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Add Weekly Holidays"
|
||||
},
|
||||
{
|
||||
"fieldname": "weekly_off",
|
||||
"fieldtype": "Select",
|
||||
"label": "Weekly Off",
|
||||
"options": "\nMonday\nTuesday\nWednesday\nThursday\nFriday\nSaturday\nSunday"
|
||||
},
|
||||
{
|
||||
"fieldname": "add_to_holidays",
|
||||
"fieldtype": "Button",
|
||||
"label": "Add to Holidays"
|
||||
},
|
||||
{
|
||||
"fieldname": "holidays_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Holidays"
|
||||
},
|
||||
{
|
||||
"fieldname": "clear_table",
|
||||
"fieldtype": "Button",
|
||||
"label": "Clear Table"
|
||||
},
|
||||
{
|
||||
"fieldname": "holidays",
|
||||
"fieldtype": "Table",
|
||||
"label": "Holidays",
|
||||
"options": "CRM Holiday"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2023-12-14 11:18:27.236817",
|
||||
"modified_by": "Administrator",
|
||||
"module": "FCRM",
|
||||
"name": "CRM Holiday List",
|
||||
"naming_rule": "By fieldname",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
{
|
||||
"create": 1,
|
||||
"delete": 1,
|
||||
"email": 1,
|
||||
"export": 1,
|
||||
"print": 1,
|
||||
"read": 1,
|
||||
"report": 1,
|
||||
"role": "System Manager",
|
||||
"share": 1,
|
||||
"write": 1
|
||||
}
|
||||
],
|
||||
"sort_field": "modified",
|
||||
"sort_order": "DESC",
|
||||
"states": []
|
||||
}
|
||||
9
crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.py
Normal file
9
crm/fcrm/doctype/crm_holiday_list/crm_holiday_list.py
Normal file
@ -0,0 +1,9 @@
|
||||
# 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 CRMHolidayList(Document):
|
||||
pass
|
||||
@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# See license.txt
|
||||
|
||||
# import frappe
|
||||
from frappe.tests.utils import FrappeTestCase
|
||||
|
||||
|
||||
class TestCRMHolidayList(FrappeTestCase):
|
||||
pass
|
||||
Loading…
x
Reference in New Issue
Block a user