feat: Update eviction lawsuit naming to use first Mietverhältnis if available
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user