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

@@ -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) {