From 8e7de9146d6134eb2f313c77ab3484e5063a7003 Mon Sep 17 00:00:00 2001 From: OsCoder Date: Sat, 21 Mar 2026 21:57:38 +0000 Subject: Updated person stuff --- .../doctype/sh_family_member/sh_family_member.json | 6 +-- .../doctype/sh_person/sh_person.json | 15 +++++- .../sh_person_counterpart.json | 4 +- .../doctype/sh_person_law/__init__.py | 0 .../doctype/sh_person_law/sh_person_law.json | 60 ++++++++++++++++++++++ .../doctype/sh_person_law/sh_person_law.py | 9 ++++ supportive_help/translations/de.csv | 29 +++++++++-- supportive_help/translations/en.csv | 3 +- 8 files changed, 116 insertions(+), 10 deletions(-) create mode 100644 supportive_help/supportive_help/doctype/sh_person_law/__init__.py create mode 100644 supportive_help/supportive_help/doctype/sh_person_law/sh_person_law.json create mode 100644 supportive_help/supportive_help/doctype/sh_person_law/sh_person_law.py (limited to 'supportive_help') diff --git a/supportive_help/supportive_help/doctype/sh_family_member/sh_family_member.json b/supportive_help/supportive_help/doctype/sh_family_member/sh_family_member.json index bf73099..8377fd9 100644 --- a/supportive_help/supportive_help/doctype/sh_family_member/sh_family_member.json +++ b/supportive_help/supportive_help/doctype/sh_family_member/sh_family_member.json @@ -25,7 +25,7 @@ "fieldtype": "Select", "in_list_view": 1, "label": "Family Position", - "options": "Mother\nFather\nChild\nSister\nBrother\nFoster Mother\nFoster Father\nStepmother\nStepfather\nGrandmother\nGrandfather\nPartner of Mother\nPartner of Father\nOther", + "options": "Mother\nFather\nChild\nSister\nBrother\nFoster Brother\nFoster Sister\nFoster Mother\nFoster Father\nStep Brother\nStep Sister\nStepmother\nStepfather\nHalf Brother\nHalf Sister\nGrandmother\nGrandfather\nPartner of Mother\nPartner of Father\nOther", "reqd": 1 }, { @@ -34,7 +34,7 @@ "fieldtype": "Data", "in_list_view": 1, "label": "Group", - "length": 1, + "length": 3, "reqd": 1 } ], @@ -42,7 +42,7 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2026-03-17 23:20:27.597921", + "modified": "2026-03-21 22:25:00.489646", "modified_by": "Administrator", "module": "Supportive Help", "name": "sh_family_member", diff --git a/supportive_help/supportive_help/doctype/sh_person/sh_person.json b/supportive_help/supportive_help/doctype/sh_person/sh_person.json index 6dd7a8a..10c8ebd 100644 --- a/supportive_help/supportive_help/doctype/sh_person/sh_person.json +++ b/supportive_help/supportive_help/doctype/sh_person/sh_person.json @@ -35,6 +35,8 @@ "residence", "counterpart_tab", "counterpart", + "person_law_tab", + "person_law", "connections_tab" ], "fields": [ @@ -210,12 +212,23 @@ "fieldname": "connections_tab", "fieldtype": "Tab Break", "label": "Connections" + }, + { + "fieldname": "person_law_tab", + "fieldtype": "Tab Break", + "label": "Person Law" + }, + { + "fieldname": "person_law", + "fieldtype": "Table", + "label": "Person Law", + "options": "sh_person_law" } ], "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2026-03-17 23:54:23.169179", + "modified": "2026-03-21 22:50:35.350295", "modified_by": "Administrator", "module": "Supportive Help", "name": "sh_person", diff --git a/supportive_help/supportive_help/doctype/sh_person_counterpart/sh_person_counterpart.json b/supportive_help/supportive_help/doctype/sh_person_counterpart/sh_person_counterpart.json index 0680ccb..79c121b 100644 --- a/supportive_help/supportive_help/doctype/sh_person_counterpart/sh_person_counterpart.json +++ b/supportive_help/supportive_help/doctype/sh_person_counterpart/sh_person_counterpart.json @@ -32,14 +32,14 @@ "fieldtype": "Select", "in_list_view": 1, "label": "Type", - "options": "school assistant\noutpatient care\nlegal guardian\ncompensatory assistant\nmiscellaneous\npreschool\nschool\nearly intervention\ndaycare\nasylum\ninstitution\nsocial institution\ndoctor\npediatrician\npsychologist\nclinic\nhospital\nemployment agency\ncredit counseling" + "options": "school assistant\noutpatient care\nlegal guardian\ncompensatory assistant\nmiscellaneous\npreschool\nschool\nearly intervention\ndaycare\nasylum\ninstitution\nsocial institution\ndoctor\npediatrician\npsychologist\nclinic\nhospital\nemployment agency\ncredit counseling\ngeneral social service\nchild care service\nasylum seeker bureau\nsocial relief service\ntherapist\nchild protective service\noutpatient social service\nhousing allowance service\npreschool tax credit" } ], "grid_page_length": 50, "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2026-03-17 21:55:41.537429", + "modified": "2026-03-21 22:54:08.822861", "modified_by": "Administrator", "module": "Supportive Help", "name": "sh_person_counterpart", diff --git a/supportive_help/supportive_help/doctype/sh_person_law/__init__.py b/supportive_help/supportive_help/doctype/sh_person_law/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/supportive_help/supportive_help/doctype/sh_person_law/sh_person_law.json b/supportive_help/supportive_help/doctype/sh_person_law/sh_person_law.json new file mode 100644 index 0000000..6ef07a2 --- /dev/null +++ b/supportive_help/supportive_help/doctype/sh_person_law/sh_person_law.json @@ -0,0 +1,60 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2026-03-18 18:56:34.209482", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "full_name", + "telephone", + "law_type", + "type" + ], + "fields": [ + { + "fieldname": "full_name", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Full Name", + "length": 64, + "reqd": 1 + }, + { + "fieldname": "telephone", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Telephone", + "options": "Phone" + }, + { + "fieldname": "law_type", + "fieldtype": "Select", + "in_list_view": 1, + "label": "Law Type", + "options": "custody\njoint custody\nguardian\nauthority\njoint authority" + }, + { + "fieldname": "type", + "fieldtype": "Select", + "in_list_view": 1, + "label": "Type", + "options": "Mother\nFather\nchild protective service\nmiscellaneous" + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2026-03-21 22:53:10.083408", + "modified_by": "Administrator", + "module": "Supportive Help", + "name": "sh_person_law", + "owner": "Administrator", + "permissions": [], + "row_format": "Dynamic", + "rows_threshold_for_grid_search": 20, + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/supportive_help/supportive_help/doctype/sh_person_law/sh_person_law.py b/supportive_help/supportive_help/doctype/sh_person_law/sh_person_law.py new file mode 100644 index 0000000..60ea3ef --- /dev/null +++ b/supportive_help/supportive_help/doctype/sh_person_law/sh_person_law.py @@ -0,0 +1,9 @@ +# Copyright (c) 2026, Leon Zimmermann and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class sh_person_law(Document): + pass diff --git a/supportive_help/translations/de.csv b/supportive_help/translations/de.csv index 3e16a35..cc3828a 100644 --- a/supportive_help/translations/de.csv +++ b/supportive_help/translations/de.csv @@ -11,7 +11,7 @@ "Street","Straße" "Valid from","Gültig ab" "sh_residence","Wohnsitz" -"Counterpart","Ansprechpartner" +"Counterpart","Ansprechpartner*in" "Mobile phone","Mobiltelefon" "Telephone","Telefon" "asylum","Heim" @@ -19,7 +19,7 @@ "compensatory assistant","Kompensatorischer Assistent*in" "credit counseling","Schuldnerberatung" "daycare","Tagesgruppe" -"doctor","Arzt" +"doctor","Arzt*in" "early intervention","Frühförderung" "employment agency","Arbeitsamt" "hospital","Krankenhaus" @@ -65,4 +65,27 @@ "Stepmother","Stiefmutter" "sh_family","Familie" "sh_family_member","Familienmitglied" -"Family","Familie" \ No newline at end of file +"Family","Familie" +"asylum seeker bureau","Amt für Migration und Integration" +"child care service","Kinderpflegedienst" +"child protective service","Jugendamt" +"general social service","Allgemeiner sozialer Dienst" +"housing allowance service","Wohngeldstelle" +"outpatient social service","Abulanter Pflegedienst" +"preschool tax credit","Kindergartenfreibetrag" +"social relief service","Pflegeentlastender Dienst" +"therapist","Therapeut*in" +"Foster Brother","Pflegebruder" +"Foster Sister","Pflegeschwester" +"Half Brother","Halbbruder" +"Half Sister","Halbschwester" +"Step Brother","Stiefbruder" +"Step Sister","Stiefschwester" +"sh_person_law","Personenrecht" +"Law Type","Rechtetyp" +"Person Law","Personenrecht" +"authority","Sorgerecht" +"custody","Vollmacht" +"guardian","Vormund*in" +"joint authority","Geteiltes Sorgerecht" +"joint custody","Geteilte Vollmacht" \ No newline at end of file diff --git a/supportive_help/translations/en.csv b/supportive_help/translations/en.csv index df611b0..eb581fd 100644 --- a/supportive_help/translations/en.csv +++ b/supportive_help/translations/en.csv @@ -3,4 +3,5 @@ "sh_residence","Residence" "sh_person_counterpart","Counterpart" "sh_family","Family" -"sh_family_member","Family Member" \ No newline at end of file +"sh_family_member","Family Member" +"sh_person_law","Person Law" \ No newline at end of file -- cgit v1.2.3