Add missionary agency and support frequency

This commit is contained in:
meichthys 2025-10-03 02:43:58 +00:00
parent 51dc9935c0
commit 8996833530
11 changed files with 239 additions and 3 deletions

View File

@ -12,6 +12,8 @@
"photo",
"data_btqw",
"website",
"support_amount",
"support_frequency",
"column_break_vedu",
"country",
"mailing_address",
@ -24,12 +26,13 @@
"fields": [
{
"fieldname": "agency",
"fieldtype": "Data",
"fieldtype": "Link",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Agency"
"label": "Agency",
"options": "Church Missionary Agency"
},
{
"fieldname": "country",
@ -106,13 +109,26 @@
"fieldtype": "Table",
"label": "Letters to the Church",
"options": "Church Letter"
},
{
"fieldname": "support_amount",
"fieldtype": "Currency",
"label": "Support Amount",
"non_negative": 1
},
{
"fieldname": "support_frequency",
"fieldtype": "Link",
"label": "Support Frequency",
"mandatory_depends_on": "eval: doc.support_amount>0;",
"options": "Church Missionary Support Frequency"
}
],
"grid_page_length": 50,
"image_field": "photo",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-09-23 22:20:41.577985",
"modified": "2025-10-02 22:27:52.752228",
"modified_by": "Administrator",
"module": "Church Missions",
"name": "Church Missionary",

View File

@ -0,0 +1,8 @@
// Copyright (c) 2025, meichthys and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Church Missionary Agency", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,106 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "format:{agency_name}",
"creation": "2025-10-02 22:14:45.520951",
"description": "Missionary support entities that aid in the sending of missionaries",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"name1",
"image_hhbv",
"notes",
"column_break_qofu",
"phone",
"email",
"mailing_address",
"website"
],
"fields": [
{
"allow_in_quick_entry": 1,
"fieldname": "name1",
"fieldtype": "Data",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Agency Name",
"reqd": 1
},
{
"allow_in_quick_entry": 1,
"fieldname": "mailing_address",
"fieldtype": "Link",
"label": "Mailing Address",
"options": "Address"
},
{
"allow_in_quick_entry": 1,
"fieldname": "phone",
"fieldtype": "Phone",
"in_list_view": 1,
"label": "Phone"
},
{
"allow_in_quick_entry": 1,
"fieldname": "email",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Email",
"options": "Email"
},
{
"fieldname": "column_break_qofu",
"fieldtype": "Column Break"
},
{
"allow_in_quick_entry": 1,
"fieldname": "website",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Website",
"options": "URL"
},
{
"allow_in_quick_entry": 1,
"fieldname": "notes",
"fieldtype": "Small Text",
"label": "Notes"
},
{
"allow_in_quick_entry": 1,
"fieldname": "image_hhbv",
"fieldtype": "Attach Image",
"label": "Logo"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-10-02 22:28:28.306082",
"modified_by": "Administrator",
"module": "Church Missions",
"name": "Church Missionary Agency",
"naming_rule": "Expression",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"quick_entry": 1,
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -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 ChurchMissionaryAgency(Document):
pass

View File

@ -0,0 +1,9 @@
# Copyright (c) 2025, meichthys and Contributors
# See license.txt
# import frappe
from frappe.tests.utils import FrappeTestCase
class TestChurchMissionaryAgency(FrappeTestCase):
pass

View File

@ -0,0 +1,8 @@
// Copyright (c) 2025, meichthys and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Church Missionary Support Frequency", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,62 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "format:{frequency}",
"creation": "2025-10-02 21:51:33.814292",
"description": "How often `Church Missionary` support is given",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"frequency",
"description"
],
"fields": [
{
"allow_in_quick_entry": 1,
"fieldname": "frequency",
"fieldtype": "Data",
"in_filter": 1,
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Frequency",
"reqd": 1,
"unique": 1
},
{
"allow_in_quick_entry": 1,
"fieldname": "description",
"fieldtype": "Data",
"in_list_view": 1,
"in_preview": 1,
"label": "Description"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-10-02 21:53:49.348848",
"modified_by": "Administrator",
"module": "Church Missions",
"name": "Church Missionary Support Frequency",
"naming_rule": "Expression",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -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 ChurchMissionarySupportFrequency(Document):
pass

View File

@ -0,0 +1,9 @@
# Copyright (c) 2025, meichthys and Contributors
# See license.txt
# import frappe
from frappe.tests.utils import FrappeTestCase
class TestChurchMissionarySupportFrequency(FrappeTestCase):
pass