renamed entity kndigung to kuendigung

This commit is contained in:
2026-01-25 13:07:07 +01:00
parent 416cddd496
commit 1bd3729791
66 changed files with 82 additions and 78 deletions

View File

@@ -390,7 +390,7 @@ class CVmhMietverhltnis extends \Espo\Services\Record
throw new Forbidden('No read access to Mietverhältnis');
}
if (!$this->acl->checkScope('CKndigung', 'create')) {
if (!$this->acl->checkScope('CKuendigung', 'create')) {
throw new Forbidden('No create access to Kündigung');
}
@@ -413,13 +413,13 @@ class CVmhMietverhltnis extends \Espo\Services\Record
}
// 5. Create Kündigung entity
$kuendigung = $this->entityManager->createEntity('CKndigung', (array)$data);
$kuendigung = $this->entityManager->createEntity('CKuendigung', (array)$data);
if (!$kuendigung) {
throw new \RuntimeException('Failed to create Kündigung');
}
$kuendigungRepo = $this->entityManager->getRepository('CKndigung');
$kuendigungRepo = $this->entityManager->getRepository('CKuendigung');
// 6. Link Mietverhältnis to Kündigung
$kuendigungRepo