From c69d1b6df1168a227fcef44fbd0b3ac3073abf86 Mon Sep 17 00:00:00 2001 From: meichthys Date: Tue, 30 Sep 2025 04:26:34 +0000 Subject: [PATCH] add share_to_church and share_date fields to indicate if a letter had been shared --- .../doctype/church_letter/church_letter.json | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/church/church_people/doctype/church_letter/church_letter.json b/church/church_people/doctype/church_letter/church_letter.json index 4c1dd9e..c3b688c 100644 --- a/church/church_people/doctype/church_letter/church_letter.json +++ b/church/church_people/doctype/church_letter/church_letter.json @@ -9,9 +9,10 @@ "engine": "InnoDB", "field_order": [ "date", - "column_break_zdbp", "is_private", - "read_to_church", + "column_break_zdbp", + "share_with_church", + "shared_date", "section_break_qmpt", "file", "content" @@ -29,7 +30,7 @@ "in_list_view": 1, "in_preview": 1, "in_standard_filter": 1, - "label": "Date", + "label": "Date Received", "reqd": 1 }, { @@ -55,17 +56,6 @@ "in_preview": 1, "label": "Content" }, - { - "allow_in_quick_entry": 1, - "default": "0", - "fieldname": "read_to_church", - "fieldtype": "Check", - "in_filter": 1, - "in_list_view": 1, - "in_preview": 1, - "in_standard_filter": 1, - "label": "Read to Church?" - }, { "default": "0", "description": "Check this to prevent the letter from being displayed publicly (i.e. on the website).", @@ -76,13 +66,31 @@ "in_preview": 1, "in_standard_filter": 1, "label": "Is Private?" + }, + { + "allow_in_quick_entry": 1, + "default": "0", + "description": "If this letter should be shared with the church.", + "fieldname": "share_with_church", + "fieldtype": "Check", + "in_filter": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Share With Church?" + }, + { + "description": "The date the letter was shared to the church.", + "fieldname": "shared_date", + "fieldtype": "Date", + "label": "Shared Date" } ], "grid_page_length": 50, "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-09-23 22:41:59.658717", + "modified": "2025-09-29 23:55:37.070600", "modified_by": "Administrator", "module": "Church People", "name": "Church Letter",