diff --git a/.vscode/settings.json b/.vscode/settings.json index bff729d4..a0f27849 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -63,6 +63,10 @@ "/^cd /var/lib/docker/volumes/vmh-espocrm_espocrm/_data/custom/scripts && python3 validate_and_rebuild\\.py 2>&1 \\| tail -120$/": { "approve": true, "matchCommandLine": true + }, + "/^bash /var/lib/docker/volumes/vmh-espocrm_espocrm/_data/custom/scripts/ki-overview\\.sh$/": { + "approve": true, + "matchCommandLine": true } } } \ No newline at end of file diff --git a/client/custom/src/handlers/mietverhaeltnis/termination-action.js b/client/custom/src/handlers/mietverhaeltnis/termination-action.js index b1a02735..95a88ef2 100644 --- a/client/custom/src/handlers/mietverhaeltnis/termination-action.js +++ b/client/custom/src/handlers/mietverhaeltnis/termination-action.js @@ -46,7 +46,7 @@ define('custom:handlers/mietverhaeltnis/termination-action', [], function () { // Navigation zur erstellten Kündigung this.view.getRouter().navigate( - '#CKuendigung/view/' + response.id, + '#CKndigung/view/' + response.id, {trigger: true} ); }) diff --git a/custom/Espo/Custom/Controllers/CKndigung.php b/custom/Espo/Custom/Controllers/CKndigung.php deleted file mode 100644 index ae9c7f0c..00000000 --- a/custom/Espo/Custom/Controllers/CKndigung.php +++ /dev/null @@ -1,7 +0,0 @@ -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 diff --git a/custom/scripts/__pycache__/espocrm_api_client.cpython-311.pyc b/custom/scripts/__pycache__/espocrm_api_client.cpython-311.pyc index 5e8a2572..f9ec8467 100644 Binary files a/custom/scripts/__pycache__/espocrm_api_client.cpython-311.pyc and b/custom/scripts/__pycache__/espocrm_api_client.cpython-311.pyc differ diff --git a/custom/scripts/e2e_tests.py b/custom/scripts/e2e_tests.py index 17db4ad6..aad86e58 100644 --- a/custom/scripts/e2e_tests.py +++ b/custom/scripts/e2e_tests.py @@ -322,7 +322,7 @@ class CKuendigungTest(EntityTestBase): def __init__(self, client: EspoCRMAPIClient, tracker: TestTracker): super().__init__(client, tracker) - self.entity_type = 'CKndigung' + self.entity_type = 'CKuendigung' def run_full_test(self) -> Optional[str]: """Run complete CRUD test""" @@ -546,7 +546,7 @@ def run_all_tests(): # Delete in reverse order (respect dependencies) deletion_order = [ - 'CKndigung', + 'CKuendigung', 'CMietinkasso', 'CVmhRumungsklage', 'CVmhMietverhltnis', diff --git a/data/config.php b/data/config.php index 9d97ff82..44c60618 100644 --- a/data/config.php +++ b/data/config.php @@ -360,8 +360,8 @@ return [ 0 => 'youtube.com', 1 => 'google.com' ], - 'cacheTimestamp' => 1769342207, - 'microtime' => 1769342207.499744, + 'cacheTimestamp' => 1769342780, + 'microtime' => 1769342780.28741, 'siteUrl' => 'https://crm.bitbylaw.com', 'fullTextSearchMinLength' => 4, 'appTimestamp' => 1768843902,