From fed06b5182512b53c9decf6aaf7c29bc367ec1c5 Mon Sep 17 00:00:00 2001 From: Ebuka Date: Tue, 12 Nov 2024 09:45:05 +0100 Subject: [PATCH] Added missing poc attendance --- .../missing_poc_attendance/__init__.py | 0 .../missing_poc_attendance.json | 84 +++++++++++++++++++ .../missing_poc_attendance.py | 9 ++ .../doctype/poc_check/poc_check.json | 15 +++- 4 files changed, 104 insertions(+), 4 deletions(-) create mode 100644 one_fm/operations/doctype/missing_poc_attendance/__init__.py create mode 100644 one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.json create mode 100644 one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.py diff --git a/one_fm/operations/doctype/missing_poc_attendance/__init__.py b/one_fm/operations/doctype/missing_poc_attendance/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.json b/one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.json new file mode 100644 index 000000000..69b13cbc5 --- /dev/null +++ b/one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.json @@ -0,0 +1,84 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2024-11-07 14:11:11.882469", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "poc_name", + "poc_designation", + "column_break_cjps", + "action", + "destination", + "section_break_dgoh", + "new_poc_name", + "new_poc_designation" + ], + "fields": [ + { + "fieldname": "poc_name", + "fieldtype": "Data", + "in_list_view": 1, + "label": "POC Name" + }, + { + "fieldname": "poc_designation", + "fieldtype": "Data", + "label": "POC Designation" + }, + { + "fieldname": "column_break_cjps", + "fieldtype": "Column Break" + }, + { + "fieldname": "action", + "fieldtype": "Select", + "in_list_view": 1, + "label": "Action", + "options": "\nUpdate POC\nDo Nothing" + }, + { + "depends_on": "eval:doc.action=='Update POC'", + "fieldname": "destination", + "fieldtype": "Select", + "in_list_view": 1, + "label": "Destination Doctype", + "mandatory_depends_on": "eval:doc.action=='Update POC'", + "options": "\nOperations Site\nProject\nBoth" + }, + { + "fieldname": "section_break_dgoh", + "fieldtype": "Section Break" + }, + { + "depends_on": "eval:doc.action=='Update POC';", + "fieldname": "new_poc_name", + "fieldtype": "Link", + "in_list_view": 1, + "label": "New POC Contact", + "mandatory_depends_on": "eval:doc.action=='Update POC'", + "options": "Contact" + }, + { + "fetch_from": "new_poc_name.designation", + "fieldname": "new_poc_designation", + "fieldtype": "Data", + "in_list_view": 1, + "label": "New POC Designation", + "read_only": 1 + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2024-11-12 11:37:42.805329", + "modified_by": "Administrator", + "module": "Operations", + "name": "Missing POC Attendance", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.py b/one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.py new file mode 100644 index 000000000..ca946d20b --- /dev/null +++ b/one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.py @@ -0,0 +1,9 @@ +# Copyright (c) 2024, omar jaber and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class MissingPOCAttendance(Document): + pass diff --git a/one_fm/operations/doctype/poc_check/poc_check.json b/one_fm/operations/doctype/poc_check/poc_check.json index 9b6e1cfbd..10b0b962b 100644 --- a/one_fm/operations/doctype/poc_check/poc_check.json +++ b/one_fm/operations/doctype/poc_check/poc_check.json @@ -1,7 +1,7 @@ { "actions": [], "allow_rename": 1, - "autoname": "format:POC-CHK-{####}", + "autoname": "naming_series:", "creation": "2024-11-07 13:55:11.792442", "doctype": "DocType", "engine": "InnoDB", @@ -15,7 +15,8 @@ "amended_from", "mom", "section_break_mmpv", - "mom_poc_table" + "mom_poc_table", + "naming_series" ], "fields": [ { @@ -79,16 +80,22 @@ "fieldtype": "Table", "label": "MOM POC Table", "options": "Missing POC Attendance" + }, + { + "fieldname": "naming_series", + "fieldtype": "Select", + "label": "Series", + "options": "POC-CHK-.#####" } ], "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2024-11-09 13:13:43.779687", + "modified": "2024-11-12 11:41:40.180994", "modified_by": "Administrator", "module": "Operations", "name": "POC Check", - "naming_rule": "Expression", + "naming_rule": "By \"Naming Series\" field", "owner": "Administrator", "permissions": [ {