feat: Update eviction lawsuit naming to use first Mietverhältnis if available

This commit is contained in:
2026-01-25 14:25:11 +01:00
parent 067344866d
commit 9249628ff4
3 changed files with 12 additions and 4 deletions

View File

@@ -83,7 +83,13 @@ class CKuendigung extends \Espo\Services\Record
// 7. Prepare data for new Räumungsklage
$data = new \stdClass();
$data->name = 'Räumungsklage - ' . $kuendigung->get('name');
// Use name from first Mietverhältnis (or fallback to Kündigung)
if (!empty($alleMietverhaeltnisse)) {
$data->name = 'Räumungsklage - ' . $alleMietverhaeltnisse[0]->get('name');
} else {
$data->name = 'Räumungsklage - ' . $kuendigung->get('name');
}
// Copy Advoware fields if found
if ($advowareAktenzeichen) {

View File

@@ -68,7 +68,9 @@ class CVmhMietverhltnis extends \Espo\Services\Record
// 7. Prepare data for new Räumungsklage
$data = new \stdClass();
$data->name = 'Räumungsklage - ' . $mietverhaeltnis->get('name');
// Use name from first Mietverhältnis
$data->name = 'Räumungsklage - ' . $alleMietverhaeltnisse[0]->get('name');
// Copy Advoware fields if found
if ($advowareAktenzeichen) {

View File

@@ -361,8 +361,8 @@ return [
0 => 'youtube.com',
1 => 'google.com'
],
'cacheTimestamp' => 1769346856,
'microtime' => 1769346856.162518,
'cacheTimestamp' => 1769347057,
'microtime' => 1769347057.472966,
'siteUrl' => 'https://crm.bitbylaw.com',
'fullTextSearchMinLength' => 4,
'appTimestamp' => 1768843902,