From 954cbd253f32d91972963a37eabc51750354beff Mon Sep 17 00:00:00 2001 From: meichthys Date: Tue, 28 Oct 2025 02:31:05 +0000 Subject: [PATCH] Add person letters not yet read to church report --- .../__init__.py | 0 .../church_people_letters_not_yet_read.json | 77 +++++++++++++++++++ .../workspace/people/people.json | 14 +++- 3 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 church/church_people/report/church_people_letters_not_yet_read/__init__.py create mode 100644 church/church_people/report/church_people_letters_not_yet_read/church_people_letters_not_yet_read.json diff --git a/church/church_people/report/church_people_letters_not_yet_read/__init__.py b/church/church_people/report/church_people_letters_not_yet_read/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/church/church_people/report/church_people_letters_not_yet_read/church_people_letters_not_yet_read.json b/church/church_people/report/church_people_letters_not_yet_read/church_people_letters_not_yet_read.json new file mode 100644 index 0000000..64343cd --- /dev/null +++ b/church/church_people/report/church_people_letters_not_yet_read/church_people_letters_not_yet_read.json @@ -0,0 +1,77 @@ +{ + "add_total_row": 0, + "add_translate_data": 0, + "columns": [ + { + "fieldname": "parent", + "fieldtype": "Link", + "label": "From", + "options": "Church Missionary", + "width": 0 + }, + { + "fieldname": "date", + "fieldtype": "Date", + "label": "Date", + "width": 0 + }, + { + "fieldname": "share_with_church", + "fieldtype": "Check", + "label": "Share w/ Church?", + "width": 0 + }, + { + "fieldname": "shared_date", + "fieldtype": "Date", + "label": "Shared Date", + "width": 0 + }, + { + "fieldname": "is_private", + "fieldtype": "Check", + "label": "Is Private?", + "width": 0 + }, + { + "fieldname": "file", + "fieldtype": "Link", + "label": "File", + "options": "File", + "width": 0 + }, + { + "fieldname": "content", + "fieldtype": "Data", + "label": "Content", + "width": 0 + } + ], + "creation": "2025-10-27 22:23:05.985946", + "disabled": 0, + "docstatus": 0, + "doctype": "Report", + "filters": [], + "idx": 0, + "is_standard": "Yes", + "letterhead": null, + "modified": "2025-10-27 22:23:05.985946", + "modified_by": "Administrator", + "module": "Church People", + "name": "Church People Letters Not Yet Read", + "owner": "Administrator", + "prepared_report": 0, + "query": "SELECT parent, date, share_with_church, shared_date, is_private, file, content \nFROM `tabChurch Letter` \nWHERE `tabChurch Letter`.parenttype=\"Church Person\" AND share_with_church=1 AND shared_date IS NULL\nORDER BY parent", + "ref_doctype": "Church Missionary", + "report_name": "Church People Letters Not Yet Read", + "report_type": "Query Report", + "roles": [ + { + "role": "Church Manager" + }, + { + "role": "Church User" + } + ], + "timeout": 0 +} \ No newline at end of file diff --git a/church/church_people/workspace/people/people.json b/church/church_people/workspace/people/people.json index 96d4ae4..0dfb2fb 100644 --- a/church/church_people/workspace/people/people.json +++ b/church/church_people/workspace/people/people.json @@ -87,7 +87,7 @@ "hidden": 0, "is_query_report": 0, "label": "Person Reports", - "link_count": 4, + "link_count": 5, "link_type": "DocType", "onboard": 0, "type": "Card Break" @@ -134,9 +134,19 @@ "link_type": "Report", "onboard": 0, "type": "Link" + }, + { + "hidden": 0, + "is_query_report": 1, + "label": "Person Letters Not Yet Read", + "link_count": 0, + "link_to": "Church People Letters Not Yet Read", + "link_type": "Report", + "onboard": 0, + "type": "Link" } ], - "modified": "2025-10-27 22:19:57.003936", + "modified": "2025-10-27 22:23:54.118093", "modified_by": "Administrator", "module": "Church People", "name": "People",