diff --git a/church/church_communications/__init__.py b/church/church_communications/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/church/church_communications/doctype/__init__.py b/church/church_communications/doctype/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/church/church_communications/doctype/church_letter/__init__.py b/church/church_communications/doctype/church_letter/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/church/church_communications/doctype/church_letter/church_letter.json b/church/church_communications/doctype/church_letter/church_letter.json new file mode 100644 index 0000000..638abda --- /dev/null +++ b/church/church_communications/doctype/church_letter/church_letter.json @@ -0,0 +1,108 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "format:{date} - {#####}", + "creation": "2025-09-23 21:49:59.122163", + "description": "A letter sent to the church.", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "date", + "is_private", + "column_break_zdbp", + "share_with_church", + "shared_date", + "section_break_qmpt", + "file", + "content" + ], + "fields": [ + { + "allow_in_quick_entry": 1, + "fieldname": "date", + "fieldtype": "Date", + "in_filter": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Date Received", + "reqd": 1 + }, + { + "default": "0", + "description": "Check this to prevent the letter from being displayed publicly (i.e. on the website).", + "fieldname": "is_private", + "fieldtype": "Check", + "in_filter": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Is Private?" + }, + { + "fieldname": "column_break_zdbp", + "fieldtype": "Column Break" + }, + { + "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", + "in_filter": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Shared Date" + }, + { + "fieldname": "section_break_qmpt", + "fieldtype": "Section Break" + }, + { + "allow_in_quick_entry": 1, + "fieldname": "file", + "fieldtype": "Attach", + "in_filter": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "File" + }, + { + "allow_in_quick_entry": 1, + "description": "Content of letter (if not sent as a file)", + "fieldname": "content", + "fieldtype": "Text Editor", + "in_list_view": 1, + "in_preview": 1, + "label": "Content" + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2025-10-03 23:08:55.266412", + "modified_by": "Administrator", + "module": "Church Communications", + "name": "Church Letter", + "naming_rule": "Expression", + "owner": "Administrator", + "permissions": [], + "row_format": "Dynamic", + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/church/church_communications/doctype/church_letter/church_letter.py b/church/church_communications/doctype/church_letter/church_letter.py new file mode 100644 index 0000000..ac74167 --- /dev/null +++ b/church/church_communications/doctype/church_letter/church_letter.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, meichthys and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class ChurchLetter(Document): + pass diff --git a/church/modules.txt b/church/modules.txt index c44b075..36cbbc4 100644 --- a/church/modules.txt +++ b/church/modules.txt @@ -5,4 +5,5 @@ Church Missions Church Prayers Church Foundations Church Study -Church Customizations \ No newline at end of file +Church Customizations +Church Communications \ No newline at end of file