Fix Church Missionary Letters Report Broken

Fixes #55
This commit is contained in:
meichthys 2025-10-27 03:44:14 +00:00
parent 1ad26a6e68
commit b3c5bb3f0f
4 changed files with 100 additions and 23 deletions

View File

@ -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",

View File

@ -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
}

View File

@ -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",