feat: Update eviction lawsuit naming to use first Mietverhältnis if available
This commit is contained in:
@@ -83,7 +83,13 @@ class CKuendigung extends \Espo\Services\Record
|
|||||||
|
|
||||||
// 7. Prepare data for new Räumungsklage
|
// 7. Prepare data for new Räumungsklage
|
||||||
$data = new \stdClass();
|
$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
|
// Copy Advoware fields if found
|
||||||
if ($advowareAktenzeichen) {
|
if ($advowareAktenzeichen) {
|
||||||
|
|||||||
@@ -68,7 +68,9 @@ class CVmhMietverhltnis extends \Espo\Services\Record
|
|||||||
|
|
||||||
// 7. Prepare data for new Räumungsklage
|
// 7. Prepare data for new Räumungsklage
|
||||||
$data = new \stdClass();
|
$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
|
// Copy Advoware fields if found
|
||||||
if ($advowareAktenzeichen) {
|
if ($advowareAktenzeichen) {
|
||||||
|
|||||||
@@ -361,8 +361,8 @@ return [
|
|||||||
0 => 'youtube.com',
|
0 => 'youtube.com',
|
||||||
1 => 'google.com'
|
1 => 'google.com'
|
||||||
],
|
],
|
||||||
'cacheTimestamp' => 1769346856,
|
'cacheTimestamp' => 1769347057,
|
||||||
'microtime' => 1769346856.162518,
|
'microtime' => 1769347057.472966,
|
||||||
'siteUrl' => 'https://crm.bitbylaw.com',
|
'siteUrl' => 'https://crm.bitbylaw.com',
|
||||||
'fullTextSearchMinLength' => 4,
|
'fullTextSearchMinLength' => 4,
|
||||||
'appTimestamp' => 1768843902,
|
'appTimestamp' => 1768843902,
|
||||||
|
|||||||
Reference in New Issue
Block a user