diff --git a/church/church_missions/report/church_missionary_letters/church_missionary_letters.json b/church/church_missions/report/church_missionary_letters/church_missionary_letters.json index 6657b2d..14fbdd8 100644 --- a/church/church_missions/report/church_missionary_letters/church_missionary_letters.json +++ b/church/church_missions/report/church_missionary_letters/church_missionary_letters.json @@ -21,6 +21,12 @@ "label": "Share w/ Church?", "width": 0 }, + { + "fieldname": "shared_date", + "fieldtype": "Date", + "label": "Shared Date", + "width": 0 + }, { "fieldname": "is_private", "fieldtype": "Check", @@ -39,39 +45,23 @@ "fieldtype": "Data", "label": "Content", "width": 0 - }, - { - "fieldname": "shared_date", - "fieldtype": "Date", - "label": "Shared Date", - "width": 0 } ], "creation": "2025-09-24 00:00:27.738959", "disabled": 0, "docstatus": 0, "doctype": "Report", - "filters": [ - { - "default": "", - "fieldname": "missionary", - "fieldtype": "Link", - "label": "Church Missionary", - "mandatory": 1, - "options": "Church Missionary", - "wildcard_filter": 1 - } - ], - "idx": 0, + "filters": [], + "idx": 4, "is_standard": "Yes", "letterhead": null, - "modified": "2025-10-21 00:56:06.643688", + "modified": "2025-10-26 23:42:01.137843", "modified_by": "Administrator", "module": "Church Missions", "name": "Church Missionary Letters", "owner": "Administrator", "prepared_report": 0, - "query": "SELECT parent, date, share_with_church, shared_date, is_private, file, content \nFROM `tabChurch Letter` \nWHERE parent = %(missionary)s \nORDER BY parent", + "query": "SELECT parent, date, share_with_church, shared_date, is_private, file, content \nFROM `tabChurch Letter` \nORDER BY parent", "ref_doctype": "Church Missionary", "report_name": "Church Missionary Letters", "report_type": "Query Report", diff --git a/church/church_missions/report/church_missionary_letters_not_yet_read/__init__.py b/church/church_missions/report/church_missionary_letters_not_yet_read/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/church/church_missions/report/church_missionary_letters_not_yet_read/church_missionary_letters_not_yet_read.json b/church/church_missions/report/church_missionary_letters_not_yet_read/church_missionary_letters_not_yet_read.json new file mode 100644 index 0000000..7695daa --- /dev/null +++ b/church/church_missions/report/church_missionary_letters_not_yet_read/church_missionary_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-26 23:40:26.246147", + "disabled": 0, + "docstatus": 0, + "doctype": "Report", + "filters": [], + "idx": 0, + "is_standard": "Yes", + "letterhead": null, + "modified": "2025-10-26 23:40:26.246147", + "modified_by": "Administrator", + "module": "Church Missions", + "name": "Church Missionary 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 share_with_church=1 AND shared_date IS NULL\nORDER BY parent", + "ref_doctype": "Church Missionary", + "report_name": "Church Missionary 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_missions/workspace/missions/missions.json b/church/church_missions/workspace/missions/missions.json index 7a1a95a..cb6a1ca 100644 --- a/church/church_missions/workspace/missions/missions.json +++ b/church/church_missions/workspace/missions/missions.json @@ -36,7 +36,7 @@ "hidden": 0, "is_query_report": 0, "label": "Missionary Reports", - "link_count": 1, + "link_count": 2, "link_type": "DocType", "onboard": 0, "type": "Card Break" @@ -44,15 +44,25 @@ { "hidden": 0, "is_query_report": 1, - "label": "Letters", + "label": "Missionary Letters", "link_count": 0, "link_to": "Church Missionary Letters", "link_type": "Report", "onboard": 0, "type": "Link" + }, + { + "hidden": 0, + "is_query_report": 1, + "label": "Missionary Letters Not Yet Read", + "link_count": 0, + "link_to": "Church Missionary Letters Not Yet Read", + "link_type": "Report", + "onboard": 0, + "type": "Link" } ], - "modified": "2025-10-22 23:37:07.875258", + "modified": "2025-10-26 23:42:49.866928", "modified_by": "Administrator", "module": "Church Missions", "name": "Missions",