Refactor CreateAdvowareAkte and CVmhMietverhltnis to omit aktenzeichen generation; update localization for syncStatus options in CAdvowareAkten; adjust microtime values in config and state files

This commit is contained in:
2026-03-23 21:45:41 +01:00
parent cb3da68673
commit 7abd2122fe
8 changed files with 15 additions and 19 deletions

View File

@@ -89,14 +89,10 @@ class CreateAdvowareAkte implements AfterSave
$aktennummer = time();
}
// Generiere Aktenzeichen (wird in CAdvowareAkten gespeichert)
$aktenzeichen = 'AZ-' . date('Y-m-d-His');
// Erstelle AdvowareAkte
// Erstelle AdvowareAkte (aktenzeichen bleibt leer)
$akteData = [
'name' => 'Advoware Akte - ' . $kuendigung->get('name'),
'aktennummer' => $aktennummer,
'aktenzeichen' => $aktenzeichen,
'syncStatus' => 'unclean',
'assignedUserId' => $kuendigung->get('assignedUserId')
];

View File

@@ -27,6 +27,8 @@
},
"options": {
"syncStatus": {
"neu": "Neu",
"import": "Import",
"synced": "Synchronisiert",
"unclean": "Nicht synchronisiert",
"pending_sync": "Synchronisierung ausstehend"

View File

@@ -27,8 +27,8 @@
"Create CAdvowareAkten": "Create Advoware Akten"
},
"options": {
"syncStatus": {
"synced": "Synchronized",
"syncStatus": { "neu": "New",
"import": "Import", "synced": "Synchronized",
"unclean": "Not Synchronized",
"pending_sync": "Synchronization Pending"
},

View File

@@ -66,14 +66,18 @@
"type": "enum",
"required": false,
"options": [
"neu",
"import",
"synced",
"unclean",
"pending_sync"
],
"style": {
"neu": "primary",
"import": "info",
"synced": "success",
"unclean": "warning",
"pending_sync": "info"
"pending_sync": "default"
},
"default": "unclean",
"tooltip": true,

View File

@@ -378,14 +378,12 @@ class CVmhMietverhltnis extends \Espo\Services\Record
*/
private function createAdvowareAkteAndAIKnowledge($mietinkasso, $mietinkassoRepo): void
{
// 1. Create AdvowareAkte
// 1. Create AdvowareAkte (aktenzeichen bleibt leer)
$aktennummer = time(); // Simple timestamp-based generation
$aktenzeichen = 'AZ-' . date('Y-m-d-His');
$advowareAkteData = [
'name' => 'Advoware Akte - ' . $mietinkasso->get('name'),
'aktennummer' => $aktennummer,
'aktenzeichen' => $aktenzeichen,
'syncStatus' => 'unclean',
'assignedUserId' => $mietinkasso->get('assignedUserId')
];

View File

@@ -443,14 +443,10 @@ class CVmhRumungsklage extends \Espo\Services\Record
$aktennummer = time(); // Simple timestamp-based generation
}
// Always generate new Aktenzeichen
$aktenzeichen = 'AZ-' . date('Y-m-d-His');
// Create new AdvowareAkte
// Create new AdvowareAkte (aktenzeichen bleibt leer)
$advowareAkteData = [
'name' => 'Advoware Akte - ' . $raeumungsklage->get('name'),
'aktennummer' => $aktennummer,
'aktenzeichen' => $aktenzeichen,
'syncStatus' => 'unclean',
'assignedUserId' => $raeumungsklage->get('assignedUserId')
];

View File

@@ -360,7 +360,7 @@ return [
0 => 'youtube.com',
1 => 'google.com'
],
'microtime' => 1774298143.136788,
'microtime' => 1774298535.026933,
'siteUrl' => 'https://crm.bitbylaw.com',
'fullTextSearchMinLength' => 4,
'webSocketUrl' => 'ws://api.bitbylaw.com:5000/espocrm/ws',

View File

@@ -1,7 +1,7 @@
<?php
return [
'cacheTimestamp' => 1774298143,
'microtimeState' => 1774298143.319113,
'cacheTimestamp' => 1774298535,
'microtimeState' => 1774298535.22795,
'currencyRates' => [
'EUR' => 1.0
],