From 754ca21400873429a7ca3b649a55f5f980e9d0fd Mon Sep 17 00:00:00 2001 From: Scott Korvek Date: Sat, 15 Nov 2025 14:25:24 +0000 Subject: [PATCH] Fixing member documemnt child table names --- .../associate_list/associate_list.json | 4 +- .../doctype/booked_member/booked_member.json | 6 +-- .../corporate_document.json | 30 ++++++------ .../food_protection_manager_record.json | 42 ++++++++-------- .../inspection_record/inspection_record.json | 48 ++++++++++--------- .../insurance_record/insurance_record.json | 7 ++- .../member_agreement/member_agreement.json | 24 +++++----- .../member_management/doctype/menu/menu.json | 6 +-- .../unifi_access_profile.json | 6 +-- 9 files changed, 92 insertions(+), 81 deletions(-) diff --git a/member_management/member_management/doctype/associate_list/associate_list.json b/member_management/member_management/doctype/associate_list/associate_list.json index 4703e65..c44d355 100644 --- a/member_management/member_management/doctype/associate_list/associate_list.json +++ b/member_management/member_management/doctype/associate_list/associate_list.json @@ -1,6 +1,7 @@ { "actions": [], "allow_rename": 1, + "autoname": "hash", "creation": "2025-11-09 09:57:45.397759", "doctype": "DocType", "editable_grid": 1, @@ -18,10 +19,11 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-11-09 09:57:45.397759", + "modified": "2025-11-15 09:21:19.009612", "modified_by": "Administrator", "module": "Member Management", "name": "Associate List", + "naming_rule": "Random", "owner": "Administrator", "permissions": [], "row_format": "Dynamic", diff --git a/member_management/member_management/doctype/booked_member/booked_member.json b/member_management/member_management/doctype/booked_member/booked_member.json index 44b5d2c..dd4cce9 100644 --- a/member_management/member_management/doctype/booked_member/booked_member.json +++ b/member_management/member_management/doctype/booked_member/booked_member.json @@ -1,6 +1,6 @@ { "actions": [], - "autoname": "field:booked_contact", + "autoname": "format:{booked_contact}-{lastname}-{##}", "creation": "2025-11-13 21:19:39.193998", "doctype": "DocType", "editable_grid": 1, @@ -112,11 +112,11 @@ "link_fieldname": "member_id" } ], - "modified": "2025-11-14 00:31:54.667540", + "modified": "2025-11-15 09:17:57.628694", "modified_by": "Administrator", "module": "Member Management", "name": "Booked Member", - "naming_rule": "By fieldname", + "naming_rule": "Expression", "owner": "Administrator", "permissions": [], "row_format": "Dynamic", diff --git a/member_management/member_management/doctype/corporate_document/corporate_document.json b/member_management/member_management/doctype/corporate_document/corporate_document.json index 4a9fd8d..ef5ac0c 100644 --- a/member_management/member_management/doctype/corporate_document/corporate_document.json +++ b/member_management/member_management/doctype/corporate_document/corporate_document.json @@ -1,27 +1,17 @@ { "actions": [], "allow_rename": 1, - "autoname": "format:{member_id}_{member_doctype}_{YYYY}_{MM}_{DD}_{#####}", + "autoname": "format:{document_type}_{YYYY}_{MM}_{DD}_{#####}", "creation": "2025-11-09 09:55:54.869737", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", "field_order": [ - "member_doctype", + "document_type", "file", - "current_doc" + "current" ], "fields": [ - { - "description": "See instructions. Not all applicants require all documents. ", - "fieldname": "member_doctype", - "fieldtype": "Select", - "in_list_view": 1, - "label": "Document Type", - "options": "Business Registration Certificate\nCertificate of Formation\nCertificate of Trade Name\nIRS EIN Letter\nSales Tax Authority", - "reqd": 1, - "search_index": 1 - }, { "fieldname": "file", "fieldtype": "Attach", @@ -29,9 +19,19 @@ "label": "File Name", "reqd": 1 }, + { + "description": "See instructions. Not all applicants require all documents. ", + "fieldname": "document_type", + "fieldtype": "Select", + "in_list_view": 1, + "label": "Document Type", + "options": "Business Registration Certificate\nCertificate of Formation\nCertificate of Trade Name\nIRS EIN Letter\nSales Tax Authority", + "reqd": 1, + "search_index": 1 + }, { "default": "1", - "fieldname": "current_doc", + "fieldname": "current", "fieldtype": "Check", "in_list_view": 1, "in_standard_filter": 1, @@ -42,7 +42,7 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-11-11 18:44:43.209834", + "modified": "2025-11-15 09:12:57.437352", "modified_by": "Administrator", "module": "Member Management", "name": "Corporate Document", diff --git a/member_management/member_management/doctype/food_protection_manager_record/food_protection_manager_record.json b/member_management/member_management/doctype/food_protection_manager_record/food_protection_manager_record.json index 5ac9705..716abe8 100644 --- a/member_management/member_management/doctype/food_protection_manager_record/food_protection_manager_record.json +++ b/member_management/member_management/doctype/food_protection_manager_record/food_protection_manager_record.json @@ -1,39 +1,25 @@ { "actions": [], "allow_rename": 1, + "autoname": "format:Certificate-{issuer}-{expire_date}", "creation": "2025-11-09 09:57:03.492727", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", "field_order": [ "section_break_srta", - "manager_issuer", - "certificate", + "issuer", + "file", "column_break_ysbr", "issue_date", "expire_date", - "current_doc" + "current" ], "fields": [ { "fieldname": "section_break_srta", "fieldtype": "Section Break" }, - { - "fieldname": "manager_issuer", - "fieldtype": "Select", - "in_list_view": 1, - "label": "Issuer", - "options": "360 Training\nAAA Food Manager\nAboveTraining/StateFoodSafety\nEnvironmental Health Testing\nMy Food Service License\nNational Restaurant Association\nServSafe Manager\nThe Always Food Safe Company\nTrust20\nWFSO Academy", - "reqd": 1 - }, - { - "fieldname": "certificate", - "fieldtype": "Attach", - "in_list_view": 1, - "label": "Certificate", - "reqd": 1 - }, { "fieldname": "column_break_ysbr", "fieldtype": "Column Break" @@ -51,9 +37,24 @@ "label": "Expiration Date", "reqd": 1 }, + { + "fieldname": "issuer", + "fieldtype": "Select", + "in_list_view": 1, + "label": "Issuer", + "options": "360 Training\nAAA Food Manager\nAboveTraining/StateFoodSafety\nEnvironmental Health Testing\nMy Food Service License\nNational Restaurant Association\nServSafe Manager\nThe Always Food Safe Company\nTrust20\nWFSO Academy", + "reqd": 1 + }, + { + "fieldname": "file", + "fieldtype": "Attach", + "in_list_view": 1, + "label": "Certificate", + "reqd": 1 + }, { "default": "1", - "fieldname": "current_doc", + "fieldname": "current", "fieldtype": "Check", "in_list_view": 1, "in_standard_filter": 1, @@ -64,10 +65,11 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-11-11 18:43:47.947615", + "modified": "2025-11-15 09:11:40.644521", "modified_by": "Administrator", "module": "Member Management", "name": "Food Protection Manager Record", + "naming_rule": "Expression", "owner": "Administrator", "permissions": [], "row_format": "Dynamic", diff --git a/member_management/member_management/doctype/inspection_record/inspection_record.json b/member_management/member_management/doctype/inspection_record/inspection_record.json index a9d47cd..e2a65f9 100644 --- a/member_management/member_management/doctype/inspection_record/inspection_record.json +++ b/member_management/member_management/doctype/inspection_record/inspection_record.json @@ -1,17 +1,18 @@ { "actions": [], "allow_rename": 1, + "autoname": "format:{document_type}-{jurisdiction}-{expire_date}", "creation": "2025-11-09 09:56:19.768362", "doctype": "DocType", "engine": "InnoDB", "field_order": [ "jurisdiction", - "inspection_type", - "inspection_file", + "document_type", + "file", "column_break_urym", "issue_date", "expire_date", - "current_doc" + "current" ], "fields": [ { @@ -23,24 +24,6 @@ "label": "Jurisdiction", "reqd": 1 }, - { - "description": "See Instructions. Not all applicants will need to supply all docuuments.", - "fieldname": "inspection_type", - "fieldtype": "Select", - "in_list_view": 1, - "in_preview": 1, - "label": "Document Type", - "options": "Mobile Application\nMobile Certificate\nMobile Inspection Report\nFacility Application\nFacility Certificate\nFacility Inspection Report", - "reqd": 1 - }, - { - "fieldname": "inspection_file", - "fieldtype": "Attach", - "in_list_view": 1, - "in_preview": 1, - "label": "File", - "reqd": 1 - }, { "fieldname": "column_break_urym", "fieldtype": "Column Break" @@ -58,9 +41,27 @@ "label": "Expiration Date", "reqd": 1 }, + { + "description": "See Instructions. Not all applicants will need to supply all docuuments.", + "fieldname": "document_type", + "fieldtype": "Select", + "in_list_view": 1, + "in_preview": 1, + "label": "Document Type", + "options": "Mobile Application\nMobile Certificate\nMobile Inspection Report\nFacility Application\nFacility Certificate\nFacility Inspection Report", + "reqd": 1 + }, + { + "fieldname": "file", + "fieldtype": "Attach", + "in_list_view": 1, + "in_preview": 1, + "label": "File", + "reqd": 1 + }, { "default": "1", - "fieldname": "current_doc", + "fieldname": "current", "fieldtype": "Check", "in_list_view": 1, "in_standard_filter": 1, @@ -71,10 +72,11 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-11-11 18:50:05.431078", + "modified": "2025-11-15 09:14:33.630045", "modified_by": "Administrator", "module": "Member Management", "name": "Inspection Record", + "naming_rule": "Expression", "owner": "Administrator", "permissions": [], "row_format": "Dynamic", diff --git a/member_management/member_management/doctype/insurance_record/insurance_record.json b/member_management/member_management/doctype/insurance_record/insurance_record.json index 35403ae..109d53e 100644 --- a/member_management/member_management/doctype/insurance_record/insurance_record.json +++ b/member_management/member_management/doctype/insurance_record/insurance_record.json @@ -1,6 +1,7 @@ { "actions": [], "allow_rename": 1, + "autoname": "format:{insurer}-{expire_date}-{#####}", "creation": "2025-11-09 09:57:22.638768", "doctype": "DocType", "engine": "InnoDB", @@ -17,7 +18,8 @@ "fieldname": "insurer", "fieldtype": "Data", "in_list_view": 1, - "label": "Insurer" + "label": "Insurer", + "reqd": 1 }, { "fieldname": "declaration", @@ -55,10 +57,11 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-11-11 18:42:50.461454", + "modified": "2025-11-15 09:20:50.081305", "modified_by": "Administrator", "module": "Member Management", "name": "Insurance Record", + "naming_rule": "Expression", "owner": "Administrator", "permissions": [], "row_format": "Dynamic", diff --git a/member_management/member_management/doctype/member_agreement/member_agreement.json b/member_management/member_management/doctype/member_agreement/member_agreement.json index e5e32f0..728c118 100644 --- a/member_management/member_management/doctype/member_agreement/member_agreement.json +++ b/member_management/member_management/doctype/member_agreement/member_agreement.json @@ -1,27 +1,19 @@ { "actions": [], "allow_rename": 1, + "autoname": "format:{document_type}-{date_effective}-{#####}", "creation": "2025-11-09 09:59:42.069937", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", "field_order": [ - "contract_type", + "document_type", "file", "column_break_bkzm", "date_effective", "date_end" ], "fields": [ - { - "fieldname": "contract_type", - "fieldtype": "Select", - "in_list_view": 1, - "in_preview": 1, - "label": "Contract Type", - "options": "Facilities Use Agreement\nStorage Addendum\nMobile Base Station Addendum\nEquipment Rental\nEvent Room Rental", - "reqd": 1 - }, { "fieldname": "file", "fieldtype": "Attach", @@ -45,16 +37,26 @@ "fieldtype": "Date", "in_list_view": 1, "label": "Date End" + }, + { + "fieldname": "document_type", + "fieldtype": "Select", + "in_list_view": 1, + "in_preview": 1, + "label": "Contract Type", + "options": "Facilities Use Agreement\nStorage Addendum\nMobile Base Station Addendum\nEquipment Rental\nEvent Room Rental", + "reqd": 1 } ], "grid_page_length": 50, "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-11-09 11:48:36.156523", + "modified": "2025-11-15 09:22:42.907098", "modified_by": "Administrator", "module": "Member Management", "name": "Member Agreement", + "naming_rule": "Expression", "owner": "Administrator", "permissions": [], "row_format": "Dynamic", diff --git a/member_management/member_management/doctype/menu/menu.json b/member_management/member_management/doctype/menu/menu.json index 0079b42..72f7481 100644 --- a/member_management/member_management/doctype/menu/menu.json +++ b/member_management/member_management/doctype/menu/menu.json @@ -1,7 +1,7 @@ { "actions": [], "allow_rename": 1, - "autoname": "field:title", + "autoname": "format:Menu-{title}-{#####}", "creation": "2025-11-14 16:28:31.135453", "doctype": "DocType", "editable_grid": 1, @@ -39,11 +39,11 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-11-14 16:32:51.511787", + "modified": "2025-11-15 09:15:36.468521", "modified_by": "Administrator", "module": "Member Management", "name": "Menu", - "naming_rule": "By fieldname", + "naming_rule": "Expression", "owner": "Administrator", "permissions": [], "row_format": "Dynamic", diff --git a/member_management/member_management/doctype/unifi_access_profile/unifi_access_profile.json b/member_management/member_management/doctype/unifi_access_profile/unifi_access_profile.json index 5cf6a6f..124883a 100644 --- a/member_management/member_management/doctype/unifi_access_profile/unifi_access_profile.json +++ b/member_management/member_management/doctype/unifi_access_profile/unifi_access_profile.json @@ -1,6 +1,6 @@ { "actions": [], - "autoname": "field:contact_name", + "autoname": "format:{last_name}-{unifi_id}", "creation": "2025-11-13 23:43:02.590767", "doctype": "DocType", "editable_grid": 1, @@ -101,11 +101,11 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-11-14 00:28:38.504479", + "modified": "2025-11-15 09:19:18.809893", "modified_by": "Administrator", "module": "Member Management", "name": "UniFi Access Profile", - "naming_rule": "By fieldname", + "naming_rule": "Expression", "owner": "Administrator", "permissions": [], "row_format": "Dynamic",