From 300441de67e0f28c316eb54c12bc609b1260613a Mon Sep 17 00:00:00 2001 From: bsiggel Date: Sun, 8 Feb 2026 23:51:21 +0100 Subject: [PATCH] feat: Update synchronization status options and default values across multiple entity definitions and language files --- custom/Espo/Custom/Resources/i18n/de_DE/CAdressen.json | 8 ++++++++ .../Custom/Resources/i18n/de_DE/CBankverbindungen.json | 3 ++- custom/Espo/Custom/Resources/i18n/de_DE/CDokumente.json | 3 ++- custom/Espo/Custom/Resources/i18n/de_DE/CKuendigung.json | 1 + custom/Espo/Custom/Resources/i18n/de_DE/CMietinkasso.json | 3 ++- .../Custom/Resources/i18n/de_DE/CVmhRumungsklage.json | 3 ++- .../Custom/Resources/i18n/en_US/CBankverbindungen.json | 3 ++- .../Custom/Resources/metadata/entityDefs/CAdressen.json | 4 +++- .../Resources/metadata/entityDefs/CBankverbindungen.json | 4 +++- .../Custom/Resources/metadata/entityDefs/CDokumente.json | 4 +++- .../Custom/Resources/metadata/entityDefs/CKuendigung.json | 4 +++- .../Resources/metadata/entityDefs/CMietinkasso.json | 4 +++- .../Resources/metadata/entityDefs/CVmhRumungsklage.json | 4 +++- data/config.php | 2 +- data/state.php | 4 ++-- 15 files changed, 40 insertions(+), 14 deletions(-) diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CAdressen.json b/custom/Espo/Custom/Resources/i18n/de_DE/CAdressen.json index 06b9974f..2cbdef0b 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CAdressen.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CAdressen.json @@ -19,5 +19,13 @@ }, "labels": { "Create CAdressen": "Adressen erstellen" + }, + "options": { + "syncStatus": { + "pending_sync": "Warte auf Sync", + "clean": "Synchronisiert", + "unclean": "Abweichungen", + "failed": "Fehlgeschlagen" + } } } \ No newline at end of file diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CBankverbindungen.json b/custom/Espo/Custom/Resources/i18n/de_DE/CBankverbindungen.json index 3fb8aec1..924b8721 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CBankverbindungen.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CBankverbindungen.json @@ -42,10 +42,11 @@ "beteiligte": "Der Beteiligte, dem diese Bankverbindung zugeordnet ist", "advowareKontoId": "Eindeutige Konto-ID aus Advoware für die Synchronisation. Wird automatisch bei der Synchronisation gesetzt", "advowareLastSync": "Zeitpunkt der letzten erfolgreichen Synchronisation mit Advoware. Wird automatisch aktualisiert", - "syncStatus": "Status der Advoware-Synchronisation: 'Synchronisiert' = Daten sind aktuell, 'Abweichungen' = Daten weichen ab, 'Fehlgeschlagen' = Sync-Fehler aufgetreten" + "syncStatus": "Status der Advoware-Synchronisation: 'Warte auf Sync' = Neu erstellt, wartet auf erste Synchronisation, 'Synchronisiert' = Daten sind aktuell, 'Abweichungen' = Daten weichen ab, 'Fehlgeschlagen' = Sync-Fehler aufgetreten" }, "options": { "syncStatus": { + "pending_sync": "Warte auf Sync", "clean": "Synchronisiert", "unclean": "Abweichungen", "failed": "Fehlgeschlagen" diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CDokumente.json b/custom/Espo/Custom/Resources/i18n/de_DE/CDokumente.json index 672b7d3a..9ec3d4a9 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CDokumente.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CDokumente.json @@ -35,10 +35,11 @@ "tooltips": { "aktennr": "Eindeutige Dokument-Nummer aus Advoware", "advowareLastSync": "Zeitpunkt der letzten Synchronisation mit Advoware", - "syncStatus": "Status der Synchronisation: clean = erfolgreich, unclean = Abweichungen, failed = Fehler" + "syncStatus": "Status der Synchronisation: pending_sync = Warte auf Sync, clean = erfolgreich, unclean = Abweichungen, failed = Fehler" }, "options": { "syncStatus": { + "pending_sync": "Warte auf Sync", "clean": "Synchronisiert", "unclean": "Abweichungen", "failed": "Fehlgeschlagen" diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CKuendigung.json b/custom/Espo/Custom/Resources/i18n/de_DE/CKuendigung.json index 97b0852c..8b143db0 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CKuendigung.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CKuendigung.json @@ -95,6 +95,7 @@ "JaBesorgnisgrund259ZPO": "Ja, Besorgnis, § 259 ZPO" }, "syncStatus": { + "pending_sync": "Warte auf Sync", "clean": "Synchronisiert", "unclean": "Änderungen ausstehend", "failed": "Fehler" diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CMietinkasso.json b/custom/Espo/Custom/Resources/i18n/de_DE/CMietinkasso.json index af1948fb..cd915eca 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CMietinkasso.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CMietinkasso.json @@ -39,10 +39,11 @@ "advowareAktenzeichen": "Aktenzeichen aus dem Advoware-System", "aktennr": "Eindeutige Inkasso-Nummer aus Advoware", "advowareLastSync": "Zeitpunkt der letzten Synchronisation mit Advoware", - "syncStatus": "Status der Synchronisation: clean = erfolgreich, unclean = Abweichungen, failed = Fehler" + "syncStatus": "Status der Synchronisation: pending_sync = Warte auf Sync, clean = erfolgreich, unclean = Abweichungen, failed = Fehler" }, "options": { "syncStatus": { + "pending_sync": "Warte auf Sync", "clean": "Synchronisiert", "unclean": "Abweichungen", "failed": "Fehlgeschlagen" diff --git a/custom/Espo/Custom/Resources/i18n/de_DE/CVmhRumungsklage.json b/custom/Espo/Custom/Resources/i18n/de_DE/CVmhRumungsklage.json index 85babbd1..a5bc7e07 100644 --- a/custom/Espo/Custom/Resources/i18n/de_DE/CVmhRumungsklage.json +++ b/custom/Espo/Custom/Resources/i18n/de_DE/CVmhRumungsklage.json @@ -40,10 +40,11 @@ "advowareAktenzeichen": "Aktenzeichen aus dem Advoware-System", "aktennr": "Eindeutige Klage-Nummer aus Advoware", "advowareLastSync": "Zeitpunkt der letzten Synchronisation mit Advoware", - "syncStatus": "Status der Synchronisation: clean = erfolgreich, unclean = Abweichungen, failed = Fehler" + "syncStatus": "Status der Synchronisation: pending_sync = Warte auf Sync, clean = erfolgreich, unclean = Abweichungen, failed = Fehler" }, "options": { "syncStatus": { + "pending_sync": "Warte auf Sync", "clean": "Synchronisiert", "unclean": "Abweichungen", "failed": "Fehlgeschlagen" diff --git a/custom/Espo/Custom/Resources/i18n/en_US/CBankverbindungen.json b/custom/Espo/Custom/Resources/i18n/en_US/CBankverbindungen.json index 2cf2bf19..9ca61198 100644 --- a/custom/Espo/Custom/Resources/i18n/en_US/CBankverbindungen.json +++ b/custom/Espo/Custom/Resources/i18n/en_US/CBankverbindungen.json @@ -30,10 +30,11 @@ "beteiligte": "The participant to whom this bank account belongs", "advowareKontoId": "Unique account ID from Advoware for synchronization. Automatically set during synchronization", "advowareLastSync": "Time of last successful synchronization with Advoware. Automatically updated", - "syncStatus": "Advoware synchronization status: 'Synchronized' = data is current, 'Discrepancies' = data differs, 'Failed' = sync error occurred" + "syncStatus": "Advoware synchronization status: 'Waiting for Sync' = Newly created, waiting for first synchronization, 'Synchronized' = data is current, 'Discrepancies' = data differs, 'Failed' = sync error occurred" }, "options": { "syncStatus": { + "pending_sync": "Waiting for Sync", "clean": "Synchronized", "unclean": "Discrepancies", "failed": "Failed" diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CAdressen.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CAdressen.json index 4bccfa9c..8f90dfd4 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CAdressen.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CAdressen.json @@ -81,16 +81,18 @@ "type": "enum", "required": false, "options": [ + "pending_sync", "clean", "unclean", "failed" ], "style": { + "pending_sync": "default", "clean": "success", "unclean": "warning", "failed": "danger" }, - "default": "clean", + "default": "pending_sync", "tooltip": true, "isCustom": true } diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json index 44ddf15c..edabe7c9 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json @@ -69,16 +69,18 @@ "type": "enum", "required": false, "options": [ + "pending_sync", "clean", "unclean", "failed" ], "style": { + "pending_sync": "default", "clean": "success", "unclean": "warning", "failed": "danger" }, - "default": "clean", + "default": "pending_sync", "tooltip": true, "isCustom": true }, diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CDokumente.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CDokumente.json index 5ab33eec..a2d7db2e 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CDokumente.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CDokumente.json @@ -91,16 +91,18 @@ "type": "enum", "required": false, "options": [ + "pending_sync", "clean", "unclean", "failed" ], "style": { + "pending_sync": "default", "clean": "success", "unclean": "warning", "failed": "danger" }, - "default": "clean", + "default": "pending_sync", "tooltip": true, "isCustom": true } diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CKuendigung.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CKuendigung.json index 60b55867..d6f91dd3 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CKuendigung.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CKuendigung.json @@ -77,16 +77,18 @@ "type": "enum", "required": false, "options": [ + "pending_sync", "clean", "unclean", "failed" ], "style": { + "pending_sync": "default", "clean": "success", "unclean": "warning", "failed": "danger" }, - "default": "clean", + "default": "pending_sync", "tooltip": true, "isCustom": true }, diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CMietinkasso.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CMietinkasso.json index 428748c4..dc86a904 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CMietinkasso.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CMietinkasso.json @@ -77,16 +77,18 @@ "type": "enum", "required": false, "options": [ + "pending_sync", "clean", "unclean", "failed" ], "style": { + "pending_sync": "default", "clean": "success", "unclean": "warning", "failed": "danger" }, - "default": "clean", + "default": "pending_sync", "tooltip": true, "isCustom": true }, diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CVmhRumungsklage.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CVmhRumungsklage.json index cb07e3c1..e23c758d 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CVmhRumungsklage.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CVmhRumungsklage.json @@ -77,16 +77,18 @@ "type": "enum", "required": false, "options": [ + "pending_sync", "clean", "unclean", "failed" ], "style": { + "pending_sync": "default", "clean": "success", "unclean": "warning", "failed": "danger" }, - "default": "clean", + "default": "pending_sync", "tooltip": true, "isCustom": true }, diff --git a/data/config.php b/data/config.php index ec1ab98b..082a4aa3 100644 --- a/data/config.php +++ b/data/config.php @@ -357,7 +357,7 @@ return [ 0 => 'youtube.com', 1 => 'google.com' ], - 'microtime' => 1770580918.069661, + 'microtime' => 1770591071.892102, '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 10043fae..fa807826 100644 --- a/data/state.php +++ b/data/state.php @@ -1,7 +1,7 @@ 1770580918, - 'microtimeState' => 1770580918.192797, + 'cacheTimestamp' => 1770591072, + 'microtimeState' => 1770591072.009735, 'currencyRates' => [ 'EUR' => 1.0 ],