diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CBeteiligte.json b/custom/Espo/Custom/Resources/i18n/de_DE/CBeteiligte.json index ada59b51..0043827e 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CBeteiligte.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CBeteiligte.json @@ -1,5 +1,9 @@ { "fields": { + "rechtsform": "Rechtsform", + "firmenname": "Firmenname", + "handelsregisterNummer": "Handelsregister-Nummer", + "handelsregisterArt": "Handelsregister-Art", "vmhvermieterbeteiligte": "Vermieter", "vmhmieterbeteiligte": "Mieter", "vmhMietverhltnisesSonstigeBesitzer": "Sonstige Bewohner", @@ -32,13 +36,38 @@ "tooltips": { "betnr": "Eindeutige Beteiligten-Nummer aus Advoware", "advowareLastSync": "Zeitpunkt der letzten Synchronisation mit Advoware", - "syncStatus": "Status der Synchronisation: clean = erfolgreich, unclean = Abweichungen, failed = Fehler" + "syncStatus": "Status der Synchronisation: clean = erfolgreich, unclean = Abweichungen, failed = Fehler", + "rechtsform": "Rechtsform des Beteiligten (natürliche Person oder juristische Person)", + "firmenname": "Name der Firma oder Organisation (nur bei juristischen Personen)", + "handelsregisterNummer": "Nummer im Handelsregister (z.B. 12345)", + "handelsregisterArt": "HRA (Abteilung A) für Einzelkaufleute, OHG, KG; HRB (Abteilung B) für GmbH, AG, UG" }, "options": { "syncStatus": { "clean": "Synchronisiert", "unclean": "Abweichungen", "failed": "Fehlgeschlagen" + }, + "rechtsform": { + "": "", + "NatürlichePerson": "Natürliche Person", + "GmbH": "GmbH (Gesellschaft mit beschränkter Haftung)", + "UG": "UG (Unternehmergesellschaft)", + "AG": "AG (Aktiengesellschaft)", + "KG": "KG (Kommanditgesellschaft)", + "OHG": "OHG (Offene Handelsgesellschaft)", + "GbR": "GbR (Gesellschaft bürgerlichen Rechts)", + "PartG": "PartG (Partnerschaftsgesellschaft)", + "eV": "e.V. (eingetragener Verein)", + "eG": "eG (eingetragene Genossenschaft)", + "KGaA": "KGaA (Kommanditgesellschaft auf Aktien)", + "SE": "SE (Societas Europaea)", + "Einzelunternehmen": "Einzelunternehmen" + }, + "handelsregisterArt": { + "": "", + "HRA": "HRA (Abteilung A)", + "HRB": "HRB (Abteilung B)" } } } \ No newline at end of file diff --git a/custom/Espo/Custom/Resources/layouts/CBeteiligte/detail.json b/custom/Espo/Custom/Resources/layouts/CBeteiligte/detail.json index dbd016c5..b161c64b 100644 --- a/custom/Espo/Custom/Resources/layouts/CBeteiligte/detail.json +++ b/custom/Espo/Custom/Resources/layouts/CBeteiligte/detail.json @@ -1,12 +1,24 @@ [ { "rows": [ + [ + { + "name": "rechtsform" + }, + false + ], [ { "name": "name" }, false ], + [ + { + "name": "firmenname" + }, + false + ], [ { "name": "emailAddress" @@ -15,6 +27,14 @@ "name": "phoneNumber" } ], + [ + { + "name": "handelsregisterArt" + }, + { + "name": "handelsregisterNummer" + } + ], [ { "name": "description" diff --git a/custom/Espo/Custom/Resources/metadata/clientDefs/CBeteiligte.json b/custom/Espo/Custom/Resources/metadata/clientDefs/CBeteiligte.json index 4f8a0a3f..24c1afa6 100644 --- a/custom/Espo/Custom/Resources/metadata/clientDefs/CBeteiligte.json +++ b/custom/Espo/Custom/Resources/metadata/clientDefs/CBeteiligte.json @@ -3,6 +3,168 @@ "boolFilterList": [ "onlyMy" ], + "dynamicLogic": { + "fields": { + "name": { + "visible": { + "conditionGroup": [ + { + "type": "or", + "value": [ + { + "type": "equals", + "attribute": "rechtsform", + "value": "NatürlichePerson" + }, + { + "type": "isEmpty", + "attribute": "rechtsform" + } + ] + } + ] + } + }, + "firmenname": { + "visible": { + "conditionGroup": [ + { + "type": "and", + "value": [ + { + "type": "isNotEmpty", + "attribute": "rechtsform" + }, + { + "type": "notEquals", + "attribute": "rechtsform", + "value": "NatürlichePerson" + } + ] + } + ] + }, + "required": { + "conditionGroup": [ + { + "type": "and", + "value": [ + { + "type": "isNotEmpty", + "attribute": "rechtsform" + }, + { + "type": "notEquals", + "attribute": "rechtsform", + "value": "NatürlichePerson" + } + ] + } + ] + } + }, + "salutationName": { + "visible": { + "conditionGroup": [ + { + "type": "or", + "value": [ + { + "type": "equals", + "attribute": "rechtsform", + "value": "NatürlichePerson" + }, + { + "type": "isEmpty", + "attribute": "rechtsform" + } + ] + } + ] + } + }, + "firstName": { + "visible": { + "conditionGroup": [ + { + "type": "or", + "value": [ + { + "type": "equals", + "attribute": "rechtsform", + "value": "NatürlichePerson" + }, + { + "type": "isEmpty", + "attribute": "rechtsform" + } + ] + } + ] + } + }, + "lastName": { + "visible": { + "conditionGroup": [ + { + "type": "or", + "value": [ + { + "type": "equals", + "attribute": "rechtsform", + "value": "NatürlichePerson" + }, + { + "type": "isEmpty", + "attribute": "rechtsform" + } + ] + } + ] + } + }, + "handelsregisterArt": { + "visible": { + "conditionGroup": [ + { + "type": "and", + "value": [ + { + "type": "isNotEmpty", + "attribute": "rechtsform" + }, + { + "type": "notEquals", + "attribute": "rechtsform", + "value": "NatürlichePerson" + } + ] + } + ] + } + }, + "handelsregisterNummer": { + "visible": { + "conditionGroup": [ + { + "type": "and", + "value": [ + { + "type": "isNotEmpty", + "attribute": "rechtsform" + }, + { + "type": "notEquals", + "attribute": "rechtsform", + "value": "NatürlichePerson" + } + ] + } + ] + } + } + } + }, "sidePanels": { "detail": [ { diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CBeteiligte.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CBeteiligte.json index 4c88878f..0d98e4c8 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CBeteiligte.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CBeteiligte.json @@ -14,6 +14,36 @@ "Dr." ] }, + "rechtsform": { + "type": "enum", + "required": false, + "options": [ + "", + "NatürlichePerson", + "GmbH", + "UG", + "AG", + "KG", + "OHG", + "GbR", + "PartG", + "eV", + "eG", + "KGaA", + "SE", + "Einzelunternehmen" + ], + "default": "NatürlichePerson", + "tooltip": true, + "isCustom": true + }, + "firmenname": { + "type": "varchar", + "required": false, + "maxLength": 255, + "tooltip": true, + "isCustom": true + }, "firstName": { "type": "varchar", "maxLength": 100 @@ -104,6 +134,24 @@ "default": "clean", "tooltip": true, "isCustom": true + }, + "handelsregisterNummer": { + "type": "varchar", + "required": false, + "maxLength": 50, + "tooltip": true, + "isCustom": true + }, + "handelsregisterArt": { + "type": "enum", + "required": false, + "options": [ + "", + "HRA", + "HRB" + ], + "tooltip": true, + "isCustom": true } }, "links": { diff --git a/data/config.php b/data/config.php index 426fcb30..4664d233 100644 --- a/data/config.php +++ b/data/config.php @@ -349,8 +349,8 @@ return [ 0 => 'youtube.com', 1 => 'google.com' ], - 'cacheTimestamp' => 1768929817, - 'microtime' => 1768929817.518436, + 'cacheTimestamp' => 1768933202, + 'microtime' => 1768933202.419047, 'siteUrl' => 'https://crm.bitbylaw.com', 'fullTextSearchMinLength' => 4, 'appTimestamp' => 1768843902,