From 0abd37d7a586cef293263d59cf9be64b4a1b3e45 Mon Sep 17 00:00:00 2001 From: bsiggel Date: Mon, 23 Mar 2026 21:53:40 +0100 Subject: [PATCH] Add 'dateipfad' field to CDokumente localization; update detail layout for Advoware sync; modify metadata for cAdvowareAkten and dateipfad; adjust microtime values in config and state files --- .../Resources/i18n/de_DE/CDokumente.json | 4 +- .../Resources/i18n/en_US/CDokumente.json | 4 +- .../Resources/layouts/CDokumente/detail.json | 37 +++++++++++++++++++ .../metadata/entityDefs/CDokumente.json | 10 +++++ data/config.php | 2 +- data/state.php | 4 +- 6 files changed, 56 insertions(+), 5 deletions(-) diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CDokumente.json b/custom/Espo/Custom/Resources/i18n/de_DE/CDokumente.json index abbb141f..1d60a9cb 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CDokumente.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CDokumente.json @@ -10,6 +10,7 @@ "syncStatus": "Sync-Status", "syncedHash": "Sync-Hash", "usn": "USN", + "dateipfad": "Dateipfad", "contactsvmhdokumente": "Freigegebene Nutzer", "vmhMietverhltnisesDokumente": "Mietverhältnisse", "vmhErstgespraechsdokumente": "Erstgespräche", @@ -45,7 +46,8 @@ "hnr": "Hierarchische Referenznummer in Advoware", "syncStatus": "Status der Synchronisation mit Advoware: new=neu, unclean=geändert, synced=synchronisiert, failed=Fehler, unsupported=nicht unterstützt", "syncedHash": "Hash-Wert bei letzter erfolgreicher Synchronisation", - "usn": "Update Sequence Number - Versionsnummer für Synchronisation" + "usn": "Update Sequence Number - Versionsnummer für Synchronisation", + "dateipfad": "Windows-Dateipfad des Dokuments in Advoware" }, "options": { "syncStatus": { diff --git a/custom/Espo/Custom/Resources/i18n/en_US/CDokumente.json b/custom/Espo/Custom/Resources/i18n/en_US/CDokumente.json index c3282332..70474954 100644 --- a/custom/Espo/Custom/Resources/i18n/en_US/CDokumente.json +++ b/custom/Espo/Custom/Resources/i18n/en_US/CDokumente.json @@ -9,6 +9,7 @@ "syncStatus": "Sync Status", "syncedHash": "Sync Hash", "usn": "USN", + "dateipfad": "File Path", "contactsvmhdokumente": "Portal Users", "vmhMietverhltnisesDokumente": "Tenancies", "vmhErstgespraechsdokumente": "Initial Consultations", @@ -50,7 +51,8 @@ "hnr": "Hierarchical reference number in Advoware", "syncStatus": "Sync status with Advoware: new=new, unclean=changed, synced=synchronized, failed=error, unsupported=not supported", "syncedHash": "Hash value at last successful synchronization", - "usn": "Update Sequence Number - Version number for synchronization" + "usn": "Update Sequence Number - Version number for synchronization", + "dateipfad": "Windows file path of the document in Advoware" }, "options": { "syncStatus": { diff --git a/custom/Espo/Custom/Resources/layouts/CDokumente/detail.json b/custom/Espo/Custom/Resources/layouts/CDokumente/detail.json index c4d84f36..6388f5a2 100644 --- a/custom/Espo/Custom/Resources/layouts/CDokumente/detail.json +++ b/custom/Espo/Custom/Resources/layouts/CDokumente/detail.json @@ -52,5 +52,42 @@ "noteText": null, "noteStyle": "info", "customLabel": "Technische Daten" + }, + { + "rows": [ + [ + { + "name": "cAdvowareAkten" + }, + { + "name": "syncStatus" + } + ], + [ + { + "name": "hnr" + }, + { + "name": "usn" + } + ], + [ + { + "name": "dateipfad" + } + ], + [ + { + "name": "syncedHash" + } + ] + ], + "dynamicLogicVisible": null, + "style": "default", + "tabBreak": false, + "hidden": false, + "noteText": null, + "noteStyle": "info", + "customLabel": "Advoware Sync" } ] \ No newline at end of file diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CDokumente.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CDokumente.json index fbd5ec6b..764c0d43 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CDokumente.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CDokumente.json @@ -71,6 +71,10 @@ "type": "varchar", "isCustom": true }, + "cAdvowareAkten": { + "type": "link", + "isCustom": true + }, "hnr": { "type": "int", "tooltip": true, @@ -108,6 +112,12 @@ "tooltip": true, "isCustom": true }, + "dateipfad": { + "type": "varchar", + "maxLength": 500, + "tooltip": true, + "isCustom": true + }, "puls": { "type": "link", "entity": "CPuls", diff --git a/data/config.php b/data/config.php index 6616ce95..2d2e2483 100644 --- a/data/config.php +++ b/data/config.php @@ -360,7 +360,7 @@ return [ 0 => 'youtube.com', 1 => 'google.com' ], - 'microtime' => 1774298535.026933, + 'microtime' => 1774299095.245433, 'siteUrl' => 'https://crm.bitbylaw.com', 'fullTextSearchMinLength' => 4, 'webSocketUrl' => 'ws://api.bitbylaw.com:5000/espocrm/ws', diff --git a/data/state.php b/data/state.php index 96033fad..22a97427 100644 --- a/data/state.php +++ b/data/state.php @@ -1,7 +1,7 @@ 1774298535, - 'microtimeState' => 1774298535.22795, + 'cacheTimestamp' => 1774299095, + 'microtimeState' => 1774299095.419747, 'currencyRates' => [ 'EUR' => 1.0 ],