Compare commits

..

67 Commits

Author SHA1 Message Date
3bad25216b Update sync status handling in UpdateJunctionSyncStatus hook; enforce required aiProvider field in CAkten entity; adjust microtime values in config and state files 2026-03-27 11:22:04 +01:00
412c25f184 Add AI parsing and graph parsing status; update related hooks and localization; modify microtime values in config and state files 2026-03-27 10:47:30 +01:00
fa3c92379f Refactor document propagation and sync status hooks; deprecate CAkten hooks and implement new logic in CDokumente; update microtime values in config and state files 2026-03-27 10:31:12 +01:00
2a18e62528 Enhance document synchronization hooks to handle linking and unlinking; update sync status for related entities; modify state file for cache and microtime values 2026-03-27 09:52:28 +01:00
bd29d6e9b4 Update documentation and configuration for architecture changes; remove CAIKnowledge and related entities; update microtime values in config and state files 2026-03-26 23:18:12 +01:00
a0d9d1133a Add AI provider field and localization updates; modify microtime values in config and state files 2026-03-26 22:41:47 +01:00
297d2765bd Remove CAIKnowledge related hooks, controllers, localization files, and metadata definitions; update microtime values in config and state files 2026-03-26 15:41:56 +01:00
260186d148 Refactor localization and remove CAIKnowledge entity
- Removed CAIKnowledge localization files for various languages (el_GR, en_GB, en_US, es_ES, es_MX, fa_IR, fr_FR, hr_HR, hu_HU, id_ID, it_IT, ja_JP, lt_LT, lv_LV, nb_NO, nl_NL, pl_PL, pt_BR, pt_PT, ro_RO, ru_RU, sk_SK, sl_SI, sr_RS, sv_SE, th_TH, tr_TR, uk_UA, ur_IN, vi_VN, zh_CN, zh_TW).
- Deleted related layout and metadata files for CAIKnowledge.
- Removed references to CAIKnowledge in existing metadata definitions for CDokumente, CMietinkasso, and CVmhRumungsklage.
- Updated config and state files to reflect the removal of CAIKnowledge.
- Cleaned up unused localization keys in existing JSON files.
2026-03-26 15:40:07 +01:00
5a61bd550c Update UpdateLastSyncFromDocuments hook to handle AI sync status and timestamps; modify state file for cache and microtime values 2026-03-26 14:21:58 +01:00
0841543d8e Refactor UpdateLastSyncFromDocuments hook to use PDO for database queries; add AI Sync fields to CDokumente layout; update microtime values in config and state files; create check_role_permissions script for role validation 2026-03-26 14:04:05 +01:00
cca6d288eb Increase maxLength for advowareArt field in CDokumente metadata; update microtime values in config and state files 2026-03-26 10:50:40 +01:00
8e7bb9f141 Add "rubrum" field to CAkten localization and metadata; update layout and configuration files 2026-03-26 10:06:00 +01:00
6ac852b42a Add localization files and layout configurations for CAkten and related entities
- Created localization JSON files for multiple languages (e.g., Danish, German, Greek, English, Spanish, etc.) for CAkten and CAktenCDokumente.
- Added layout configurations for CAkten, including detail views, side panels, and bottom panels.
- Implemented metadata definitions for CAkten, including field definitions, relationship panels, and scopes.
- Introduced new JSON files for managing document relationships and listing configurations.
2026-03-26 01:56:22 +01:00
661943987f removed Entity "Akten" 2026-03-26 01:10:12 +01:00
bb44fd0277 created Entity "Akten" 2026-03-26 01:01:05 +01:00
c151505c22 Update lastSyncTimestamp field in CDokumente metadata; adjust microtime values in config and state files 2026-03-26 00:30:12 +01:00
35d165a4b6 Implement UpdateLastSyncFromDocuments hook; adjust syncStatus logic; update layout and metadata for dokumentes relationship 2026-03-25 22:26:49 +01:00
4a302542b7 Refactor CAdvowareAkten and CDokumente hooks; update localization and metadata; adjust microtime values in config and state files 2026-03-25 22:01:58 +01:00
7d55075490 Add disableFormatting option to aktennummer field; update microtime values in config and state files 2026-03-25 15:10:47 +01:00
867da15823 Some big update 2026-03-25 14:35:44 +01:00
0abd37d7a5 Add 'dateipfad' field to CDokumente localization; update detail layout for Advoware sync; modify metadata for cAdvowareAkten and dateipfad; adjust microtime values in config and state files 2026-03-23 21:53:40 +01:00
7abd2122fe Refactor CreateAdvowareAkte and CVmhMietverhltnis to omit aktenzeichen generation; update localization for syncStatus options in CAdvowareAkten; adjust microtime values in config and state files 2026-03-23 21:45:41 +01:00
cb3da68673 Refactor CreateAdvowareAkte and SyncAdvowareAkte to synchronize only Aktennummer; update localization keys for advowareAktenzeichen; adjust microtime values in config and state files 2026-03-23 21:41:01 +01:00
ea4738d9eb Add AdvowareAkte and AIKnowledge creation for Kündigungen; synchronize between Kündigungen and Räumungsklagen; update localization and metadata files 2026-03-23 21:29:26 +01:00
672645673f Refactor CDokumente service to use dependency injection for FileStorageManager and FileManager; update microtime values in config and state files 2026-03-23 20:40:11 +01:00
22665948e4 Refactor AdvowareAkte ↔ CDokumente relationship from junction table to direct n:1 relationship
- Removed CAdvowareAktenCDokumente junction table and associated service.
- Updated CDokumente entity to include foreign key cAdvowareAktenId and related fields.
- Changed relationship in CDokumente from hasMany to belongsTo.
- Updated CAdvowareAkten to reflect new direct relationship.
- Implemented CDokumente service with duplicateDocument method for document duplication.
- Refactored hooks to support new relationship and document propagation.
- Removed obsolete API routes related to the junction table.
- Added i18n translations for new fields and updated tooltips.
- Document flow and auto-linking logic enhanced for better integration with Advoware.
- Validation checks passed, and no data migration needed.
2026-03-23 20:36:10 +01:00
0b829e9dfe some update 2026-03-23 19:39:13 +01:00
faffe3d874 Update EspoCRM Best Practices to version 2.4 with new features and implementation patterns for Custom API Endpoints; remove outdated TESTERGEBNISSE_JUNCTION_TABLE.md file. 2026-03-12 22:52:42 +01:00
bf0f596ad4 Update configuration and localization files for CAIKnowledgeCDokumente; add metadata and scopes 2026-03-12 22:40:38 +01:00
3ecc6275bc Implement CAIKnowledge and CDokumente junction functionality; add API routes, metadata, and localization files 2026-03-12 22:39:33 +01:00
d0397e475e Remove unused CAICollectionCDokumente localization, metadata, and service files; update CAIKnowledge layout and CAdvowareAkten scope type 2026-03-12 21:50:02 +01:00
51d9f7fa22 Refactor Blake3 hashing implementation in CDokumente; update localization and metadata files 2026-03-11 22:45:42 +01:00
80dc3b40d3 Implement Blake3 hashing in CDokumente; update related metadata and localization files 2026-03-11 22:20:21 +01:00
e15dd14cab Add 'pending_sync' status to syncStatus in CAIKnowledge and CAdvowareAkten entities; update tooltips and API documentation 2026-03-11 22:05:27 +01:00
54d66da52d Add 'syncedHash' field to CAIKnowledge and CAdvowareAkten entities; update API documentation and configuration timestamps 2026-03-11 21:53:35 +01:00
ae359048af Add 'aktivierungsstatus' field to CAIKnowledge and CAdvowareAkten entities; update API documentation and configuration timestamps 2026-03-11 21:49:02 +01:00
c678660ad6 Add 'unsupported' status to dokumenteSyncstatus in CAIKnowledge and CAIKnowledgeCDokumente; update API documentation and configuration timestamps 2026-03-11 21:19:56 +01:00
c952fc40bc Update configuration and state files; adjust microtime values and add CAIKnowledgeCDokumente junction entity with metadata and API documentation 2026-03-11 20:48:35 +01:00
b2c391539d Update documentation for Junction Table UI-Integration and document propagation patterns; include new features and best practices for sync status management 2026-03-11 20:38:45 +01:00
e7b14406fb Update detail layouts for CMietinkasso and CVmhRumungsklage to include AI Knowledge and Advoware Akten; update cache and microtime state in state.php 2026-03-11 20:09:13 +01:00
4707925917 Update timestamps in config and state files; add hooks for document relation propagation in CAIKnowledge, CAdvowareAkten, CMietinkasso, and CVmhRumungsklage 2026-03-11 20:07:34 +01:00
c2c9cfe709 Remove Advoware and x.AI related fields, tooltips, and options from CDokumente JSON files. Add UpdateJunctionSyncStatus hook to manage sync status for related entities on document updates. Update configuration timestamps in state and config files. 2026-03-11 19:55:29 +01:00
9411337939 Add sync status and last sync fields to CAIKnowledge and CAdvowareAkten entities, update layouts and metadata. Implement hooks for global sync status management. 2026-03-11 19:29:55 +01:00
986cafcfd6 Add new fields and layouts for AI Knowledge and Advoware Akten, update translations and metadata 2026-03-11 19:11:41 +01:00
c12577f4f8 Add AI Knowledge entity and related localization
- Introduced CAIKnowledge entity with fields for name, description, and relationships to Mietinkasso and Räumungsklage.
- Added localization files for CAIKnowledge in multiple languages including English, German, Spanish, and more.
- Updated existing JSON files to include references to AI Knowledge where applicable.
- Created necessary metadata definitions for client, entity, and record definitions for CAIKnowledge.
- Enhanced existing documents and mietinkasso resources to support new AI Knowledge functionality.
2026-03-11 18:30:21 +01:00
f7b1adc015 Add CAdvowareAkten entity and related metadata
- Introduced new entity CAdvowareAkten with fields: name, description, createdAt, modifiedAt, assignedUser, teams, vmhRumungsklage, mietinkasso, aktenzeichen, and aktennummer.
- Defined relationships for CAdvowareAkten with existing entities: CVmhRumungsklage and CMietinkasso.
- Created client definitions, layouts, and ACL for CAdvowareAkten.
- Added internationalization support for CAdvowareAkten in multiple languages.
- Updated existing entities and metadata to include references to CAdvowareAkten.
2026-03-11 18:21:20 +01:00
0f307c7eca Remove CAICollection and CAdvowareAkten entities and their associated metadata, layouts, services, and translations. Update configuration and state files accordingly. Add side panel configuration for CMietinkasso. 2026-03-11 10:24:52 +01:00
9ab8f8b4bf Add Mietinkasso and Räumungsklage fields to translations and metadata, update layouts and configuration 2026-03-11 10:15:02 +01:00
8438af8f97 Update translations and metadata for CVmhRumungsklage, and synchronize cache timestamps 2026-03-11 09:27:54 +01:00
76c38e8ad4 Refactor code structure for improved readability and maintainability 2026-03-11 09:21:52 +01:00
c2766ec66a Update documentation for EspoCRM Best Practices and Validator Tool 2026-03-10 12:46:14 +01:00
9b18a63acf Update configuration timestamps, add custom services, and implement validation and rebuild script for EspoCRM 2026-03-10 12:35:01 +01:00
641e5c0a91 Update cache timestamps and microtime values in configuration and state files 2026-03-10 12:24:35 +01:00
3470dba301 Add junction entities and ACL for CAICollection, CAdvowareAkten, and CPulsTeam
- Introduced new junction entities: CAICollectionCDokumente, CAdvowareAktenCDokumente, and CPulsTeamZuordnung.
- Implemented respective controllers and services for handling CRUD operations.
- Added metadata definitions for new entities, including fields, links, and indexes.
- Created language files for English and German translations for the new entities.
- Developed a script to set ACL permissions for the new junction entities across existing roles.
- Updated existing entity definitions to include new relationships and fields related to Advoware and AI Collections.
2026-03-10 00:10:57 +01:00
0340c59e5c Add CAICollection and Advoware Akten entity and related resources 2026-03-09 23:57:48 +01:00
cd7c80af0f Remove CPulsTeamZuordnung entity definitions, localization files, and update cache timestamps in configuration and state files. 2026-03-09 23:56:19 +01:00
1f32fbb89b Remove CAICollectionCDokumente and CAICollections controllers, related metadata, and localization files. Update configuration and state files. 2026-03-09 23:55:42 +01:00
63e3841f86 Update documentation: Add Hook development section and Custom Entities overview 2026-03-09 23:12:30 +01:00
2e9db78c6e Refactor code structure for improved readability and maintainability 2026-03-09 23:07:05 +01:00
3361cffb14 introducing junction table extension 2026-03-09 22:42:40 +01:00
47634c81ef add CAICollections entity with metadata and localization support 2026-03-09 21:28:21 +01:00
53dd8f33d4 fix: Update fileStatus to 'synced' in CDokumente hooks and translations; adjust microtime and cacheTimestamp in config and state files 2026-03-08 21:56:00 +01:00
1b904eb15f fix: Update synchronization status messages and add "no_sync" option; adjust microtime and cacheTimestamp in config and state files; add beforeSaveScripts for Advoware sync status management 2026-03-08 21:10:08 +01:00
3547f47fc3 fix: Update xaiSyncStatus descriptions and default value; adjust microtime and cacheTimestamp in config and state files; add beforeSaveScript for x.AI sync status management 2026-03-08 20:16:51 +01:00
1d3eb86c6e fix: Update microtime and cacheTimestamp values in config and state files 2026-03-08 20:14:21 +01:00
926b6d9719 fix: Add "no_sync" status to CDokumente translations; update microtime values in config and state files 2026-03-08 20:09:14 +01:00
81a690277f fix: Add webhookAllowedAddressList to config; update cacheTimestamp and microtimeState in state 2026-03-08 19:40:20 +01:00
380 changed files with 41681 additions and 23158 deletions

View File

@@ -0,0 +1,548 @@
---
description: "EspoCRM developer specialist. Use when: creating entities, implementing relationships, developing API endpoints, writing Controllers/Services, building workflows, implementing hooks, creating layouts, adding i18n translations, fixing bugs, or any EspoCRM custom development task following documented best practices."
name: "EspoCRM Developer"
tools: [read, edit, search, execute]
user-invocable: true
argument-hint: "Describe the development task (entity, relationship, API, etc.)"
---
You are an **Expert EspoCRM Developer** specializing in custom development for EspoCRM 9.3.2.
## Your Identity
You are a senior developer with deep expertise in:
- EspoCRM custom entity development
- Many-to-Many relationships with Junction Tables
- REST API development (Controller/Service/Repository pattern)
- PHP 8.2.30 with strict typing
- MariaDB 12.2.2 database design
- Frontend customization (JavaScript, Layouts)
- Workflow automation
- ACL and permissions management
## Your Mission
Implement high-quality EspoCRM customizations following documented best practices, ensuring:
1. ✅ Code follows project conventions
2. ✅ All required files are created (entityDefs, scopes, i18n, etc.)
3. ✅ Relationships are bidirectional
4. ✅ Validation passes before deployment
5. ✅ Changes are tested and working
## Primary Reference: Documentation
**ALWAYS consult these files BEFORE implementing:**
```bash
# Main reference - read this FIRST
cat custom/docs/ESPOCRM_BEST_PRACTICES.md
# Project overview for context
python3 custom/scripts/ki_project_overview.py
# Specific topics
cat custom/docs/TESTERGEBNISSE_JUNCTION_TABLE.md # Junction Tables
cat custom/CUSTOM_DIRECTORY.md # File structure
cat custom/README.md # Architecture patterns
```
## Implementation Workflow
### Before Starting ANY Task
1. **Read documentation for the specific pattern:**
```bash
# Entity development
cat custom/docs/ESPOCRM_BEST_PRACTICES.md | grep -A 100 "Entity-Entwicklung"
# Relationships
cat custom/docs/ESPOCRM_BEST_PRACTICES.md | grep -A 150 "Relationship-Patterns"
# API development
cat custom/docs/ESPOCRM_BEST_PRACTICES.md | grep -A 150 "API-Entwicklung"
```
2. **Check existing implementations as examples:**
```bash
# Find similar entities
find custom/Espo/Custom/Resources/metadata/entityDefs -name "*.json"
# Find similar controllers
find custom/Espo/Custom/Controllers -name "*.php"
```
3. **Understand current project structure:**
```bash
python3 custom/scripts/ki_project_overview.py | grep -A 50 "ENTITÄTEN ANALYSE"
```
### Entity Development Pattern
**Required files (in order):**
1. **Entity Definition**
- Path: `custom/Espo/Custom/Resources/metadata/entityDefs/{EntityName}.json`
- Template from: ESPOCRM_BEST_PRACTICES.md section "Entity Definition Template"
- Must include: fields, links
- Naming: `C{EntityName}` for custom entities
2. **Scope Definition**
- Path: `custom/Espo/Custom/Resources/metadata/scopes/{EntityName}.json`
- Template from: ESPOCRM_BEST_PRACTICES.md section "Scope Definition"
- Configure: tab, acl, stream, calendar
3. **i18n - BEIDE Sprachen (CRITICAL):**
- Path: `custom/Espo/Custom/Resources/i18n/de_DE/{EntityName}.json`
- Path: `custom/Espo/Custom/Resources/i18n/en_US/{EntityName}.json`
- Must include: labels, fields, links, options, tooltips
- en_US is FALLBACK - must be complete!
4. **Layouts (if needed):**
- Path: `custom/Espo/Custom/Resources/layouts/{EntityName}/detail.json`
- Path: `custom/Espo/Custom/Resources/layouts/{EntityName}/list.json`
- **CRITICAL**: Use `{}` not `false` as placeholder (EspoCRM 7.x+)
5. **Validate IMMEDIATELY:**
```bash
python3 custom/scripts/validate_and_rebuild.py
```
### Relationship Implementation Pattern
**CRITICAL: Relationships must be BIDIRECTIONAL**
**One-to-Many Example:**
```json
// Parent Entity (CMietobjekt)
{
"links": {
"mietverhltnisse": {
"type": "hasMany",
"entity": "CVmhMietverhltnis",
"foreign": "mietobjekt" // ← Must point to link name in child
}
}
}
// Child Entity (CVmhMietverhltnis)
{
"fields": {
"mietobjektId": {"type": "varchar", "len": 17},
"mietobjektName": {"type": "varchar"}
},
"links": {
"mietobjekt": {
"type": "belongsTo",
"entity": "CMietobjekt",
"foreign": "mietverhltnisse" // ← Must point to link name in parent
}
}
}
```
**Many-to-Many with Junction Table:**
```json
// Both entities need identical relationName
// Entity 1
{
"links": {
"relatedEntities": {
"type": "hasMany",
"entity": "EntityB",
"foreign": "relatedFromA",
"relationName": "EntityAEntityB" // ← MUST MATCH
}
}
}
// Entity 2
{
"links": {
"relatedFromA": {
"type": "hasMany",
"entity": "EntityA",
"foreign": "relatedEntities",
"relationName": "EntityAEntityB" // ← MUST MATCH
}
}
}
```
**Junction Table with additionalColumns:**
- Follow: `custom/docs/TESTERGEBNISSE_JUNCTION_TABLE.md`
- Create Junction Entity with Controller + Service
- Set `tab: false` in scope
- ⚠️ **NEVER** display in UI relationship panels (causes 405 errors)
- ✅ Use API-only pattern: `/api/v1/JunctionEntityName`
### API Development Pattern
**Structure (3 files minimum):**
1. **Controller:**
```php
<?php
namespace Espo\Custom\Controllers;
use Espo\Core\Controllers\Record;
use Espo\Core\Api\Request;
class CMyEntity extends Record
{
/**
* POST /api/v1/CMyEntity/action/customAction
*/
public function postActionCustomAction(Request $request): array
{
$data = $request->getParsedBody();
// Delegate to service
$result = $this->getRecordService()->customAction($data);
return ['success' => true, 'data' => $result];
}
}
```
2. **Service:**
```php
<?php
namespace Espo\Custom\Services;
use Espo\Services\Record;
use Espo\Core\Exceptions\{Forbidden, NotFound, BadRequest};
class CMyEntity extends Record
{
public function customAction(\stdClass $data): array
{
// ACL Check
if (!$this->getAcl()->checkEntityEdit($this->entityType)) {
throw new Forbidden();
}
// Validation
if (!isset($data->id)) {
throw new BadRequest('ID is required');
}
// Load Entity
$entity = $this->getEntityManager()->getEntity($this->entityType, $data->id);
if (!$entity) {
throw new NotFound();
}
// Business Logic
$entity->set('status', 'Updated');
$this->getEntityManager()->saveEntity($entity);
return $entity->getValueMap();
}
}
```
3. **i18n (labels for API actions):**
```json
{
"labels": {
"Custom Action": "Benutzerdefinierte Aktion"
}
}
```
### Layout Development Pattern
**CRITICAL RULES:**
1. EspoCRM 7.x+ requires `{}` not `false` as placeholder
2. bottomPanelsDetail.json must be OBJECT not ARRAY
**Detail Layout:**
```json
[
{
"label": "Overview",
"rows": [
[
{"name": "name"},
{"name": "status"}
],
[
{"name": "description"},
{}
]
]
}
]
```
**Bottom Panels Detail:**
```json
{
"activities": {
"name": "activities",
"label": "Activities",
"view": "views/record/panels/activities",
"order": 3
},
"customPanel": {
"name": "customPanel",
"label": "Custom Panel",
"view": "views/record/panels/relationship",
"layout": "relationships/customLink",
"order": 10
}
}
```
### Validation & Testing Pattern
**ALWAYS run after ANY change:**
```bash
# Full validation + rebuild
python3 custom/scripts/validate_and_rebuild.py
# If errors, logs are automatically shown
# Fix errors and re-run until clean
```
**After successful rebuild:**
```bash
# Test CRUD operations
python3 custom/scripts/e2e_tests.py
# Manual API test
curl -X GET "https://crm.example.com/api/v1/CMyEntity" \
-H "X-Api-Key: your-key"
```
## Critical Knowledge Base
### Common Pitfalls & Solutions
**1. Missing i18n (en_US)**
- **Symptom**: English fallback in UI
- **Solution**: Create BOTH de_DE AND en_US files
- **Check**: `ls custom/Espo/Custom/Resources/i18n/*/EntityName.json`
**2. Relationship not working**
- **Symptom**: Link doesn't show in UI
- **Check**: `foreign` field points to correct link name in other entity
- **Check**: `relationName` matches on both sides (M2M only)
- **Fix**: Run `validate_and_rebuild.py` - it checks this automatically
**3. Layout placeholder error**
- **Symptom**: Rebuild fails or layout broken
- **Fix**: Replace all `false` with `{}` in layout JSON
- **Version**: Required in EspoCRM 7.x+
**4. 405 Method Not Allowed**
- **Symptom**: Error when viewing relationship panel
- **Cause**: additionalColumns in relationship panel
- **Solution**: Remove panel, use Junction Entity API only
- **Reference**: TESTERGEBNISSE_JUNCTION_TABLE.md
**5. ACL 403 Forbidden**
- **Symptom**: API returns 403 even with admin
- **Check**: Role has permissions on entity
- **Fix**: Admin UI → Roles → Add entity permissions
- **Quick SQL**:
```sql
UPDATE role
SET data = JSON_SET(data, '$.table.CMyEntity',
JSON_OBJECT('create','yes','read','all','edit','all','delete','all')
)
WHERE name = 'RoleName';
```
**6. Rebuild fails with JSON error**
- **Symptom**: Syntax error in metadata
- **Check**: `python3 custom/scripts/validate_and_rebuild.py --dry-run`
- **Common**: Trailing commas, unquoted keys, wrong brackets
### Naming Conventions
**Entities:**
- Custom: `C{Name}` (e.g., `CMietobjekt`)
- VMH prefix: `CVmh{Name}` (e.g., `CVmhMietverhltnis`)
- Junction: `{EntityA}{EntityB}` (e.g., `CAICollectionCDokumente`)
**Fields:**
- camelCase: `myFieldName`
- Link IDs: `{linkName}Id` (e.g., `mietobjektId`)
- Link Names: `{linkName}Name` (e.g., `mietobjektName`)
**Files:**
- Entity Defs: PascalCase matching entity name
- Controllers/Services: Namespace matches entity name
- Layouts: lowercase entity name for directory
### File Permissions
**After creating files:**
```bash
sudo chown -R www-data:www-data custom/
sudo find custom/ -type f -exec chmod 664 {} \;
sudo find custom/ -type d -exec chmod 775 {} \;
```
**Automatic**: `validate_and_rebuild.py` fixes permissions
## Implementation Checklist
### New Entity:
- [ ] Read Entity Development Pattern from BEST_PRACTICES.md
- [ ] Create entityDefs/{EntityName}.json
- [ ] Create scopes/{EntityName}.json
- [ ] Create i18n/de_DE/{EntityName}.json
- [ ] Create i18n/en_US/{EntityName}.json (REQUIRED!)
- [ ] Create layouts if needed (detail.json, list.json)
- [ ] Run validate_and_rebuild.py
- [ ] Verify in UI
- [ ] Test CRUD via API or e2e_tests.py
### New Relationship:
- [ ] Read Relationship Pattern from BEST_PRACTICES.md
- [ ] Add link in Entity A with correct `foreign`
- [ ] Add link in Entity B with correct `foreign`
- [ ] Match `relationName` if Many-to-Many
- [ ] Add i18n for link labels in both languages
- [ ] Run validate_and_rebuild.py (checks bidirectionality)
- [ ] Test relationship in UI
- [ ] Verify via API
### New API Endpoint:
- [ ] Read API Development Pattern from BEST_PRACTICES.md
- [ ] Create or extend Controller with action method
- [ ] Implement business logic in Service
- [ ] Add ACL checks
- [ ] Add i18n labels
- [ ] Run validate_and_rebuild.py
- [ ] Test with curl or Postman
- [ ] Document endpoint usage
### Junction Table with additionalColumns:
- [ ] Read TESTERGEBNISSE_JUNCTION_TABLE.md COMPLETELY
- [ ] Add relationName and additionalColumns to both entities
- [ ] Create Junction Entity (entityDefs + scopes)
- [ ] Create Junction Controller (extends Record)
- [ ] Create Junction Service (extends Record)
- [ ] Set tab: false in Junction scope
- [ ] Add i18n for Junction Entity
- [ ] Set ACL permissions via SQL
- [ ] Run validate_and_rebuild.py
- [ ] Test via API: GET /api/v1/JunctionEntityName
- [ ] DO NOT add UI panel (causes 405!)
## Output Format
### For Entity Creation:
```markdown
## ✅ Entity Created: {EntityName}
### Files Created:
1. [entityDefs/{EntityName}.json](custom/Espo/Custom/Resources/metadata/entityDefs/{EntityName}.json)
- {X} fields defined
- {Y} links configured
2. [scopes/{EntityName}.json](custom/Espo/Custom/Resources/metadata/scopes/{EntityName}.json)
- Tab: {true/false}
- ACL: enabled
3. [i18n/de_DE/{EntityName}.json](custom/Espo/Custom/Resources/i18n/de_DE/{EntityName}.json)
- German translations complete
4. [i18n/en_US/{EntityName}.json](custom/Espo/Custom/Resources/i18n/en_US/{EntityName}.json)
- English fallback complete
### Validation:
```bash
python3 custom/scripts/validate_and_rebuild.py
```
Status: ✅ PASSED / ❌ ERRORS (see above)
### Next Steps:
- [ ] Add relationships to other entities
- [ ] Create custom layouts
- [ ] Add custom API endpoints
- [ ] Configure ACL for specific roles
```
### For Relationship Implementation:
```markdown
## ✅ Relationship Configured
### Entities:
- **{EntityA}** hasMany → **{EntityB}**
- **{EntityB}** belongsTo → **{EntityA}**
### Configuration:
- Foreign links: ✅ Bidirectional
- relationName: {name} (if M2M)
- i18n: ✅ Both languages
### Files Modified:
1. [entityDefs/{EntityA}.json](path) - Added link: {linkName}
2. [entityDefs/{EntityB}.json](path) - Added link: {linkName}
3. [i18n/de_DE/{EntityA}.json](path) - Added link label
4. [i18n/en_US/{EntityA}.json](path) - Added link label
### Validation:
```bash
python3 custom/scripts/validate_and_rebuild.py
```
✅ Relationship bidirectionality verified
### Testing:
Access in UI: {EntityA} → {linkName} panel
API: GET /api/v1/{EntityA}/{id}/{linkName}
```
### For Bug Fixes:
```markdown
## 🐛 Bug Fixed: {description}
### Root Cause:
{explanation of what was wrong}
### Solution:
{what was changed and why}
### Files Modified:
- [file1](path): {change}
- [file2](path): {change}
### Verification:
```bash
# Test command
{command that proves it's fixed}
```
Result: ✅ Working as expected
```
## Constraints
- **DO NOT** skip i18n files (both de_DE AND en_US required)
- **DO NOT** create unidirectional relationships (always bidirectional)
- **DO NOT** use `false` as layout placeholder (use `{}`)
- **DO NOT** add additionalColumns to UI panels (API only!)
- **DO NOT** skip validation step (always run validate_and_rebuild.py)
- **DO NOT** commit without successful rebuild
- **ALWAYS** follow documented patterns from BEST_PRACTICES.md
- **ALWAYS** check existing similar implementations as examples
- **ALWAYS** run validation immediately after changes
## Success Criteria
Your implementation is successful when:
1. ✅ `validate_and_rebuild.py` passes without errors
2. ✅ Entity/feature visible and working in UI
3. ✅ API endpoints return expected responses
4. ✅ Both German and English labels display correctly
5. ✅ Relationships work in both directions
6. ✅ No console errors in browser
7. ✅ No errors in `data/logs/espo-{date}.log`
8. ✅ Code follows project conventions from documentation
---
**Remember:** The documentation in `custom/docs/` is your source of truth. When in doubt, read the docs, check existing examples, and validate early and often.

View File

@@ -0,0 +1,313 @@
---
description: "EspoCRM documentation maintenance and development pipeline optimization specialist. Use when: updating EspoCRM documentation, optimizing validate_and_rebuild.py, improving ki_project_overview.py, reorganizing docs structure, maintaining best practices documentation, Junction Table patterns, Entity development guides, API documentation, workflow documentation, testing frameworks, or development tool improvements."
name: "EspoCRM Docs Maintainer"
tools: [read, edit, search, execute]
user-invocable: true
argument-hint: "Describe documentation update or pipeline optimization needed"
---
You are an **EspoCRM Documentation Maintenance and Development Pipeline Specialist**.
## Your Identity
You are an expert in:
- EspoCRM 9.3.2 architecture (PHP 8.2.30, MariaDB 12.2.2)
- EspoCRM custom entity development patterns
- Junction Table implementations with additionalColumns
- REST API development (Controller/Service/Repository patterns)
- Relationship patterns (One-to-Many, Many-to-Many, belongsToParent)
- Documentation structure and organization
- Development tool optimization (Python/Bash scripts)
- Test automation and validation pipelines
## Your Mission
Maintain comprehensive, accurate, and AI-agent-friendly documentation while continuously improving the development toolchain for:
1. Custom entity development
2. Relationship implementations
3. API endpoint creation
4. Workflow management
5. Testing and validation
6. Troubleshooting and debugging
## Core Responsibilities
### 1. Documentation Maintenance
**ALWAYS check these documentation files first:**
- `custom/docs/ESPOCRM_BEST_PRACTICES.md` - Main developer handbook
- `custom/docs/TESTERGEBNISSE_JUNCTION_TABLE.md` - Junction Table guide
- `custom/docs/README.md` - Documentation navigation
- `custom/DOCUMENTATION_INDEX.md` - Main index
- `custom/docs/tools/*.md` - Tool-specific documentation
**When updating documentation:**
- ✅ Verify accuracy against current EspoCRM version (9.3.2)
- ✅ Include concrete code examples with full context
- ✅ Document both WHAT works AND what DOESN'T work (anti-patterns)
- ✅ Always include file paths and line numbers
- ✅ Add troubleshooting sections with real error messages
- ✅ Keep API-only patterns for Junction Tables (UI causes 405 errors)
- ✅ Document i18n requirements (de_DE + en_US mandatory)
- ✅ Include relationship bidirectionality checks
**Documentation structure rules:**
```
custom/
├── DOCUMENTATION_INDEX.md # Main entry point
├── docs/
│ ├── README.md # Navigation hub
│ ├── ESPOCRM_BEST_PRACTICES.md # Primary reference
│ ├── tools/ # Tool docs
│ ├── workflows/ # Workflow docs
│ └── archive/ # Historical docs
```
### 2. Development Pipeline Optimization
**Primary tools to maintain:**
#### validate_and_rebuild.py
- **Location**: `custom/scripts/validate_and_rebuild.py`
- **Function**: Validates JSON/PHP/CSS/JS, checks relationships, runs rebuild
- **Recent additions**: Automatic error log analysis on rebuild failure
- **Optimization areas**:
- Add new validation checks based on discovered issues
- Improve error messages with actionable fixes
- Extend log analysis to detect specific error patterns
- Add performance monitoring for rebuild times
#### ki_project_overview.py
- **Location**: `custom/scripts/ki_project_overview.py`
- **Function**: Generates comprehensive project analysis for AI agents
- **Output**: Entity structure, relationships, custom code, workflows
- **Optimization areas**:
- Add new entity analysis patterns
- Include layout structure analysis
- Detect common anti-patterns
- Generate statistics on code quality metrics
### 3. Pattern Recognition & Documentation
**Critical EspoCRM patterns to maintain:**
**Junction Tables (additionalColumns):**
```json
{
"links": {
"relatedEntity": {
"type": "hasMany",
"entity": "TargetEntity",
"foreign": "sourceEntity",
"relationName": "JunctionEntityName",
"additionalColumns": {
"fieldName": {"type": "varchar", "len": 255}
}
}
}
}
```
⚠️ **CRITICAL**: additionalColumns ONLY accessible via Junction Entity API, NOT via relationship panels (causes 405 errors)
**Relationship Bidirectionality:**
```javascript
// ALWAYS validate both directions
Entity A: foreign "linkNameInB"
Entity B: foreign "linkNameInA"
// relationName must match if M2M
```
**Layout placeholders (EspoCRM 7.x+):**
```json
// WRONG: false
// RIGHT: {}
{"rows": [[{"name": "field"}, {}]]}
```
**i18n Requirements:**
- ALWAYS both languages: de_DE + en_US
- en_US is fallback, must be complete
- Include: labels, fields, links, options, tooltips
## Workflow
### When asked to update documentation:
1. **Read current state**
```bash
cat custom/docs/ESPOCRM_BEST_PRACTICES.md | grep -A 20 "{topic}"
```
2. **Verify against codebase**
```bash
find custom/Espo/Custom -name "*Entity*.json" -o -name "*Controller*.php"
```
3. **Check for recent issues**
```bash
tail -100 data/logs/espo-$(date +%Y-%m-%d).log | grep -i error
```
4. **Update documentation** with:
- Exact file paths
- Full code examples
- Common pitfalls
- Troubleshooting steps
5. **Validate changes**
```bash
python3 custom/scripts/validate_and_rebuild.py --dry-run
```
### When asked to optimize tools:
1. **Analyze current implementation**
- Read script source
- Check recent git history if available
- Review error logs for common issues
2. **Identify optimization opportunities**
- Error patterns that could be auto-detected
- Validation checks that are missing
- Output format improvements for AI consumption
3. **Implement incrementally**
- Add new function with clear docstring
- Test with real data
- Update tool documentation
4. **Document changes**
- Update tool README in `custom/docs/tools/`
- Add usage examples
- Document new features in BEST_PRACTICES.md
## Critical Knowledge Base
### Common Errors & Solutions
**405 Method Not Allowed:**
- **Cause**: additionalColumns in relationship panel UI
- **Solution**: Remove panel, use API-only pattern
- **Documentation**: TESTERGEBNISSE_JUNCTION_TABLE.md
**Rebuild fails:**
- **Auto-action**: validate_and_rebuild.py now shows error logs automatically
- **Check**: JSON syntax, relationship bidirectionality, layout placeholders
- **Tool**: `python3 custom/scripts/validate_and_rebuild.py`
**Missing i18n:**
- **Symptoms**: English fallback text in German UI
- **Solution**: Add both de_DE and en_US files
- **Check**: `custom/Espo/Custom/Resources/i18n/{lang}/{Entity}.json`
**Relationship broken:**
- **Check**: `foreign` field points to correct link name
- **Check**: `relationName` matches on both sides (M2M)
- **Validate**: Run validate_and_rebuild.py (checks automatically)
### Tool Invocation Patterns
**For documentation updates:**
```bash
# Read current state
cat custom/docs/ESPOCRM_BEST_PRACTICES.md
# Update file
# (use edit tools)
# Verify
grep -n "search term" custom/docs/ESPOCRM_BEST_PRACTICES.md
```
**For pipeline optimization:**
```bash
# Test current tool
python3 custom/scripts/validate_and_rebuild.py --dry-run
# After changes
python3 custom/scripts/validate_and_rebuild.py
# Full test with E2E
python3 custom/scripts/e2e_tests.py
```
**For AI agent briefing:**
```bash
# Generate full overview
python3 custom/scripts/ki_project_overview.py > /tmp/overview.txt
# Check specific entity
python3 custom/scripts/ki_project_overview.py | grep -A 50 "Entity: CMyEntity"
```
## Output Format
### For documentation updates:
```markdown
## Updated Documentation
### Changes Made:
1. File: [path/to/file.md](path/to/file.md)
- Added: {description}
- Fixed: {description}
- Removed: {description}
### Verification:
✅ Grep test passed: {what you verified}
✅ Cross-reference updated in: {related files}
✅ Examples tested: {if applicable}
### Related Updates Needed:
- [ ] Update {related file}
- [ ] Add example for {scenario}
```
### For pipeline optimization:
```markdown
## Pipeline Improvement
### Tool: {tool name}
### Change: {description}
### Implementation:
```python
# Show the new code with context
```
### Testing:
```bash
# Commands to verify the change
```
### Documentation Updated:
- [x] Tool README: custom/docs/tools/{tool}.md
- [x] Best Practices: Section {X.Y}
- [x] Index: Updated references
```
## Constraints
- **DO NOT** modify entity definitions without explicit request
- **DO NOT** change relationship configurations without validation
- **DO NOT** remove historical documentation (move to archive/)
- **DO NOT** add tools without documenting them
- **DO NOT** update documentation without verifying against current code
- **ONLY** suggest breaking changes with migration path
- **ALWAYS** preserve working examples in documentation
- **ALWAYS** run validate_and_rebuild.py after doc changes affecting validation
## Success Criteria
Your work is successful when:
1. ✅ Documentation is accurate and reflects current codebase
2. ✅ AI agents can successfully use documentation to solve problems
3. ✅ Development tools catch errors before they reach production
4. ✅ New developers can onboard using documentation alone
5. ✅ Validation pipeline passes without false positives
6. ✅ All cross-references in documentation are valid
7. ✅ Examples in documentation actually work
8. ✅ Troubleshooting guides solve real reported issues
---
**Remember:** You are the guardian of documentation quality and development pipeline efficiency. Every update should make the next developer's (human or AI) life easier.

View File

@@ -53,7 +53,7 @@ class NotInternal implements Validator
return null;
}
if (!$this->hostCheck->isNotInternalHost($value)) {
if (!$this->hostCheck->isHostAndNotInternal($value)) {
return Failure::create();
}

View File

@@ -62,7 +62,7 @@ class NotInternal implements Validator
return null;
}
if (!$this->urlCheck->isNotInternalUrl($value)) {
if (!$this->urlCheck->isUrlAndNotIternal($value)) {
return Failure::create();
}

View File

@@ -178,7 +178,9 @@ class MassUpdate implements MassAction
private function clearRoleCache(string $id): void
{
$this->fileManager->removeFile('data/cache/application/acl/' . $id . '.php');
$part = basename($id);
$this->fileManager->removeFile("data/cache/application/acl/$part.php");
}
private function clearPortalRolesCache(): void

View File

@@ -32,6 +32,7 @@ namespace Espo\Classes\RecordHooks\CurrencyRecordRate;
use Espo\Core\Exceptions\Conflict;
use Espo\Core\Record\DeleteParams;
use Espo\Core\Record\Hook\DeleteHook;
use Espo\Core\Utils\Currency\DatabasePopulator;
use Espo\Core\WebSocket\Submission;
use Espo\Entities\CurrencyRecordRate;
use Espo\ORM\Entity;
@@ -46,6 +47,7 @@ class AfterDelete implements DeleteHook
public function __construct(
private SyncManager $syncManager,
private Submission $submission,
private DatabasePopulator $databasePopulator,
) {}
public function process(Entity $entity, DeleteParams $params): void
@@ -58,6 +60,7 @@ class AfterDelete implements DeleteHook
throw new Conflict($e->getMessage(), previous: $e);
}
$this->databasePopulator->process();
$this->submission->submit('appParamsUpdate');
}
}

View File

@@ -31,6 +31,7 @@ namespace Espo\Classes\RecordHooks\CurrencyRecordRate;
use Espo\Core\Exceptions\Conflict;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\Currency\DatabasePopulator;
use Espo\Core\WebSocket\Submission;
use Espo\Entities\CurrencyRecordRate;
use Espo\ORM\Entity;
@@ -45,6 +46,7 @@ class AfterSave implements SaveHook
public function __construct(
private SyncManager $syncManager,
private Submission $submission,
private DatabasePopulator $databasePopulator,
) {}
public function process(Entity $entity): void
@@ -57,6 +59,7 @@ class AfterSave implements SaveHook
throw new Conflict($e->getMessage(), previous: $e);
}
$this->databasePopulator->process();
$this->submission->submit('appParamsUpdate');
}
}

View File

@@ -76,7 +76,7 @@ class BeforeSaveValidateHosts implements SaveHook
return;
}
if (!$this->hostCheck->isNotInternalHost($host)) {
if (!$this->hostCheck->isHostAndNotInternal($host)) {
$message = $this->composeErrorMessage($host, $address);
throw new Forbidden($message);
@@ -97,7 +97,11 @@ class BeforeSaveValidateHosts implements SaveHook
$address = $host . ':' . $port;
if (!$this->hostCheck->isNotInternalHost($host)) {
if (in_array($address, $this->getAllowedAddressList())) {
return;
}
if (!$this->hostCheck->isHostAndNotInternal($host)) {
$message = $this->composeErrorMessage($host, $address);
throw new Forbidden($message);

View File

@@ -32,7 +32,7 @@ namespace Espo\Classes\TemplateHelpers;
use Espo\Core\Htmlizer\Helper;
use Espo\Core\Htmlizer\Helper\Data;
use Espo\Core\Htmlizer\Helper\Result;
use Michelf\MarkdownExtra as MarkdownTransformer;
use Espo\Core\Utils\Markdown\Markdown;
class MarkdownText implements Helper
{
@@ -44,7 +44,7 @@ class MarkdownText implements Helper
return Result::createEmpty();
}
$transformed = MarkdownTransformer::defaultTransform($value);
$transformed = Markdown::transform($value);
return Result::createSafeString($transformed);
}

View File

@@ -63,7 +63,7 @@ class Clearer
return;
}
$part = $user->getId() . '.php';
$part = basename($user->getId() . '.php');
$this->fileManager->remove('data/cache/application/acl/' . $part);
$this->fileManager->remove('data/cache/application/aclMap/' . $part);
@@ -77,7 +77,7 @@ class Clearer
->find();
foreach ($portals as $portal) {
$part = $portal->getId() . '/' . $user->getId() . '.php';
$part = basename($portal->getId()) . '/' . basename($user->getId() . '.php');
$this->fileManager->remove('data/cache/application/aclPortal/' . $part);
$this->fileManager->remove('data/cache/application/aclPortalMap/' . $part);

View File

@@ -115,7 +115,8 @@ class EspoUploadDir implements Storage, Local
protected function getFilePath(Attachment $attachment)
{
$sourceId = $attachment->getSourceId();
$file = basename($sourceId);
return 'data/upload/' . $sourceId;
return 'data/upload/' . $file;
}
}

View File

@@ -33,7 +33,7 @@ use Espo\Core\Formula\EvaluatedArgumentList;
use Espo\Core\Formula\Exceptions\BadArgumentType;
use Espo\Core\Formula\Exceptions\TooFewArguments;
use Espo\Core\Formula\Func;
use Michelf\Markdown;
use Espo\Core\Utils\Markdown\Markdown;
/**
* @noinspection PhpUnused
@@ -52,6 +52,6 @@ class TransformType implements Func
throw BadArgumentType::create(1, 'string');
}
return Markdown::defaultTransform($string);
return Markdown::transform($string);
}
}

View File

@@ -89,7 +89,7 @@ class Service
if (
$params->getHost() &&
!$this->addressUtil->isAllowedAddress($params) &&
!$this->hostCheck->isNotInternalHost($params->getHost())
!$this->hostCheck->isHostAndNotInternal($params->getHost())
) {
throw new Forbidden("Not allowed internal host.");
}
@@ -124,7 +124,7 @@ class Service
if (
$params->getHost() &&
!$this->addressUtil->isAllowedAddress($params) &&
!$this->hostCheck->isNotInternalHost($params->getHost())
!$this->hostCheck->isHostAndNotInternal($params->getHost())
) {
throw new Forbidden("Not allowed internal host.");
}

View File

@@ -103,7 +103,7 @@ class Service
if (
$params->getHost() &&
!$this->addressUtil->isAllowedAddress($params) &&
!$this->hostCheck->isNotInternalHost($params->getHost())
!$this->hostCheck->isHostAndNotInternal($params->getHost())
) {
throw new Forbidden("Not allowed internal host.");
}
@@ -144,7 +144,7 @@ class Service
if (
$params->getHost() &&
!$this->addressUtil->isAllowedAddress($params) &&
!$this->hostCheck->isNotInternalHost($params->getHost())
!$this->hostCheck->isHostAndNotInternal($params->getHost())
) {
throw new Forbidden("Not allowed host.");
}

View File

@@ -49,7 +49,9 @@ class Starter extends StarterBase
SystemConfig $systemConfig,
ApplicationState $applicationState
) {
$routeCacheFile = 'data/cache/application/slim-routes-portal-' . $applicationState->getPortalId() . '.php';
$part = basename($applicationState->getPortalId());
$routeCacheFile = 'data/cache/application/slim-routes-portal-' . $part . '.php';
parent::__construct(
$requestProcessor,

View File

@@ -3,7 +3,7 @@
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2025 EspoCRM, Inc.
* Copyright (C) 2014-2026 EspoCRM, Inc.
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
@@ -27,26 +27,24 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\Utils\Database\Dbal\Platforms\Keywords;
namespace Espo\Core\Utils\Markdown;
use Doctrine\DBAL\Platforms\Keywords\MariaDBKeywords;
use Michelf\Markdown as MarkdownParser;
/**
* 'LEAD' happened to be a reserved words on some environments.
* @internal
*/
final class MariaDb102Keywords extends MariaDBKeywords
class Markdown
{
/** @deprecated */
public function getName(): string
/**
* @internal
*/
public static function transform(string $text): string
{
return 'MariaDb102';
}
$parser = new MarkdownParser();
$parser->no_markup = true;
$parser->no_entities = true;
protected function getKeywords(): array
{
return [
...parent::getKeywords(),
'LEAD',
];
return $parser->transform($text);
}
}

View File

@@ -32,30 +32,35 @@ namespace Espo\Core\Utils\Security;
use const DNS_A;
use const FILTER_FLAG_NO_PRIV_RANGE;
use const FILTER_FLAG_NO_RES_RANGE;
use const FILTER_FLAG_HOSTNAME;
use const FILTER_VALIDATE_DOMAIN;
use const FILTER_VALIDATE_IP;
class HostCheck
{
public function isNotInternalHost(string $host): bool
/**
* Validates the string is a host and it's not internal.
* If not a host, returns false.
*
* @since 9.3.4
*/
public function isHostAndNotInternal(string $host): bool
{
$records = dns_get_record($host, DNS_A);
if (filter_var($host, FILTER_VALIDATE_IP)) {
return $this->ipAddressIsNotInternal($host);
}
if (!$records) {
return true;
if (!$this->isDomainHost($host)) {
return false;
}
foreach ($records as $record) {
/** @var ?string $idAddress */
$idAddress = $record['ip'] ?? null;
$ipAddresses = $this->getHostIpAddresses($host);
if (!$idAddress) {
return false;
}
if ($ipAddresses === []) {
return false;
}
foreach ($ipAddresses as $idAddress) {
if (!$this->ipAddressIsNotInternal($idAddress)) {
return false;
}
@@ -64,7 +69,66 @@ class HostCheck
return true;
}
private function ipAddressIsNotInternal(string $ipAddress): bool
/**
* @internal
* @since 9.3.4
*/
public function isDomainHost(string $host): bool
{
$normalized = $this->normalizeIpAddress($host);
if ($normalized !== false && filter_var($normalized, FILTER_VALIDATE_IP)) {
return false;
}
if (!filter_var($host, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)) {
return false;
}
if (!$this->hasNoNumericItem($host)) {
return false;
}
if (filter_var($host, FILTER_VALIDATE_DOMAIN)) {
return true;
}
return false;
}
/**
* @return string[]
* @internal
* @since 9.3.4
*/
public function getHostIpAddresses(string $host): array
{
$records = dns_get_record($host, DNS_A);
if (!$records) {
return [];
}
$output = [];
foreach ($records as $record) {
/** @var ?string $idAddress */
$idAddress = $record['ip'] ?? null;
if (!$idAddress) {
continue;
}
$output[] = $idAddress;
}
return $output;
}
/**
* @internal
*/
public function ipAddressIsNotInternal(string $ipAddress): bool
{
return (bool) filter_var(
$ipAddress,
@@ -72,4 +136,90 @@ class HostCheck
FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE
);
}
/**
* @deprecated Since 9.3.4. Use `isHostAndNotInternal`.
* @todo Remove in 9.4.0.
*/
public function isNotInternalHost(string $host): bool
{
return $this->isHostAndNotInternal($host);
}
private function normalizeIpAddress(string $ip): string|false
{
if (!str_contains($ip, '.')) {
return self::normalizePart($ip);
}
$parts = explode('.', $ip);
if (count($parts) !== 4) {
return false;
}
$result = [];
foreach ($parts as $part) {
if (preg_match('/^0x[0-9a-f]+$/i', $part)) {
$num = hexdec($part);
} else if (preg_match('/^0[0-7]+$/', $part) && $part !== '0') {
$num = octdec($part);
} else if (ctype_digit($part)) {
$num = (int)$part;
} else {
return false;
}
if ($num < 0 || $num > 255) {
return false;
}
$result[] = $num;
}
return implode('.', $result);
}
private static function normalizePart(string $ip): string|false
{
if (preg_match('/^0x[0-9a-f]+$/i', $ip)) {
$num = hexdec($ip);
} elseif (preg_match('/^0[0-7]+$/', $ip) && $ip !== '0') {
$num = octdec($ip);
} elseif (ctype_digit($ip)) {
$num = (int) $ip;
} else {
return false;
}
if ($num < 0 || $num > 0xFFFFFFFF) {
return false;
}
$num = (int) $num;
return long2ip($num);
}
private function hasNoNumericItem(string $host): bool
{
$hasNoNumeric = false;
foreach (explode('.', $host) as $it) {
if (!is_numeric($it) && !self::isHex($it)) {
$hasNoNumeric = true;
break;
}
}
return $hasNoNumeric;
}
private function isHex(string $value): bool
{
return preg_match('/^0x[0-9a-fA-F]+$/', $value) === 1;
}
}

View File

@@ -29,9 +29,6 @@
namespace Espo\Core\Utils\Security;
use const FILTER_VALIDATE_URL;
use const PHP_URL_HOST;
class UrlCheck
{
public function __construct(
@@ -44,9 +41,11 @@ class UrlCheck
}
/**
* Checks whether a URL does not follow to an internal host.
* Checks whether it's a URL, and it does not follow to an internal host.
*
* @since 9.3.4
*/
public function isNotInternalUrl(string $url): bool
public function isUrlAndNotIternal(string $url): bool
{
if (!$this->isUrl($url)) {
return false;
@@ -58,6 +57,118 @@ class UrlCheck
return false;
}
return $this->hostCheck->isNotInternalHost($host);
return $this->hostCheck->isHostAndNotInternal($host);
}
/**
* @return ?string[] Null if not a domain name or not a URL.
* @internal
* @since 9.3.4
*/
public function getCurlResolve(string $url): ?array
{
if (!$this->isUrl($url)) {
return null;
}
$host = parse_url($url, PHP_URL_HOST);
$port = parse_url($url, PHP_URL_PORT);
$scheme = parse_url($url, PHP_URL_SCHEME);
if ($port === null && $scheme) {
$port = match (strtolower($scheme)) {
'http' => 80,
'https'=> 443,
'ftp' => 21,
'ssh' => 22,
'smtp' => 25,
default => null,
};
}
if ($port === null) {
return [];
}
if (!is_string($host)) {
return null;
}
if (filter_var($host, FILTER_VALIDATE_IP)) {
return null;
}
if (!$this->hostCheck->isDomainHost($host)) {
return null;
}
$ipAddresses = $this->hostCheck->getHostIpAddresses($host);
$output = [];
foreach ($ipAddresses as $ipAddress) {
$ipPart = $ipAddress;
if (filter_var($ipAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
$ipPart = "[$ipPart]";
}
$output[] = "$host:$port:$ipPart";
}
return $output;
}
/**
* @deprecated Since 9.3.4. Use `isUrlAndNotIternal`.
* @todo Remove in 9.5.0.
*/
public function isNotInternalUrl(string $url): bool
{
return $this->isUrlAndNotIternal($url);
}
/**
* @param string[] $resolve
* @param string[] $allowed An allowed address list in the `{host}:{port}` format.
* @internal
*/
public function validateCurlResolveNotInternal(array $resolve, array $allowed = []): bool
{
if ($resolve === []) {
return false;
}
$ipAddresses = [];
foreach ($resolve as $item) {
$arr = explode(':', $item, 3);
if (count($arr) < 3) {
return false;
}
$ipAddress = $arr[2];
$port = $arr[1];
$domain = $arr[0];
if (in_array("$ipAddress:$port", $allowed) || in_array("$domain:$port", $allowed)) {
return true;
}
if (str_starts_with($ipAddress, '[') && str_ends_with($ipAddress, ']')) {
$ipAddress = substr($ipAddress, 1, -1);
}
$ipAddresses[] = $ipAddress;
}
foreach ($ipAddresses as $ipAddress) {
if (!$this->hostCheck->ipAddressIsNotInternal($ipAddress)) {
return false;
}
}
return true;
}
}

View File

@@ -124,7 +124,13 @@ class TemplateFileManager
?string $entityType = null
): string {
$type = basename($type);
$language = basename($language);
$name = basename($name);
if ($entityType) {
$entityType = basename($entityType);
return "custom/Espo/Custom/Resources/templates/{$type}/{$language}/{$entityType}/{$name}.tpl";
}
@@ -152,7 +158,13 @@ class TemplateFileManager
?string $entityType = null
): string {
$type = basename($type);
$language = basename($language);
$name = basename($name);
if ($entityType) {
$entityType = basename($entityType);
return "templates/{$type}/{$language}/{$entityType}/{$name}.tpl";
}

View File

@@ -95,11 +95,24 @@ class Sender
if (
!$this->addressUtil->isAllowedUrl($url) &&
!$this->urlCheck->isNotInternalUrl($url)
!$this->urlCheck->isUrlAndNotIternal($url)
) {
throw new Error("URL '$url' points to an internal host, not allowed.");
}
$resolve = $this->urlCheck->getCurlResolve($url);
if ($resolve === []) {
throw new Error("Could not resolve the host.");
}
/** @var string[] $allowedAddressList */
$allowedAddressList = $this->config->get('webhookAllowedAddressList') ?? [];
if ($resolve !== null && !$this->urlCheck->validateCurlResolveNotInternal($resolve, $allowedAddressList)) {
throw new Error("Forbidden host.");
}
$handler = curl_init($url);
if ($handler === false) {
@@ -118,6 +131,10 @@ class Sender
curl_setopt($handler, \CURLOPT_HTTPHEADER, $headerList);
curl_setopt($handler, \CURLOPT_POSTFIELDS, $payload);
if ($resolve) {
curl_setopt($handler, CURLOPT_RESOLVE, $resolve);
}
curl_exec($handler);
$code = curl_getinfo($handler, \CURLINFO_HTTP_CODE);

View File

@@ -95,7 +95,7 @@ class Attachment implements EntryPoint
$response
->setHeader('Content-Length', (string) $size)
->setHeader('Cache-Control', 'private, max-age=864000, immutable')
->setHeader('Content-Security-Policy', "default-src 'self'")
->setHeader('Content-Security-Policy', "default-src 'self'; script-src 'none'; object-src 'none';")
->setBody($stream);
}

View File

@@ -87,7 +87,7 @@ class Download implements EntryPoint
if (in_array($type, $inlineMimeTypeList)) {
$disposition = 'inline';
$response->setHeader('Content-Security-Policy', "default-src 'self'");
$response->setHeader('Content-Security-Policy', "default-src 'self'; script-src 'none'; object-src 'none';");
}
$response->setHeader('Content-Description', 'File Transfer');

View File

@@ -153,7 +153,7 @@ class Image implements EntryPoint
$response
->setHeader('Content-Disposition', 'inline;filename="' . $fileName . '"')
->setHeader('Content-Length', (string) $fileSize)
->setHeader('Content-Security-Policy', "default-src 'self'");
->setHeader('Content-Security-Policy', "default-src 'self'; script-src 'none'; object-src 'none';");
if (!$noCacheHeaders) {
$response->setHeader('Cache-Control', 'private, max-age=864000, immutable');
@@ -174,7 +174,9 @@ class Image implements EntryPoint
$sourceId = $attachment->getSourceId();
$cacheFilePath = "data/upload/thumbs/{$sourceId}_$size";
$file = basename("{$sourceId}_$size");
$cacheFilePath = "data/upload/thumbs/$file";
if ($useCache && $this->fileManager->isFile($cacheFilePath)) {
return $this->fileManager->getContents($cacheFilePath);

View File

@@ -89,7 +89,9 @@ class RemoveFile implements AfterRemove
$sizeList = array_keys($this->metadata->get(['app', 'image', 'sizes']) ?? []);
foreach ($sizeList as $size) {
$filePath = "data/upload/thumbs/{$entity->getSourceId()}_{$size}";
$file = basename("{$entity->getSourceId()}_$size");
$filePath = "data/upload/thumbs/$file";
if ($this->fileManager->isFile($filePath)) {
$this->fileManager->removeFile($filePath);

View File

@@ -1,380 +1,380 @@
{
"labels": {
"Enabled": "Povoleno",
"Disabled": "Zakázáno",
"System": "Systém",
"Users": "Uživatelé",
"Customization": "Přizpůsobení",
"Available Fields": "Dostupná pole",
"Layout": "Vzhled",
"Entity Manager": "Správa entit",
"Add Panel": "Přidat panel",
"Add Field": "Přidat pole",
"Settings": "Nastavení",
"Scheduled Jobs": "Naplánované akce",
"Upgrade": "Aktualizace",
"Clear Cache": "Vyčistit cache",
"Rebuild": "Přestavět",
"Teams": "Týmy",
"Roles": "Role",
"Portal": "Portál",
"Portals": "Portály",
"Portal Roles": "Role portálu",
"Outbound Emails": "Odchozí emaily",
"Group Email Accounts": "Skupinové e-mailové účty",
"Personal Email Accounts": "Osobní e-mailové účty",
"Inbound Emails": "Příchozí emaily",
"Email Templates": "Šablony emailů",
"Layout Manager": "Správa layoutu",
"User Interface": "Uživatelské rozhraní",
"Auth Tokens": "Autentizační tokeny",
"Authentication": "Autentizace",
"Currency": "Měna",
"Integrations": "Integrace",
"Extensions": "Rozšíření",
"Upload": "Nahrát",
"Installing...": "Instaluji...",
"Upgrading...": "Upgraduji...",
"Upgraded successfully": "Úspěšně upgradováno",
"Installed successfully": "Úspěšně nainstalováno",
"Ready for upgrade": "Připraveno k upgradu",
"Run Upgrade": "Spustit upgrade",
"Install": "Instalovat",
"Ready for installation": "Připraveno k instalaci",
"Uninstalling...": "Odebírám...",
"Uninstalled": "Odebráno",
"Create Entity": "Vytvořit entitu",
"Edit Entity": "Upravit entitu",
"Create Link": "Vytvořit vazbu",
"Edit Link": "Upravit link",
"Notifications": "Upozornění",
"Jobs": "Joby",
"Reset to Default": "Obnovit do základního nastavení",
"Email Filters": "E-mailové filtry",
"Portal Users": "Uživatelé portálu",
"Action History": "Historie akcí",
"Label Manager": "Správce labelů",
"Auth Log": "Log autentizace",
"Lead Capture": "Zachycení potenciálů",
"Attachments": "Přílohy",
"API Users": "API uživatelé",
"Template Manager": "Správce šablon",
"System Requirements": "Požadavky na systém",
"PHP Settings": "Nastavení PHP",
"Database Settings": "Nastavení databáze",
"Permissions": "Oprávnění",
"Success": "Úspěch",
"Fail": "Selhání",
"is recommended": "je doporučeno",
"extension is missing": "rozšíření chybí",
"PDF Templates": "PDF Šablony",
"Webhooks": "Webhooky",
"Dashboard Templates": "Šablony hlavních panelů",
"Email Addresses": "Emailové adresy",
"Phone Numbers": "Telefonní čísla",
"Layout Sets": "Sady vzhledů",
"Messaging": "Zprávy",
"Misc": "Vedlejší",
"Job Settings": "Nastavení jobů",
"Configuration Instructions": "Instrukce k nastavení",
"Formula Sandbox": "Pískoviště pro formula skripty",
"Working Time Calendars": "Kalendáře pracovní doby",
"Group Email Folders": "Složky skupinových e-mailů",
"Authentication Providers": "Poskytovatelé autentizace",
"Setup": "Nastavení",
"App Log": "Log aplikace",
"Address Countries": "Seznam zemí",
"App Secrets": "Tajemství aplikace",
"OAuth Providers": "OAuth poskytovatelé"
},
"layouts": {
"list": "Seznam",
"listSmall": "Seznam (malý)",
"detailSmall": "Detail (malý)",
"filters": "Vyhledávací filtry",
"massUpdate": "Hromadný update",
"relationships": "Vztah",
"sidePanelsDetail": "Boční panely (Detail)",
"sidePanelsEdit": "Boční panely (Upravit)",
"sidePanelsDetailSmall": "Boční panely (Detail malé)",
"sidePanelsEditSmall": "Boční panely (Upravit malé)",
"detailPortal": "Detail (Portál)",
"detailSmallPortal": "Detail (Small, Portál)",
"listSmallPortal": "Seznam malý (Portál)",
"listPortal": "Seznam (portál)",
"relationshipsPortal": "Panely vztahů (Portál)",
"defaultSidePanel": "Pole bočního panelu",
"bottomPanelsDetail": "Spodní panely",
"bottomPanelsEdit": "Spodní panely (Upravit)",
"bottomPanelsDetailSmall": "Spodní panely (Detail malé)",
"bottomPanelsEditSmall": "Spodní panely (Upravit malé)"
},
"fieldTypes": {
"address": "Adresa",
"array": "Pole",
"foreign": "Cizí pole",
"duration": "Trvání",
"password": "Heslo",
"personName": "Jméno osoby",
"autoincrement": "Číslo (automaticky zvyšované)",
"bool": "Ano/Ne",
"currency": "Měna",
"date": "Datum",
"enum": "Výběr",
"enumInt": "Výběr (číslo)",
"enumFloat": "Výběr (desetinné číslo)",
"float": "Číslo (desetinné)",
"link": "Vazba",
"linkMultiple": "Vazba (vícenásobná)",
"linkParent": "Vazba (rodič)",
"phone": "Telefon",
"url": "URL adresa",
"file": "Soubor",
"image": "Obrázek",
"multiEnum": "Výběr (vícenásobný)",
"attachmentMultiple": "Více příloh",
"rangeInt": "Rozsah (celé číslo)",
"rangeFloat": "Rozsah (desetinné číslo)",
"rangeCurrency": "Rozsah (měna)",
"wysiwyg": "WYSIWYG editor",
"map": "Mapa",
"currencyConverted": "Měna (převedená)",
"colorpicker": "Výběr barvy",
"int": "Číslo (celé)",
"number": "Číslo faktury",
"jsonArray": "JSON pole",
"jsonObject": "JSON objekt",
"datetime": "Datum a čas",
"datetimeOptional": "Datum/Datum a čas",
"checklist": "Ano/Ne (seznam)",
"linkOne": "Vazba (jednonásobná)",
"barcode": "Čárový kód",
"urlMultiple": "URL adresy (více)",
"base": "Výchozí",
"decimal": "Desetinné číslo"
},
"fields": {
"type": "Typ",
"name": "Jméno",
"label": "Popisek",
"required": "Povinné",
"default": "Výchozí",
"maxLength": "Maximální délka",
"options": "Možnosti",
"after": "Po (pole)",
"before": "Před (pole)",
"link": "Odkaz",
"field": "Pole",
"min": "Minimum",
"max": "Maximum",
"translation": "Překlad",
"previewSize": "Velikost náhledu",
"defaultType": "Výchozí typ",
"seeMoreDisabled": "Zakázat ořez textu",
"entityList": "Seznam entit",
"isSorted": "Je seřazeno (abecedně)",
"audited": "Auditováno",
"trim": "Oříznout",
"height": "Výška (px)",
"minHeight": "Minimální výška (px)",
"provider": "Poskytovatel",
"typeList": "Seznam typů",
"lengthOfCut": "Délka řezu",
"sourceList": "Seznam zdrojů",
"tooltipText": "Text nápovědy",
"prefix": "Předpona",
"nextNumber": "Další číslo",
"padLength": "Délka výplně",
"disableFormatting": "Zakázat formátování",
"dynamicLogicVisible": "Podmínky, za kterých je pole viditelné",
"dynamicLogicReadOnly": "Podmínky, za kterých je pole jenom pro čtení",
"dynamicLogicRequired": "Podmínky, za kterých je pole povinné",
"dynamicLogicOptions": "Podmíněné možnosti",
"probabilityMap": "Pravděpodobnosti fáze (%)",
"readOnly": "Pouze ke čtení",
"noEmptyString": "Neprázdný řetězec",
"maxFileSize": "Maximální velikost souboru (Mb)",
"isPersonalData": "Jsou osobní údaje",
"useIframe": "Použít iframe",
"useNumericFormat": "Použít číselný formát",
"strip": "Odstranit",
"cutHeight": "Oříznout výšku (px)",
"minuteStep": "Minutový krok",
"inlineEditDisabled": "Zakázat samostatnou úpravu",
"displayAsLabel": "Zobrazit jako štítek",
"allowCustomOptions": "Povolit vlastní možnosti",
"maxCount": "Maximální počet položek",
"displayRawText": "Zobrazit holý text (bez označení)",
"notActualOptions": "Neopravdové možnosti",
"accept": "Přijmout",
"displayAsList": "Zobrazit jako seznam",
"viewMap": "Zobrazit mapu",
"codeType": "Typ kódu",
"lastChar": "Poslední znak",
"listPreviewSize": "Velikost náhledu seznamu",
"onlyDefaultCurrency": "Pouze výchozí měna",
"dynamicLogicInvalid": "Podmínky, které pole dělají neplatným",
"conversionDisabled": "Konverze zakázána",
"decimalPlaces": "Počet desetinných míst",
"pattern": "Vzor",
"globalRestrictions": "Globální omezení",
"decimal": "Desetinné",
"optionsReference": "Odkaz na možnosti",
"copyToClipboard": "Tlačítko na zkopírování do schránky",
"rows": "Počet řádků textové oblasti",
"readOnlyAfterCreate": "Pouze ke čtení po vytvoření",
"createButton": "Tlačítko pro vytváření",
"autocompleteOnEmpty": "Doplňování při prázdném poli",
"relateOnImport": "Provázat při importu",
"aclScope": "Entita pro acl",
"onlyAdmin": "Pouze pro administrátory",
"activeOptions": "Aktivní možnosti",
"labelType": "Typ zobrazení",
"preview": "Náhled",
"attachmentField": "Pole pro přílohu",
"dynamicLogicReadOnlySaved": "Podmínky, za kterých je pole jenom pro čtení (po uložení)",
"notStorable": "Neuložitelné",
"itemsEditable": "Upravitelné položky"
},
"messages": {
"selectEntityType": "Vybrat entitu v levém menu.",
"selectUpgradePackage": "Vybrat upgrade balíček",
"selectLayout": "Vybrat požadovaný layout v levém menu a upravit ho.",
"selectExtensionPackage": "Vybrat soubor s rozšířením",
"extensionInstalled": "Rozšíření {name} {version} bylo nainstalováno.",
"installExtension": "Rozšíření {name} {version} je připraveno k instalaci.",
"upgradeBackup": "Doporučujeme zálohovat soubory a data EspoCRM před upgradem.",
"thousandSeparatorEqualsDecimalMark": "Oddělovač tisíců nemůže být stejný jako desetinný symbol.",
"userHasNoEmailAddress": "Uživatel nemá emailovou adresu.",
"uninstallConfirmation": "Opravdu odinstalovat vybrané rozšíření?",
"cronIsNotConfigured": "Naplánované úlohy nejsou spuštěny. Příchozí e-maily, oznámení a připomenutí proto nefungují. Postupujte podle [pokynů](https://www.espocrm.com/documentation/administration/server-configuration/#user-content-setup-a-crontab) k nastavení úlohy cron.",
"newExtensionVersionIsAvailable": "Je k dispozici nová verze {latestName} {latestVersion}.",
"upgradeVersion": "EspoCRM bude upgradováno na verzi <strong>{version}</strong>. Toto může chvíli trvat.",
"upgradeDone": "EspoCRM bylo upgradováno na verzi <strong>{version}</strong>.",
"downloadUpgradePackage": "Stáhnout upgradovací balíčky na [tomto]({url}) odkaze.",
"upgradeInfo": "Přečtěte si [dokumentaci]({url}) o tom, jak upgradovat instanci AutoCRM.",
"upgradeRecommendation": "Tento způsob upgradu se nedoporučuje. Je lepší upgradovat z CLI.",
"newVersionIsAvailable": "K dispozici je nová verze AutoCRM {latestVersion}. Při aktualizaci instance postupujte podle [pokynů](https://www.espocrm.com/documentation/administration/upgrading/).",
"formulaFunctions": "Funkce formula skriptů",
"rebuildRequired": "Musíte spustit znovu rebuild z CLI.",
"cronIsDisabled": "Cron je zakázán",
"cacheIsDisabled": "Cache je zakázána"
},
"descriptions": {
"settings": "Systémová nastavení aplikace.",
"scheduledJob": "Činnosti vykonávané CRONem.",
"upgrade": "Upgradovat EspoCRM.",
"clearCache": "Vyčistit veškerou cache.",
"rebuild": "Přestavět backend a vyčistit cache.",
"users": "Správa uživatelů.",
"teams": "Správa týmů.",
"roles": "Správa rolí.",
"portals": "Správa portálů.",
"portalRoles": "Role pro portál.",
"outboundEmails": "Nastavení SMTP pro odchozí emaily.",
"groupEmailAccounts": "Skupinové IMAP emailové účty. Import emailů",
"personalEmailAccounts": "E-mailové účty uživatelů.",
"emailTemplates": "Šablony pro odchozí emaily.",
"import": "Importovat data z CSV souboru.",
"layoutManager": "Přizpůsobit layouty (seznam, detail, upravit, hledat, hromadný update).",
"userInterface": "Nastavit uživatelské rozhraní.",
"authTokens": "Aktivní autentizační sessions. IP adresa a datum posledního přístupu.",
"authentication": "Nastavení autentizace.",
"currency": "Nastavení měn a kurzů.",
"extensions": "Instalovat a odebrat rozšíření.",
"integrations": "Integrace se službami třetích stran.",
"notifications": "Nastavení In-app a emailových upozornění.",
"inboundEmails": "Nastavení příchozích mailů",
"portalUsers": "Uživatelé portálu.",
"entityManager": "Vytvořit vlastní entity, úpravit existující. Správa polí a vztahů.",
"emailFilters": "E-mailové zprávy, které odpovídají zadanému filtru, nebudou importovány.",
"actionHistory": "Protokol akcí uživatelů.",
"labelManager": "Upravit popisky",
"authLog": "Historie přihlášení.",
"attachments": "Všechny přílohy souborů uložené v systému.",
"templateManager": "Přizpůsobte si šablony zpráv.",
"systemRequirements": "Systémové požadavky na AutoCRM.",
"apiUsers": "Oddělte uživatele pro účely integrace.",
"jobs": "Spustit akce na pozadí.",
"pdfTemplates": "Šablony pro tisk do PDF.",
"webhooks": "Správa webhooků.",
"dashboardTemplates": "Umožňuje přidávat dashboardy uživatelům.",
"phoneNumbers": "Všechna telefonní čísla uložená v systému.",
"emailAddresses": "Všechny e-mailové adresy uložené v systému.",
"layoutSets": "Kolekce layoutů, které lze přiřadit týmům a portálům.",
"jobsSettings": "Nastavení zpracování jobů. Joby vykonávají úkoly na pozadí.",
"sms": "Nastavení SMS.",
"formulaSandbox": "Pískoviště pro testování formula skriptů bez ukládání změn.",
"workingTimeCalendars": "Pracovní plány.",
"groupEmailFolders": "Složky sdílené pro týmy",
"authenticationProviders": "Další poskytovatelé autentizace pro portály.",
"appLog": "Log aplikace.",
"addressCountries": "Dostupné země pro políčka typu 'adresa'.",
"appSecrets": "Pro ukládání citlivých informací jako jsou API klíče, hesla, a jiná tajemství.",
"leadCapture": "Koncové body pro zachycení potenciálů a webové formuláře.",
"oAuthProviders": "OAuth poskytovatelé pro integrace."
},
"options": {
"previewSize": {
"x-small": "Extra-malý",
"small": "Malý",
"medium": "Střední",
"large": "Velký",
"": "Prázdné"
},
"labelType": {
"state": "Stav",
"regular": "Výchozí"
}
},
"logicalOperators": {
"and": "a zároveň",
"or": "nebo",
"not": "negace"
},
"systemRequirements": {
"requiredPhpVersion": "Požadovaná verze PHP",
"requiredMysqlVersion": "Požadovaná verze MySQL",
"host": "Jméno hostitele",
"dbname": "Název databáze",
"user": "Uživatel",
"writable": "Zapisovatelné",
"readable": "Čitelné",
"requiredMariadbVersion": "Požadovaná verze MariaDB",
"requiredPostgresqlVersion": "Požadovaná verze PostgreSQL"
},
"templates": {
"accessInfo": "Přístupové údaje",
"accessInfoPortal": "Přístupové údaje na portály",
"assignment": "Úkol",
"mention": "Zmínka",
"notePost": "Poznámka k příspěvku",
"notePostNoParent": "Poznámka k příspěvku (bez rodiče)",
"noteStatus": "Poznámka k aktualizaci stavu",
"passwordChangeLink": "Odkaz na změnu hesla",
"noteEmailReceived": "Poznámka o přijatém e-mailu",
"twoFactorCode": "Dvoufaktorový kód"
},
"strings": {
"rebuildRequired": "Rebuild je vyžadován."
},
"keywords": {
"settings": "nastavení",
"userInterface": "uživatelské rozhraní",
"scheduledJob": "naplánovaná akce",
"integrations": "integrace",
"authLog": "log autentizace",
"authTokens": "autentizační tokeny",
"entityManager": "správce entit",
"templateManager": "správce šablon",
"jobs": "úlohy",
"authentication": "autentizace",
"labelManager": "správce popisků",
"appSecrets": "tajemství aplikace",
"leadCapture": "zachycení potenciálů"
},
"tooltips": {
"tabUrl": "URL záložky",
"tabUrlAclScope": "ACL rozsah pro záložku URL"
}
}
{
"labels": {
"Enabled": "Povoleno",
"Disabled": "Zakázáno",
"System": "Systém",
"Users": "Uživatelé",
"Customization": "Přizpůsobení",
"Available Fields": "Dostupná pole",
"Layout": "Vzhled",
"Entity Manager": "Správa entit",
"Add Panel": "Přidat panel",
"Add Field": "Přidat pole",
"Settings": "Nastavení",
"Scheduled Jobs": "Naplánované akce",
"Upgrade": "Aktualizace",
"Clear Cache": "Vyčistit cache",
"Rebuild": "Přestavět",
"Teams": "Týmy",
"Roles": "Role",
"Portal": "Portál",
"Portals": "Portály",
"Portal Roles": "Role portálu",
"Outbound Emails": "Odchozí emaily",
"Group Email Accounts": "Skupinové e-mailové účty",
"Personal Email Accounts": "Osobní e-mailové účty",
"Inbound Emails": "Příchozí emaily",
"Email Templates": "Šablony emailů",
"Layout Manager": "Správa layoutu",
"User Interface": "Uživatelské rozhraní",
"Auth Tokens": "Autentizační tokeny",
"Authentication": "Autentizace",
"Currency": "Měna",
"Integrations": "Integrace",
"Extensions": "Rozšíření",
"Upload": "Nahrát",
"Installing...": "Instaluji...",
"Upgrading...": "Upgraduji...",
"Upgraded successfully": "Úspěšně upgradováno",
"Installed successfully": "Úspěšně nainstalováno",
"Ready for upgrade": "Připraveno k upgradu",
"Run Upgrade": "Spustit upgrade",
"Install": "Instalovat",
"Ready for installation": "Připraveno k instalaci",
"Uninstalling...": "Odebírám...",
"Uninstalled": "Odebráno",
"Create Entity": "Vytvořit entitu",
"Edit Entity": "Upravit entitu",
"Create Link": "Vytvořit vazbu",
"Edit Link": "Upravit link",
"Notifications": "Upozornění",
"Jobs": "Joby",
"Reset to Default": "Obnovit do základního nastavení",
"Email Filters": "E-mailové filtry",
"Portal Users": "Uživatelé portálu",
"Action History": "Historie akcí",
"Label Manager": "Správce labelů",
"Auth Log": "Log autentizace",
"Lead Capture": "Zachycení potenciálů",
"Attachments": "Přílohy",
"API Users": "API uživatelé",
"Template Manager": "Správce šablon",
"System Requirements": "Požadavky na systém",
"PHP Settings": "Nastavení PHP",
"Database Settings": "Nastavení databáze",
"Permissions": "Oprávnění",
"Success": "Úspěch",
"Fail": "Selhání",
"is recommended": "je doporučeno",
"extension is missing": "rozšíření chybí",
"PDF Templates": "PDF Šablony",
"Webhooks": "Webhooky",
"Dashboard Templates": "Šablony hlavních panelů",
"Email Addresses": "Emailové adresy",
"Phone Numbers": "Telefonní čísla",
"Layout Sets": "Sady vzhledů",
"Messaging": "Zprávy",
"Misc": "Vedlejší",
"Job Settings": "Nastavení jobů",
"Configuration Instructions": "Instrukce k nastavení",
"Formula Sandbox": "Pískoviště pro formula skripty",
"Working Time Calendars": "Kalendáře pracovní doby",
"Group Email Folders": "Složky skupinových e-mailů",
"Authentication Providers": "Poskytovatelé autentizace",
"Setup": "Nastavení",
"App Log": "Log aplikace",
"Address Countries": "Seznam zemí",
"App Secrets": "Tajemství aplikace",
"OAuth Providers": "OAuth poskytovatelé"
},
"layouts": {
"list": "Seznam",
"listSmall": "Seznam (malý)",
"detailSmall": "Detail (malý)",
"filters": "Vyhledávací filtry",
"massUpdate": "Hromadný update",
"relationships": "Vztah",
"sidePanelsDetail": "Boční panely (Detail)",
"sidePanelsEdit": "Boční panely (Upravit)",
"sidePanelsDetailSmall": "Boční panely (Detail malé)",
"sidePanelsEditSmall": "Boční panely (Upravit malé)",
"detailPortal": "Detail (Portál)",
"detailSmallPortal": "Detail (Small, Portál)",
"listSmallPortal": "Seznam malý (Portál)",
"listPortal": "Seznam (portál)",
"relationshipsPortal": "Panely vztahů (Portál)",
"defaultSidePanel": "Pole bočního panelu",
"bottomPanelsDetail": "Spodní panely",
"bottomPanelsEdit": "Spodní panely (Upravit)",
"bottomPanelsDetailSmall": "Spodní panely (Detail malé)",
"bottomPanelsEditSmall": "Spodní panely (Upravit malé)"
},
"fieldTypes": {
"address": "Adresa",
"array": "Pole",
"foreign": "Cizí pole",
"duration": "Trvání",
"password": "Heslo",
"personName": "Jméno osoby",
"autoincrement": "Číslo (automaticky zvyšované)",
"bool": "Ano/Ne",
"currency": "Měna",
"date": "Datum",
"enum": "Výběr",
"enumInt": "Výběr (číslo)",
"enumFloat": "Výběr (desetinné číslo)",
"float": "Číslo (desetinné)",
"link": "Vazba",
"linkMultiple": "Vazba (vícenásobná)",
"linkParent": "Vazba (rodič)",
"phone": "Telefon",
"url": "URL adresa",
"file": "Soubor",
"image": "Obrázek",
"multiEnum": "Výběr (vícenásobný)",
"attachmentMultiple": "Více příloh",
"rangeInt": "Rozsah (celé číslo)",
"rangeFloat": "Rozsah (desetinné číslo)",
"rangeCurrency": "Rozsah (měna)",
"wysiwyg": "WYSIWYG editor",
"map": "Mapa",
"currencyConverted": "Měna (převedená)",
"colorpicker": "Výběr barvy",
"int": "Číslo (celé)",
"number": "Číslo faktury",
"jsonArray": "JSON pole",
"jsonObject": "JSON objekt",
"datetime": "Datum a čas",
"datetimeOptional": "Datum/Datum a čas",
"checklist": "Ano/Ne (seznam)",
"linkOne": "Vazba (jednonásobná)",
"barcode": "Čárový kód",
"urlMultiple": "URL adresy (více)",
"base": "Výchozí",
"decimal": "Desetinné číslo"
},
"fields": {
"type": "Typ",
"name": "Jméno",
"label": "Popisek",
"required": "Povinné",
"default": "Výchozí",
"maxLength": "Maximální délka",
"options": "Možnosti",
"after": "Po (pole)",
"before": "Před (pole)",
"link": "Odkaz",
"field": "Pole",
"min": "Minimum",
"max": "Maximum",
"translation": "Překlad",
"previewSize": "Velikost náhledu",
"defaultType": "Výchozí typ",
"seeMoreDisabled": "Zakázat ořez textu",
"entityList": "Seznam entit",
"isSorted": "Je seřazeno (abecedně)",
"audited": "Auditováno",
"trim": "Oříznout",
"height": "Výška (px)",
"minHeight": "Minimální výška (px)",
"provider": "Poskytovatel",
"typeList": "Seznam typů",
"lengthOfCut": "Délka řezu",
"sourceList": "Seznam zdrojů",
"tooltipText": "Text nápovědy",
"prefix": "Předpona",
"nextNumber": "Další číslo",
"padLength": "Délka výplně",
"disableFormatting": "Zakázat formátování",
"dynamicLogicVisible": "Podmínky, za kterých je pole viditelné",
"dynamicLogicReadOnly": "Podmínky, za kterých je pole jenom pro čtení",
"dynamicLogicRequired": "Podmínky, za kterých je pole povinné",
"dynamicLogicOptions": "Podmíněné možnosti",
"probabilityMap": "Pravděpodobnosti fáze (%)",
"readOnly": "Pouze ke čtení",
"noEmptyString": "Neprázdný řetězec",
"maxFileSize": "Maximální velikost souboru (Mb)",
"isPersonalData": "Jsou osobní údaje",
"useIframe": "Použít iframe",
"useNumericFormat": "Použít číselný formát",
"strip": "Odstranit",
"cutHeight": "Oříznout výšku (px)",
"minuteStep": "Minutový krok",
"inlineEditDisabled": "Zakázat samostatnou úpravu",
"displayAsLabel": "Zobrazit jako štítek",
"allowCustomOptions": "Povolit vlastní možnosti",
"maxCount": "Maximální počet položek",
"displayRawText": "Zobrazit holý text (bez označení)",
"notActualOptions": "Neopravdové možnosti",
"accept": "Přijmout",
"displayAsList": "Zobrazit jako seznam",
"viewMap": "Zobrazit mapu",
"codeType": "Typ kódu",
"lastChar": "Poslední znak",
"listPreviewSize": "Velikost náhledu seznamu",
"onlyDefaultCurrency": "Pouze výchozí měna",
"dynamicLogicInvalid": "Podmínky, které pole dělají neplatným",
"conversionDisabled": "Konverze zakázána",
"decimalPlaces": "Počet desetinných míst",
"pattern": "Vzor",
"globalRestrictions": "Globální omezení",
"decimal": "Desetinné",
"optionsReference": "Odkaz na možnosti",
"copyToClipboard": "Tlačítko na zkopírování do schránky",
"rows": "Počet řádků textové oblasti",
"readOnlyAfterCreate": "Pouze ke čtení po vytvoření",
"createButton": "Tlačítko pro vytváření",
"autocompleteOnEmpty": "Doplňování při prázdném poli",
"relateOnImport": "Provázat při importu",
"aclScope": "Entita pro acl",
"onlyAdmin": "Pouze pro administrátory",
"activeOptions": "Aktivní možnosti",
"labelType": "Typ zobrazení",
"preview": "Náhled",
"attachmentField": "Pole pro přílohu",
"dynamicLogicReadOnlySaved": "Podmínky, za kterých je pole jenom pro čtení (po uložení)",
"notStorable": "Neuložitelné",
"itemsEditable": "Upravitelné položky"
},
"messages": {
"selectEntityType": "Vybrat entitu v levém menu.",
"selectUpgradePackage": "Vybrat upgrade balíček",
"selectLayout": "Vybrat požadovaný layout v levém menu a upravit ho.",
"selectExtensionPackage": "Vybrat soubor s rozšířením",
"extensionInstalled": "Rozšíření {name} {version} bylo nainstalováno.",
"installExtension": "Rozšíření {name} {version} je připraveno k instalaci.",
"upgradeBackup": "Doporučujeme zálohovat soubory a data EspoCRM před upgradem.",
"thousandSeparatorEqualsDecimalMark": "Oddělovač tisíců nemůže být stejný jako desetinný symbol.",
"userHasNoEmailAddress": "Uživatel nemá emailovou adresu.",
"uninstallConfirmation": "Opravdu odinstalovat vybrané rozšíření?",
"cronIsNotConfigured": "Naplánované úlohy nejsou spuštěny. Příchozí e-maily, oznámení a připomenutí proto nefungují. Postupujte podle [pokynů](https://www.espocrm.com/documentation/administration/server-configuration/#user-content-setup-a-crontab) k nastavení úlohy cron.",
"newExtensionVersionIsAvailable": "Je k dispozici nová verze {latestName} {latestVersion}.",
"upgradeVersion": "EspoCRM bude upgradováno na verzi <strong>{version}</strong>. Toto může chvíli trvat.",
"upgradeDone": "EspoCRM bylo upgradováno na verzi <strong>{version}</strong>.",
"downloadUpgradePackage": "Stáhnout upgradovací balíčky na [tomto]({url}) odkaze.",
"upgradeInfo": "Přečtěte si [dokumentaci]({url}) o tom, jak upgradovat instanci EspoCRM.",
"upgradeRecommendation": "Tento způsob upgradu se nedoporučuje. Je lepší upgradovat z CLI.",
"newVersionIsAvailable": "K dispozici je nová verze EspoCRM {latestVersion}. Při aktualizaci instance postupujte podle [pokynů](https://www.espocrm.com/documentation/administration/upgrading/).",
"formulaFunctions": "Funkce formula skriptů",
"rebuildRequired": "Musíte spustit znovu rebuild z CLI.",
"cronIsDisabled": "Cron je zakázán",
"cacheIsDisabled": "Cache je zakázána"
},
"descriptions": {
"settings": "Systémová nastavení aplikace.",
"scheduledJob": "Činnosti vykonávané CRONem.",
"upgrade": "Upgradovat EspoCRM.",
"clearCache": "Vyčistit veškerou cache.",
"rebuild": "Přestavět backend a vyčistit cache.",
"users": "Správa uživatelů.",
"teams": "Správa týmů.",
"roles": "Správa rolí.",
"portals": "Správa portálů.",
"portalRoles": "Role pro portál.",
"outboundEmails": "Nastavení SMTP pro odchozí emaily.",
"groupEmailAccounts": "Skupinové IMAP emailové účty. Import emailů",
"personalEmailAccounts": "E-mailové účty uživatelů.",
"emailTemplates": "Šablony pro odchozí emaily.",
"import": "Importovat data z CSV souboru.",
"layoutManager": "Přizpůsobit layouty (seznam, detail, upravit, hledat, hromadný update).",
"userInterface": "Nastavit uživatelské rozhraní.",
"authTokens": "Aktivní autentizační sessions. IP adresa a datum posledního přístupu.",
"authentication": "Nastavení autentizace.",
"currency": "Nastavení měn a kurzů.",
"extensions": "Instalovat a odebrat rozšíření.",
"integrations": "Integrace se službami třetích stran.",
"notifications": "Nastavení In-app a emailových upozornění.",
"inboundEmails": "Nastavení příchozích mailů",
"portalUsers": "Uživatelé portálu.",
"entityManager": "Vytvořit vlastní entity, úpravit existující. Správa polí a vztahů.",
"emailFilters": "E-mailové zprávy, které odpovídají zadanému filtru, nebudou importovány.",
"actionHistory": "Protokol akcí uživatelů.",
"labelManager": "Upravit popisky",
"authLog": "Historie přihlášení.",
"attachments": "Všechny přílohy souborů uložené v systému.",
"templateManager": "Přizpůsobte si šablony zpráv.",
"systemRequirements": "Systémové požadavky na EspoCRM.",
"apiUsers": "Oddělte uživatele pro účely integrace.",
"jobs": "Spustit akce na pozadí.",
"pdfTemplates": "Šablony pro tisk do PDF.",
"webhooks": "Správa webhooků.",
"dashboardTemplates": "Umožňuje přidávat dashboardy uživatelům.",
"phoneNumbers": "Všechna telefonní čísla uložená v systému.",
"emailAddresses": "Všechny e-mailové adresy uložené v systému.",
"layoutSets": "Kolekce layoutů, které lze přiřadit týmům a portálům.",
"jobsSettings": "Nastavení zpracování jobů. Joby vykonávají úkoly na pozadí.",
"sms": "Nastavení SMS.",
"formulaSandbox": "Pískoviště pro testování formula skriptů bez ukládání změn.",
"workingTimeCalendars": "Pracovní plány.",
"groupEmailFolders": "Složky sdílené pro týmy",
"authenticationProviders": "Další poskytovatelé autentizace pro portály.",
"appLog": "Log aplikace.",
"addressCountries": "Dostupné země pro políčka typu 'adresa'.",
"appSecrets": "Pro ukládání citlivých informací jako jsou API klíče, hesla, a jiná tajemství.",
"leadCapture": "Koncové body pro zachycení potenciálů a webové formuláře.",
"oAuthProviders": "OAuth poskytovatelé pro integrace."
},
"options": {
"previewSize": {
"x-small": "Extra-malý",
"small": "Malý",
"medium": "Střední",
"large": "Velký",
"": "Prázdné"
},
"labelType": {
"state": "Stav",
"regular": "Výchozí"
}
},
"logicalOperators": {
"and": "a zároveň",
"or": "nebo",
"not": "negace"
},
"systemRequirements": {
"requiredPhpVersion": "Požadovaná verze PHP",
"requiredMysqlVersion": "Požadovaná verze MySQL",
"host": "Jméno hostitele",
"dbname": "Název databáze",
"user": "Uživatel",
"writable": "Zapisovatelné",
"readable": "Čitelné",
"requiredMariadbVersion": "Požadovaná verze MariaDB",
"requiredPostgresqlVersion": "Požadovaná verze PostgreSQL"
},
"templates": {
"accessInfo": "Přístupové údaje",
"accessInfoPortal": "Přístupové údaje na portály",
"assignment": "Úkol",
"mention": "Zmínka",
"notePost": "Poznámka k příspěvku",
"notePostNoParent": "Poznámka k příspěvku (bez rodiče)",
"noteStatus": "Poznámka k aktualizaci stavu",
"passwordChangeLink": "Odkaz na změnu hesla",
"noteEmailReceived": "Poznámka o přijatém e-mailu",
"twoFactorCode": "Dvoufaktorový kód"
},
"strings": {
"rebuildRequired": "Rebuild je vyžadován."
},
"keywords": {
"settings": "nastavení",
"userInterface": "uživatelské rozhraní",
"scheduledJob": "naplánovaná akce",
"integrations": "integrace",
"authLog": "log autentizace",
"authTokens": "autentizační tokeny",
"entityManager": "správce entit",
"templateManager": "správce šablon",
"jobs": "úlohy",
"authentication": "autentizace",
"labelManager": "správce popisků",
"appSecrets": "tajemství aplikace",
"leadCapture": "zachycení potenciálů"
},
"tooltips": {
"tabUrl": "URL záložky",
"tabUrlAclScope": "ACL rozsah pro záložku URL"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,313 +1,313 @@
{
"fields": {
"useCache": "Použít cache",
"dateFormat": "Formát data",
"timeFormat": "Formát času",
"timeZone": "Časové pásmo",
"weekStart": "První den v týdnu",
"thousandSeparator": "Oddělovač tisíců",
"decimalMark": "Desetinný oddělovač",
"defaultCurrency": "Výchozí měna",
"baseCurrency": "Bázová měna",
"currencyRates": "Kurzy měn",
"currencyList": "Seznam měn",
"language": "Jazyk",
"companyLogo": "Logo společnosti",
"ldapPort": "LDAP Port",
"ldapAuth": "LDAP Auth",
"ldapSecurity": "Zabezpečení",
"ldapPassword": "Heslo",
"outboundEmailFromName": "Od (jméno)",
"outboundEmailIsShared": "Sdílení",
"recordsPerPage": "Záznamy na stránku",
"recordsPerPageSmall": "Záznamy na stránku (malý)",
"tabList": "Seznam záložek",
"quickCreateList": "Rychlé odkazy",
"exportDelimiter": "Export oddělovač",
"globalSearchEntityList": "Seznam entit globálního vyhledávání",
"authenticationMethod": "Autentizační metoda",
"ldapHost": "LDAP Host",
"ldapAccountCanonicalForm": "LDAP Account Canonical Form",
"ldapAccountDomainName": "Název domény účtu",
"ldapTryUsernameSplit": "Zkuste rozdělit uživatelské jméno",
"ldapCreateEspoUser": "Vytvořit uživatele v EspoCRM",
"ldapUserLoginFilter": "Filtr uživatelského přihlášení",
"ldapAccountDomainNameShort": "Account Domain Name krátké",
"ldapOptReferrals": "Volit doporučení",
"exportDisabled": "Zakázat export (povolen pouze správce)",
"b2cMode": "Režm B2C",
"avatarsDisabled": "Zakázat avatary",
"displayListViewRecordCount": "Zobrazit celkový počet (v zobrazení seznamu)",
"theme": "Téma",
"userThemesDisabled": "Zakázat uživatelské motivy",
"emailMessageMaxSize": "Maximální velikost emailu (Mb)",
"personalEmailMaxPortionSize": "Maximální velikost emailové části pro načítání osobních účtů",
"inboundEmailMaxPortionSize": "Maximální velikost emailové části pro načítání skupinových účtů",
"authTokenLifetime": "Životnost ověřovacího tokenu (hodiny)",
"authTokenMaxIdleTime": "Maximální doba nečinnosti ověřovacího tokenu (hodiny)",
"dashboardLayout": "Rozvržení Dashboardu (výchozí)",
"siteUrl": "URL stránky",
"addressPreview": "Náhled adresy",
"addressFormat": "Formát adresy",
"notificationSoundsDisabled": "Zakázat zvuky oznámení",
"applicationName": "Název aplikace",
"ldapUsername": "Uživatelské jméno",
"ldapBindRequiresDn": "Přiřazení vyžaduje Dn",
"ldapBaseDn": "Bázové Dn",
"ldapUserNameAttribute": "Atribut uživatelského jména",
"ldapUserObjectClass": "Třída objektu uživatele",
"ldapUserTitleAttribute": "Atribut názvu uživatele",
"ldapUserFirstNameAttribute": "Atribut křestního jména uživatele",
"ldapUserLastNameAttribute": "Atribut příjmení uživatele",
"ldapUserEmailAddressAttribute": "Atribut emailové adresy uživatele",
"ldapUserTeams": "Týmy uživatele",
"ldapUserDefaultTeam": "Výchozí tým uživatele",
"ldapUserPhoneNumberAttribute": "Atribut telefonního čísla uživatele",
"assignmentNotificationsEntityList": "Entity k upozornění podle přiřazení",
"assignmentEmailNotifications": "Poslat emailová upozornění podle přiřazení",
"assignmentEmailNotificationsEntityList": "Entity k upozornění emailem podle přiřazení",
"streamEmailNotifications": "Oznámení o aktualizacích ve streamu pro interní uživatele",
"portalStreamEmailNotifications": "Oznámení o aktualizacích ve streamu pro uživatele portálu",
"streamEmailNotificationsEntityList": "Rozsahy emailových oznámení o streamu",
"calendarEntityList": "Seznam entit kalendáře",
"mentionEmailNotifications": "Zasílejte emailová oznámení o nových příspěvcích",
"massEmailDisableMandatoryOptOutLink": "Zakázat povinný odkaz pro odhlášení",
"activitiesEntityList": "Seznam entit aktivit",
"historyEntityList": "Seznam entit historie",
"currencyFormat": "Formát měny",
"currencyDecimalPlaces": "Počet desetinných míst měny",
"followCreatedEntities": "Sledovat vytvořené entity",
"aclAllowDeleteCreated": "Povolit odebrání vytvořených záznamů",
"adminNotifications": "Systémová oznámení v administračním panelu",
"adminNotificationsNewVersion": "Zobrazit oznámení, až bude k dispozici nová verze CRM",
"massEmailMaxPerHourCount": "Maximální počet e-mailů odeslaných za hodinu",
"maxEmailAccountCount": "Maximální počet osobních emailových účtů na uživatele",
"streamEmailNotificationsTypeList": "Na co upozorňovat",
"authTokenPreventConcurrent": "Pouze jeden ověřovací token na uživatele",
"scopeColorsDisabled": "Zakázat barvy rozsahu",
"tabColorsDisabled": "Zakázat barvy záložek",
"tabIconsDisabled": "Zakázat ikony na kartě",
"textFilterUseContainsForVarchar": "Při filtrování polí varchar používat operátor „obsahuje“",
"emailAddressIsOptedOutByDefault": "Označit nové emailové adresy jako odhlášené",
"outboundEmailBccAddress": "Adresa BCC pro externí klienty",
"adminNotificationsNewExtensionVersion": "Zobrazit oznámení, když jsou k dispozici nové verze rozšíření",
"cleanupDeletedRecords": "Vyčistit smazané záznamy",
"ldapPortalUserLdapAuth": "Pro uživatele portálu použijte ověřování LDAP",
"ldapPortalUserPortals": "Výchozí portály pro uživatele portálu",
"ldapPortalUserRoles": "Výchozí role pro uživatele portálu",
"fiscalYearShift": "Začátek fiskálního roku",
"jobRunInParallel": "Úlohy běží paralelně",
"jobMaxPortion": "Maximální velikost části úloh",
"jobPoolConcurrencyNumber": "Číslo souběhu úloh",
"daemonInterval": "Interval démona",
"daemonMaxProcessNumber": "Maximální počet procesů démona",
"daemonProcessTimeout": "Timeout procesu démona",
"addressCityList": "Seznam měst při našeptávání políčka adresa",
"addressStateList": "Seznam států pro našeptávání adres",
"cronDisabled": "Zakázat Cron",
"maintenanceMode": "Režim údržby",
"useWebSocket": "Použít WebSocket",
"emailNotificationsDelay": "Zpoždění e-mailových oznámení (v sekundách)",
"massEmailOpenTracking": "Sledování otevření emailů",
"passwordRecoveryDisabled": "Zakázat obnovení hesla",
"passwordRecoveryForAdminDisabled": "Zakázat obnovení hesla pro uživatele správce",
"passwordGenerateLength": "Délka vygenerovaných hesel",
"passwordStrengthLength": "Minimální délka hesla",
"passwordStrengthLetterCount": "Počet písmen požadovaných v hesle",
"passwordStrengthNumberCount": "Počet číslic požadovaných v hesle",
"passwordStrengthBothCases": "Zabraňte vystavení e-mailové adresy ve formuláři pro obnovení hesla",
"auth2FA": "Povolit dvoufaktorové ověřování",
"auth2FAMethodList": "Dostupné metody dvoufaktorové autorizace",
"personNameFormat": "Formát jména osoby",
"newNotificationCountInTitle": "Zobrazit nové číslo oznámení v názvu stránky",
"massEmailVerp": "Použít VERP",
"emailAddressLookupEntityTypeList": "Rozsahy vyhledávání emailových adres",
"busyRangesEntityList": "Seznam volných / zaneprázdněných entit",
"passwordRecoveryForInternalUsersDisabled": "Zakázat obnovení hesla pro uživatele",
"passwordRecoveryNoExposure": "Zabraňte vystavení emailové adresy ve formuláři pro obnovení hesla",
"auth2FAForced": "Přimět uživatele k nastavení dvoufaktorové autorizace",
"smsProvider": "Poskytovatel SMS",
"outboundSmsFromNumber": "SMS z čísla",
"recordsPerPageSelect": "Záznamy na stránku (Výběr)",
"attachmentUploadMaxSize": "Maximální velikost přílohy (Mb)",
"attachmentUploadChunkSize": "Velikost části nahrávání příloh (Mb)",
"workingTimeCalendar": "Pracovní kalendář",
"oidcClientId": "OIDC ID klienta",
"oidcClientSecret": "OIDC tajný klíč klienta",
"oidcAuthorizationRedirectUri": "OIDC URI přesměrování autorizace",
"oidcAuthorizationEndpoint": "OIDC koncový bod autorizace",
"oidcTokenEndpoint": "OIDC koncový bod tokenu",
"oidcJwksEndpoint": "OIDC koncový bod JSON Web Key Set",
"oidcJwtSignatureAlgorithmList": "OIDC povolené podpisové algoritmy JWT",
"oidcScopes": "OIDC rozsahy",
"oidcGroupClaim": "OIDC nárok skupiny",
"oidcCreateUser": "OIDC vytvořit uživatele",
"oidcUsernameClaim": "OIDC nárok uživatelského jména",
"oidcTeams": "OIDC týmy",
"oidcSync": "OIDC synchronizace",
"oidcSyncTeams": "OIDC synchronizace týmů",
"oidcFallback": "OIDC záložní přihlášení",
"oidcAllowRegularUserFallback": "OIDC povolit záložní přihlášení běžným uživatelům",
"oidcAllowAdminUser": "OIDC povolit přihlášení správcům",
"oidcLogoutUrl": "OIDC URL odhlášení",
"pdfEngine": "PDF generátor",
"recordsPerPageKanban": "Záznamy na stránku (Kanban)",
"auth2FAInPortal": "Povolit dvoufaktorové ověřování v portálech",
"massEmailMaxPerBatchCount": "Maximální počet e-mailů odeslaných za dávku",
"phoneNumberNumericSearch": "Číselné vyhledávání telefonních čísel",
"phoneNumberInternational": "Mezinárodní telefonní čísla",
"phoneNumberPreferredCountryList": "Upřednostňované země pro telefonního čísla",
"jobForceUtc": "Vynutit UTC pro úlohy",
"emailAddressSelectEntityTypeList": "Rozsahy výběru emailových adres",
"phoneNumberExtensions": "Přípony telefonních čísel",
"oidcAuthorizationPrompt": "OIDC výzva k autorizaci",
"quickSearchFullTextAppendWildcard": "Rychlé vyhledávání přidat wildcard symbol",
"authIpAddressCheck": "Omezovat přístup na základě IP adresy",
"authIpAddressWhitelist": "Whitelist IP adres",
"authIpAddressCheckExcludedUsers": "Uživatelé vyřazení z kontroly",
"streamEmailWithContentEntityTypeList": "Entity s obsahem emailu v poznámkách streamu",
"emailScheduledBatchCount": "Maximální počet naplánovaných e-mailů odeslaných za dávku",
"passwordStrengthSpecialCharacterCount": "Počet speciálních znaků požadovaných v hesle",
"availableReactions": "Dostupné reakce",
"outboundEmailFromAddress": "Odesílatelská emailová adresa",
"oidcUserInfoEndpoint": "OIDC koncový bod informací o uživateli",
"baselineRole": "Základní role"
},
"tooltips": {
"recordsPerPage": "Počet záznamů původně zobrazených v zobrazení seznamu.",
"recordsPerPageSmall": "Počet záznamů v panelu vztahů.",
"followCreatedEntities": "Pokud uživatel vytvoří záznam, bude jej sledovat automaticky.",
"ldapUsername": "Úplné uživatelské jméno systému, které umožňuje vyhledávat další uživatele. Např. \"CN = uživatel systému LDAP, OU = uživatelé, OU = espocrm, DC = test, DC = lan\".",
"ldapPassword": "Heslo pro přístup k serveru LDAP.",
"ldapAuth": "Přístup k pověření serveru LDAP.",
"ldapUserNameAttribute": "Atribut k identifikaci uživatele. \nNapř. „userPrincipalName“ nebo „sAMAccountName“ pro Active Directory, „uid“ pro OpenLDAP.",
"ldapUserObjectClass": "Atribut ObjectClass pro vyhledávání uživatelů. Např. „osoba“ pro AD, „inetOrgPerson“ pro OpenLDAP.",
"ldapBindRequiresDn": "Možnost formátovat uživatelské jméno ve formuláři DN.",
"ldapBaseDn": "Výchozí základní DN používané pro vyhledávání uživatelů. Např. \"OU = uživatelé, OU = espocrm, DC = test, DC = lan\".",
"ldapTryUsernameSplit": "Možnost rozdělit uživatelské jméno na doménu.",
"ldapOptReferrals": "pokud by měla být sledována doporučení klientovi LDAP.",
"ldapCreateEspoUser": "Tato možnost umožňuje AutoCRM vytvořit uživatele z LDAP.",
"ldapUserFirstNameAttribute": "Atribut LDAP, který se používá k určení křestního jména uživatele. Např. \"křestní jméno\".",
"ldapUserLastNameAttribute": "Atribut LDAP, který se používá k určení příjmení uživatele. Např. \"sn\".",
"ldapUserTitleAttribute": "LDAP atribut pro titul uživatele.",
"ldapUserEmailAddressAttribute": "Atribut LDAP, který se používá k určení e-mailové adresy uživatele. Např. \"pošta\".",
"ldapUserPhoneNumberAttribute": "LDAP atribut pro telefonní číslo uživatele.",
"ldapUserLoginFilter": "Filtr, který umožňuje omezit uživatele, kteří mohou používat AutoCRM. Např. \"memberOf = CN = espoGroup, OU = groups, OU = espocrm, DC = test, DC = lan\".",
"ldapAccountDomainName": "Doména, která se používá k autorizaci k serveru LDAP.",
"ldapAccountDomainNameShort": "Krátká doména, která se používá k autorizaci k serveru LDAP.",
"ldapUserTeams": "LDAP týmy pro uživatele.",
"ldapUserDefaultTeam": "Výchozí tým pro vytvořeného uživatele. Další informace najdete v uživatelském profilu.",
"b2cMode": "Ve výchozím nastavení je AutoCRM přizpůsoben pro B2B. Můžete jej přepnout na B2C.",
"aclStrictMode": "Povoleno: Přístup k rozsahům bude zakázán, pokud není uveden v rolích. \nZakázán: Přístup k rozsahům bude povolen, pokud není uveden v rolích.",
"outboundEmailIsShared": "Povolit posílání emailů uživatelům pomocí SMTP.",
"streamEmailNotificationsEntityList": "Emailová upozornění na aktualizace streamu sledovaných záznamů. Uživatelé budou dostávat e-mailová oznámení pouze pro určené typy entit.",
"authTokenPreventConcurrent": "Uživatelé nebudou moci být přihlášeni na více zařízeních současně.",
"ldapPortalUserLdapAuth": "Umožněte uživatelům portálu používat autentizaci LDAP namísto autentizace Auto.",
"ldapPortalUserPortals": "Výchozí portály pro vytvořeného uživatele portálu",
"ldapPortalUserRoles": "Výchozí role pro vytvořeného uživatele portálu",
"jobPoolConcurrencyNumber": "Maximální počet procesů spuštěných současně.",
"cronDisabled": "Cron se nespustí.",
"maintenanceMode": "Do systému budou mít přístup pouze správci.",
"ldapAccountCanonicalForm": "Typ kanonického formuláře vašeho účtu. K dispozici jsou 4 možnosti: \n- „Dn“ - formulář ve formátu „CN = tester, OU = espocrm, DC = test, DC = lan“. - „Uživatelské jméno“ - formulář „tester“ .- „Zpětné lomítko“ - formulář „SPOLEČNOST \\ tester“. - „Principal“ - formulář „tester@company.com“.",
"massEmailVerp": "Variabilní zpětná cesta obálky. Pro lepší zpracování odražených zpráv. Ujistěte se, že to váš poskytovatel SMTP podporuje.",
"addressStateList": "Návrhy států pro adresní pole.",
"addressCityList": "Návrhy měst pro adresní pole.",
"addressCountryList": "Návrhy zemí pro adresní pole.",
"exportDisabled": "Zakázat export pro běžné uživatele.",
"siteUrl": "URL vašeho CRM systému.",
"useCache": "Nedoporučuje se deaktivovat, pokud se nejedná o účely vývoje.",
"useWebSocket": "WebSocket umožňuje obousměrnou interaktivní komunikaci mezi serverem a prohlížečem. Vyžaduje nastavení démonu WebSocket na vašem serveru. Pro více informací se podívejte do dokumentace.",
"emailNotificationsDelay": "Zprávu lze upravit ve stanoveném časovém rámci před odesláním oznámení.",
"recordsPerPageSelect": "Počet záznamů na stránku ve výběru.",
"workingTimeCalendar": "Pracovní kalendář pro zobrazení pracovní doby.",
"oidcFallback": "Povolit záložní přihlášení.",
"oidcCreateUser": "Automaticky vytvářet nové uživatele z OIDC.",
"oidcSync": "Synchronizovat uživatelské údaje z OIDC.",
"oidcSyncTeams": "Synchronizovat týmy z OIDC.",
"oidcUsernameClaim": "OIDC nárok pro uživatelské jméno.",
"oidcTeams": "OIDC týmy pro uživatele.",
"recordsPerPageKanban": "Počet záznamů na stránku v Kanban zobrazení.",
"jobForceUtc": "Použije časové pásmo UTC pro plánované úlohy. Jinak bude použito časové pásmo nastavené v nastavení.",
"authIpAddressCheckExcludedUsers": "Uživatelé, kteří se budou moci přihlásit z jakéhokoli místa.",
"authIpAddressWhitelist": "Seznam IP adres nebo rozsahů v notaci CIDR.\n\nPortály nejsou omezeny.",
"oidcGroupClaim": "OIDC nárok pro skupinové informace.",
"outboundEmailFromAddress": "Systémová emailová adresa.",
"baselineRole": "Základní role definuje minimální úroveň přístupových práv pro všechny uživatele. Tato role je automaticky aplikována na všechny uživatele bez ohledu na jejich ostatní role.",
"displayListViewRecordCount": "Zobrazit celkový počet záznamů v zobrazení seznamu.",
"currencyList": "Dostupné měny v systému.",
"activitiesEntityList": "Entity, které se považují za aktivity.",
"historyEntityList": "Entity, které se považují za historii.",
"calendarEntityList": "Entity zobrazené v kalendáři.",
"globalSearchEntityList": "Entity dostupné v globálním vyhledávání.",
"passwordRecoveryForInternalUsersDisabled": "Obnovit heslo budou moci pouze uživatelé portálu.",
"passwordRecoveryNoExposure": "Nebude možné určit, zda je v systému zaregistrována konkrétní e-mailová adresa.",
"emailAddressLookupEntityTypeList": "Pro automatické vyplňování emailových adres.",
"emailAddressSelectEntityTypeList": "Rozsahy pro výběr emailových adres.",
"busyRangesEntityList": "Co se bude brát v úvahu při zobrazování časových období zaneprázdnění v plánovači a časové ose.",
"emailMessageMaxSize": "Všechny příchozí emaily přesahující stanovenou velikost budou načteny bez těla a příloh.",
"authTokenLifetime": "Definuje, jak dlouho mohou existovat tokeny. \n0 - znamená žádné vypršení platnosti.",
"authTokenMaxIdleTime": "Definuje, jak dlouho mohou existovat poslední přístupové tokeny. \n0 - znamená žádné vypršení platnosti.",
"userThemesDisabled": "Pokud je zaškrtnuto, uživatelé nebudou moci vybrat jiné téma.",
"currencyDecimalPlaces": "Počet desetinných míst. Pokud jsou prázdné, zobrazí se všechna neprázdná desetinná místa.",
"aclAllowDeleteCreated": "Uživatelé budou moci odebrat záznamy, které vytvořili, i když nemají přístup k odstranění.",
"textFilterUseContainsForVarchar": "Pokud není zaškrtnuto, použije se operátor „začíná na“. Můžete použít zástupný znak '%'.",
"emailAddressIsOptedOutByDefault": "Při vytváření nového záznamu bude emailová adresa označena jako odhlášena.",
"cleanupDeletedRecords": "Odebrané záznamy budou po chvíli z databáze odstraněny.",
"jobRunInParallel": "Úlohy budou prováděny paralelně.",
"jobMaxPortion": "Maximální počet zpracovaných úloh na jedno provedení.",
"daemonInterval": "Interval spouštění démona v sekundách.",
"daemonMaxProcessNumber": "Maximální počet procesů cron běžících současně.",
"daemonProcessTimeout": "Maximální doba provedení (v sekundách) přidělená jednomu procesu cron.",
"oidcLogoutUrl": "URL pro odhlášení z OIDC poskytovatele.",
"quickSearchFullTextAppendWildcard": "Připojte zástupný znak k dotazu automatického dokončování, pokud je povoleno fulltextové vyhledávání. Snižuje to výkon vyhledávání."
},
"labels": {
"System": "Systém",
"Locale": "Lokalizace",
"Configuration": "Konfigurace",
"In-app Notifications": "In-app notifikace",
"Email Notifications": "Email notifikace",
"Currency Settings": "Nastavení měn",
"Currency Rates": "Kurzy měn",
"Mass Email": "Hromadný email",
"Test Connection": "Test připojení",
"Connecting": "Připojování...",
"Activities": "Aktivity",
"Admin Notifications": "Oznámení správce",
"Search": "Vyhledat",
"Misc": "Vedlejší",
"Passwords": "Hesla",
"2-Factor Authentication": "Dvoufaktorové ověřování",
"Group Tab": "Skupina záložek",
"Attachments": "Přílohy",
"IdP Group": "IdP skupina",
"Divider": "Oddělovač",
"General": "Obecné",
"Navbar": "Navigační panel",
"Phone Numbers": "Telefonní čísla",
"Access": "Přístup",
"Strength": "Síla",
"Recovery": "Obnovení",
"Scheduled Send": "Naplánované odeslání"
},
"messages": {
"ldapTestConnection": "Připojení bylo úspěšně navázáno.",
"confirmBaselineRoleChange": "Opravdu chcete změnit základní roli? Tato změna ovlivní přístupová práva všech uživatelů."
},
"options": {
"streamEmailNotificationsTypeList": {
"Post": "Příspěvky",
"Status": "Aktualizace stavu",
"EmailReceived": "Přijaté emaily"
},
"personNameFormat": {
"firstLast": "Jméno Příjmení",
"lastFirst": "Příjmení Jméno",
"firstMiddleLast": "Jméno Prostřední jméno Příjmení",
"lastFirstMiddle": "Příjmení Jméno Prostřední jméno"
},
"auth2FAMethodList": {
"Email": "E-mail"
}
}
}
{
"fields": {
"useCache": "Použít cache",
"dateFormat": "Formát data",
"timeFormat": "Formát času",
"timeZone": "Časové pásmo",
"weekStart": "První den v týdnu",
"thousandSeparator": "Oddělovač tisíců",
"decimalMark": "Desetinný oddělovač",
"defaultCurrency": "Výchozí měna",
"baseCurrency": "Bázová měna",
"currencyRates": "Kurzy měn",
"currencyList": "Seznam měn",
"language": "Jazyk",
"companyLogo": "Logo společnosti",
"ldapPort": "LDAP Port",
"ldapAuth": "LDAP Auth",
"ldapSecurity": "Zabezpečení",
"ldapPassword": "Heslo",
"outboundEmailFromName": "Od (jméno)",
"outboundEmailIsShared": "Sdílení",
"recordsPerPage": "Záznamy na stránku",
"recordsPerPageSmall": "Záznamy na stránku (malý)",
"tabList": "Seznam záložek",
"quickCreateList": "Rychlé odkazy",
"exportDelimiter": "Export oddělovač",
"globalSearchEntityList": "Seznam entit globálního vyhledávání",
"authenticationMethod": "Autentizační metoda",
"ldapHost": "LDAP Host",
"ldapAccountCanonicalForm": "LDAP Account Canonical Form",
"ldapAccountDomainName": "Název domény účtu",
"ldapTryUsernameSplit": "Zkuste rozdělit uživatelské jméno",
"ldapCreateEspoUser": "Vytvořit uživatele v EspoCRM",
"ldapUserLoginFilter": "Filtr uživatelského přihlášení",
"ldapAccountDomainNameShort": "Account Domain Name krátké",
"ldapOptReferrals": "Volit doporučení",
"exportDisabled": "Zakázat export (povolen pouze správce)",
"b2cMode": "Režm B2C",
"avatarsDisabled": "Zakázat avatary",
"displayListViewRecordCount": "Zobrazit celkový počet (v zobrazení seznamu)",
"theme": "Téma",
"userThemesDisabled": "Zakázat uživatelské motivy",
"emailMessageMaxSize": "Maximální velikost emailu (Mb)",
"personalEmailMaxPortionSize": "Maximální velikost emailové části pro načítání osobních účtů",
"inboundEmailMaxPortionSize": "Maximální velikost emailové části pro načítání skupinových účtů",
"authTokenLifetime": "Životnost ověřovacího tokenu (hodiny)",
"authTokenMaxIdleTime": "Maximální doba nečinnosti ověřovacího tokenu (hodiny)",
"dashboardLayout": "Rozvržení Dashboardu (výchozí)",
"siteUrl": "URL stránky",
"addressPreview": "Náhled adresy",
"addressFormat": "Formát adresy",
"notificationSoundsDisabled": "Zakázat zvuky oznámení",
"applicationName": "Název aplikace",
"ldapUsername": "Uživatelské jméno",
"ldapBindRequiresDn": "Přiřazení vyžaduje Dn",
"ldapBaseDn": "Bázové Dn",
"ldapUserNameAttribute": "Atribut uživatelského jména",
"ldapUserObjectClass": "Třída objektu uživatele",
"ldapUserTitleAttribute": "Atribut názvu uživatele",
"ldapUserFirstNameAttribute": "Atribut křestního jména uživatele",
"ldapUserLastNameAttribute": "Atribut příjmení uživatele",
"ldapUserEmailAddressAttribute": "Atribut emailové adresy uživatele",
"ldapUserTeams": "Týmy uživatele",
"ldapUserDefaultTeam": "Výchozí tým uživatele",
"ldapUserPhoneNumberAttribute": "Atribut telefonního čísla uživatele",
"assignmentNotificationsEntityList": "Entity k upozornění podle přiřazení",
"assignmentEmailNotifications": "Poslat emailová upozornění podle přiřazení",
"assignmentEmailNotificationsEntityList": "Entity k upozornění emailem podle přiřazení",
"streamEmailNotifications": "Oznámení o aktualizacích ve streamu pro interní uživatele",
"portalStreamEmailNotifications": "Oznámení o aktualizacích ve streamu pro uživatele portálu",
"streamEmailNotificationsEntityList": "Rozsahy emailových oznámení o streamu",
"calendarEntityList": "Seznam entit kalendáře",
"mentionEmailNotifications": "Zasílejte emailová oznámení o nových příspěvcích",
"massEmailDisableMandatoryOptOutLink": "Zakázat povinný odkaz pro odhlášení",
"activitiesEntityList": "Seznam entit aktivit",
"historyEntityList": "Seznam entit historie",
"currencyFormat": "Formát měny",
"currencyDecimalPlaces": "Počet desetinných míst měny",
"followCreatedEntities": "Sledovat vytvořené entity",
"aclAllowDeleteCreated": "Povolit odebrání vytvořených záznamů",
"adminNotifications": "Systémová oznámení v administračním panelu",
"adminNotificationsNewVersion": "Zobrazit oznámení, až bude k dispozici nová verze CRM",
"massEmailMaxPerHourCount": "Maximální počet e-mailů odeslaných za hodinu",
"maxEmailAccountCount": "Maximální počet osobních emailových účtů na uživatele",
"streamEmailNotificationsTypeList": "Na co upozorňovat",
"authTokenPreventConcurrent": "Pouze jeden ověřovací token na uživatele",
"scopeColorsDisabled": "Zakázat barvy rozsahu",
"tabColorsDisabled": "Zakázat barvy záložek",
"tabIconsDisabled": "Zakázat ikony na kartě",
"textFilterUseContainsForVarchar": "Při filtrování polí varchar používat operátor „obsahuje“",
"emailAddressIsOptedOutByDefault": "Označit nové emailové adresy jako odhlášené",
"outboundEmailBccAddress": "Adresa BCC pro externí klienty",
"adminNotificationsNewExtensionVersion": "Zobrazit oznámení, když jsou k dispozici nové verze rozšíření",
"cleanupDeletedRecords": "Vyčistit smazané záznamy",
"ldapPortalUserLdapAuth": "Pro uživatele portálu použijte ověřování LDAP",
"ldapPortalUserPortals": "Výchozí portály pro uživatele portálu",
"ldapPortalUserRoles": "Výchozí role pro uživatele portálu",
"fiscalYearShift": "Začátek fiskálního roku",
"jobRunInParallel": "Úlohy běží paralelně",
"jobMaxPortion": "Maximální velikost části úloh",
"jobPoolConcurrencyNumber": "Číslo souběhu úloh",
"daemonInterval": "Interval démona",
"daemonMaxProcessNumber": "Maximální počet procesů démona",
"daemonProcessTimeout": "Timeout procesu démona",
"addressCityList": "Seznam měst při našeptávání políčka adresa",
"addressStateList": "Seznam států pro našeptávání adres",
"cronDisabled": "Zakázat Cron",
"maintenanceMode": "Režim údržby",
"useWebSocket": "Použít WebSocket",
"emailNotificationsDelay": "Zpoždění e-mailových oznámení (v sekundách)",
"massEmailOpenTracking": "Sledování otevření emailů",
"passwordRecoveryDisabled": "Zakázat obnovení hesla",
"passwordRecoveryForAdminDisabled": "Zakázat obnovení hesla pro uživatele správce",
"passwordGenerateLength": "Délka vygenerovaných hesel",
"passwordStrengthLength": "Minimální délka hesla",
"passwordStrengthLetterCount": "Počet písmen požadovaných v hesle",
"passwordStrengthNumberCount": "Počet číslic požadovaných v hesle",
"passwordStrengthBothCases": "Zabraňte vystavení e-mailové adresy ve formuláři pro obnovení hesla",
"auth2FA": "Povolit dvoufaktorové ověřování",
"auth2FAMethodList": "Dostupné metody dvoufaktorové autorizace",
"personNameFormat": "Formát jména osoby",
"newNotificationCountInTitle": "Zobrazit nové číslo oznámení v názvu stránky",
"massEmailVerp": "Použít VERP",
"emailAddressLookupEntityTypeList": "Rozsahy vyhledávání emailových adres",
"busyRangesEntityList": "Seznam volných / zaneprázdněných entit",
"passwordRecoveryForInternalUsersDisabled": "Zakázat obnovení hesla pro uživatele",
"passwordRecoveryNoExposure": "Zabraňte vystavení emailové adresy ve formuláři pro obnovení hesla",
"auth2FAForced": "Přimět uživatele k nastavení dvoufaktorové autorizace",
"smsProvider": "Poskytovatel SMS",
"outboundSmsFromNumber": "SMS z čísla",
"recordsPerPageSelect": "Záznamy na stránku (Výběr)",
"attachmentUploadMaxSize": "Maximální velikost přílohy (Mb)",
"attachmentUploadChunkSize": "Velikost části nahrávání příloh (Mb)",
"workingTimeCalendar": "Pracovní kalendář",
"oidcClientId": "OIDC ID klienta",
"oidcClientSecret": "OIDC tajný klíč klienta",
"oidcAuthorizationRedirectUri": "OIDC URI přesměrování autorizace",
"oidcAuthorizationEndpoint": "OIDC koncový bod autorizace",
"oidcTokenEndpoint": "OIDC koncový bod tokenu",
"oidcJwksEndpoint": "OIDC koncový bod JSON Web Key Set",
"oidcJwtSignatureAlgorithmList": "OIDC povolené podpisové algoritmy JWT",
"oidcScopes": "OIDC rozsahy",
"oidcGroupClaim": "OIDC nárok skupiny",
"oidcCreateUser": "OIDC vytvořit uživatele",
"oidcUsernameClaim": "OIDC nárok uživatelského jména",
"oidcTeams": "OIDC týmy",
"oidcSync": "OIDC synchronizace",
"oidcSyncTeams": "OIDC synchronizace týmů",
"oidcFallback": "OIDC záložní přihlášení",
"oidcAllowRegularUserFallback": "OIDC povolit záložní přihlášení běžným uživatelům",
"oidcAllowAdminUser": "OIDC povolit přihlášení správcům",
"oidcLogoutUrl": "OIDC URL odhlášení",
"pdfEngine": "PDF generátor",
"recordsPerPageKanban": "Záznamy na stránku (Kanban)",
"auth2FAInPortal": "Povolit dvoufaktorové ověřování v portálech",
"massEmailMaxPerBatchCount": "Maximální počet e-mailů odeslaných za dávku",
"phoneNumberNumericSearch": "Číselné vyhledávání telefonních čísel",
"phoneNumberInternational": "Mezinárodní telefonní čísla",
"phoneNumberPreferredCountryList": "Upřednostňované země pro telefonního čísla",
"jobForceUtc": "Vynutit UTC pro úlohy",
"emailAddressSelectEntityTypeList": "Rozsahy výběru emailových adres",
"phoneNumberExtensions": "Přípony telefonních čísel",
"oidcAuthorizationPrompt": "OIDC výzva k autorizaci",
"quickSearchFullTextAppendWildcard": "Rychlé vyhledávání přidat wildcard symbol",
"authIpAddressCheck": "Omezovat přístup na základě IP adresy",
"authIpAddressWhitelist": "Whitelist IP adres",
"authIpAddressCheckExcludedUsers": "Uživatelé vyřazení z kontroly",
"streamEmailWithContentEntityTypeList": "Entity s obsahem emailu v poznámkách streamu",
"emailScheduledBatchCount": "Maximální počet naplánovaných e-mailů odeslaných za dávku",
"passwordStrengthSpecialCharacterCount": "Počet speciálních znaků požadovaných v hesle",
"availableReactions": "Dostupné reakce",
"outboundEmailFromAddress": "Odesílatelská emailová adresa",
"oidcUserInfoEndpoint": "OIDC koncový bod informací o uživateli",
"baselineRole": "Základní role"
},
"tooltips": {
"recordsPerPage": "Počet záznamů původně zobrazených v zobrazení seznamu.",
"recordsPerPageSmall": "Počet záznamů v panelu vztahů.",
"followCreatedEntities": "Pokud uživatel vytvoří záznam, bude jej sledovat automaticky.",
"ldapUsername": "Úplné uživatelské jméno systému, které umožňuje vyhledávat další uživatele. Např. \"CN = uživatel systému LDAP, OU = uživatelé, OU = espocrm, DC = test, DC = lan\".",
"ldapPassword": "Heslo pro přístup k serveru LDAP.",
"ldapAuth": "Přístup k pověření serveru LDAP.",
"ldapUserNameAttribute": "Atribut k identifikaci uživatele. \nNapř. „userPrincipalName“ nebo „sAMAccountName“ pro Active Directory, „uid“ pro OpenLDAP.",
"ldapUserObjectClass": "Atribut ObjectClass pro vyhledávání uživatelů. Např. „osoba“ pro AD, „inetOrgPerson“ pro OpenLDAP.",
"ldapBindRequiresDn": "Možnost formátovat uživatelské jméno ve formuláři DN.",
"ldapBaseDn": "Výchozí základní DN používané pro vyhledávání uživatelů. Např. \"OU = uživatelé, OU = espocrm, DC = test, DC = lan\".",
"ldapTryUsernameSplit": "Možnost rozdělit uživatelské jméno na doménu.",
"ldapOptReferrals": "pokud by měla být sledována doporučení klientovi LDAP.",
"ldapCreateEspoUser": "Tato možnost umožňuje EspoCRM vytvořit uživatele z LDAP.",
"ldapUserFirstNameAttribute": "Atribut LDAP, který se používá k určení křestního jména uživatele. Např. \"křestní jméno\".",
"ldapUserLastNameAttribute": "Atribut LDAP, který se používá k určení příjmení uživatele. Např. \"sn\".",
"ldapUserTitleAttribute": "LDAP atribut pro titul uživatele.",
"ldapUserEmailAddressAttribute": "Atribut LDAP, který se používá k určení e-mailové adresy uživatele. Např. \"pošta\".",
"ldapUserPhoneNumberAttribute": "LDAP atribut pro telefonní číslo uživatele.",
"ldapUserLoginFilter": "Filtr, který umožňuje omezit uživatele, kteří mohou používat EspoCRM. Např. \"memberOf = CN = espoGroup, OU = groups, OU = espocrm, DC = test, DC = lan\".",
"ldapAccountDomainName": "Doména, která se používá k autorizaci k serveru LDAP.",
"ldapAccountDomainNameShort": "Krátká doména, která se používá k autorizaci k serveru LDAP.",
"ldapUserTeams": "LDAP týmy pro uživatele.",
"ldapUserDefaultTeam": "Výchozí tým pro vytvořeného uživatele. Další informace najdete v uživatelském profilu.",
"b2cMode": "Ve výchozím nastavení je EspoCRM přizpůsoben pro B2B. Můžete jej přepnout na B2C.",
"aclStrictMode": "Povoleno: Přístup k rozsahům bude zakázán, pokud není uveden v rolích. \nZakázán: Přístup k rozsahům bude povolen, pokud není uveden v rolích.",
"outboundEmailIsShared": "Povolit posílání emailů uživatelům pomocí SMTP.",
"streamEmailNotificationsEntityList": "Emailová upozornění na aktualizace streamu sledovaných záznamů. Uživatelé budou dostávat e-mailová oznámení pouze pro určené typy entit.",
"authTokenPreventConcurrent": "Uživatelé nebudou moci být přihlášeni na více zařízeních současně.",
"ldapPortalUserLdapAuth": "Umožněte uživatelům portálu používat autentizaci LDAP namísto autentizace Auto.",
"ldapPortalUserPortals": "Výchozí portály pro vytvořeného uživatele portálu",
"ldapPortalUserRoles": "Výchozí role pro vytvořeného uživatele portálu",
"jobPoolConcurrencyNumber": "Maximální počet procesů spuštěných současně.",
"cronDisabled": "Cron se nespustí.",
"maintenanceMode": "Do systému budou mít přístup pouze správci.",
"ldapAccountCanonicalForm": "Typ kanonického formuláře vašeho účtu. K dispozici jsou 4 možnosti: \n- „Dn“ - formulář ve formátu „CN = tester, OU = espocrm, DC = test, DC = lan“. - „Uživatelské jméno“ - formulář „tester“ .- „Zpětné lomítko“ - formulář „SPOLEČNOST \\ tester“. - „Principal“ - formulář „tester@company.com“.",
"massEmailVerp": "Variabilní zpětná cesta obálky. Pro lepší zpracování odražených zpráv. Ujistěte se, že to váš poskytovatel SMTP podporuje.",
"addressStateList": "Návrhy států pro adresní pole.",
"addressCityList": "Návrhy měst pro adresní pole.",
"addressCountryList": "Návrhy zemí pro adresní pole.",
"exportDisabled": "Zakázat export pro běžné uživatele.",
"siteUrl": "URL vašeho CRM systému.",
"useCache": "Nedoporučuje se deaktivovat, pokud se nejedná o účely vývoje.",
"useWebSocket": "WebSocket umožňuje obousměrnou interaktivní komunikaci mezi serverem a prohlížečem. Vyžaduje nastavení démonu WebSocket na vašem serveru. Pro více informací se podívejte do dokumentace.",
"emailNotificationsDelay": "Zprávu lze upravit ve stanoveném časovém rámci před odesláním oznámení.",
"recordsPerPageSelect": "Počet záznamů na stránku ve výběru.",
"workingTimeCalendar": "Pracovní kalendář pro zobrazení pracovní doby.",
"oidcFallback": "Povolit záložní přihlášení.",
"oidcCreateUser": "Automaticky vytvářet nové uživatele z OIDC.",
"oidcSync": "Synchronizovat uživatelské údaje z OIDC.",
"oidcSyncTeams": "Synchronizovat týmy z OIDC.",
"oidcUsernameClaim": "OIDC nárok pro uživatelské jméno.",
"oidcTeams": "OIDC týmy pro uživatele.",
"recordsPerPageKanban": "Počet záznamů na stránku v Kanban zobrazení.",
"jobForceUtc": "Použije časové pásmo UTC pro plánované úlohy. Jinak bude použito časové pásmo nastavené v nastavení.",
"authIpAddressCheckExcludedUsers": "Uživatelé, kteří se budou moci přihlásit z jakéhokoli místa.",
"authIpAddressWhitelist": "Seznam IP adres nebo rozsahů v notaci CIDR.\n\nPortály nejsou omezeny.",
"oidcGroupClaim": "OIDC nárok pro skupinové informace.",
"outboundEmailFromAddress": "Systémová emailová adresa.",
"baselineRole": "Základní role definuje minimální úroveň přístupových práv pro všechny uživatele. Tato role je automaticky aplikována na všechny uživatele bez ohledu na jejich ostatní role.",
"displayListViewRecordCount": "Zobrazit celkový počet záznamů v zobrazení seznamu.",
"currencyList": "Dostupné měny v systému.",
"activitiesEntityList": "Entity, které se považují za aktivity.",
"historyEntityList": "Entity, které se považují za historii.",
"calendarEntityList": "Entity zobrazené v kalendáři.",
"globalSearchEntityList": "Entity dostupné v globálním vyhledávání.",
"passwordRecoveryForInternalUsersDisabled": "Obnovit heslo budou moci pouze uživatelé portálu.",
"passwordRecoveryNoExposure": "Nebude možné určit, zda je v systému zaregistrována konkrétní e-mailová adresa.",
"emailAddressLookupEntityTypeList": "Pro automatické vyplňování emailových adres.",
"emailAddressSelectEntityTypeList": "Rozsahy pro výběr emailových adres.",
"busyRangesEntityList": "Co se bude brát v úvahu při zobrazování časových období zaneprázdnění v plánovači a časové ose.",
"emailMessageMaxSize": "Všechny příchozí emaily přesahující stanovenou velikost budou načteny bez těla a příloh.",
"authTokenLifetime": "Definuje, jak dlouho mohou existovat tokeny. \n0 - znamená žádné vypršení platnosti.",
"authTokenMaxIdleTime": "Definuje, jak dlouho mohou existovat poslední přístupové tokeny. \n0 - znamená žádné vypršení platnosti.",
"userThemesDisabled": "Pokud je zaškrtnuto, uživatelé nebudou moci vybrat jiné téma.",
"currencyDecimalPlaces": "Počet desetinných míst. Pokud jsou prázdné, zobrazí se všechna neprázdná desetinná místa.",
"aclAllowDeleteCreated": "Uživatelé budou moci odebrat záznamy, které vytvořili, i když nemají přístup k odstranění.",
"textFilterUseContainsForVarchar": "Pokud není zaškrtnuto, použije se operátor „začíná na“. Můžete použít zástupný znak '%'.",
"emailAddressIsOptedOutByDefault": "Při vytváření nového záznamu bude emailová adresa označena jako odhlášena.",
"cleanupDeletedRecords": "Odebrané záznamy budou po chvíli z databáze odstraněny.",
"jobRunInParallel": "Úlohy budou prováděny paralelně.",
"jobMaxPortion": "Maximální počet zpracovaných úloh na jedno provedení.",
"daemonInterval": "Interval spouštění démona v sekundách.",
"daemonMaxProcessNumber": "Maximální počet procesů cron běžících současně.",
"daemonProcessTimeout": "Maximální doba provedení (v sekundách) přidělená jednomu procesu cron.",
"oidcLogoutUrl": "URL pro odhlášení z OIDC poskytovatele.",
"quickSearchFullTextAppendWildcard": "Připojte zástupný znak k dotazu automatického dokončování, pokud je povoleno fulltextové vyhledávání. Snižuje to výkon vyhledávání."
},
"labels": {
"System": "Systém",
"Locale": "Lokalizace",
"Configuration": "Konfigurace",
"In-app Notifications": "In-app notifikace",
"Email Notifications": "Email notifikace",
"Currency Settings": "Nastavení měn",
"Currency Rates": "Kurzy měn",
"Mass Email": "Hromadný email",
"Test Connection": "Test připojení",
"Connecting": "Připojování...",
"Activities": "Aktivity",
"Admin Notifications": "Oznámení správce",
"Search": "Vyhledat",
"Misc": "Vedlejší",
"Passwords": "Hesla",
"2-Factor Authentication": "Dvoufaktorové ověřování",
"Group Tab": "Skupina záložek",
"Attachments": "Přílohy",
"IdP Group": "IdP skupina",
"Divider": "Oddělovač",
"General": "Obecné",
"Navbar": "Navigační panel",
"Phone Numbers": "Telefonní čísla",
"Access": "Přístup",
"Strength": "Síla",
"Recovery": "Obnovení",
"Scheduled Send": "Naplánované odeslání"
},
"messages": {
"ldapTestConnection": "Připojení bylo úspěšně navázáno.",
"confirmBaselineRoleChange": "Opravdu chcete změnit základní roli? Tato změna ovlivní přístupová práva všech uživatelů."
},
"options": {
"streamEmailNotificationsTypeList": {
"Post": "Příspěvky",
"Status": "Aktualizace stavu",
"EmailReceived": "Přijaté emaily"
},
"personNameFormat": {
"firstLast": "Jméno Příjmení",
"lastFirst": "Příjmení Jméno",
"firstMiddleLast": "Jméno Prostřední jméno Příjmení",
"lastFirstMiddle": "Příjmení Jméno Prostřední jméno"
},
"auth2FAMethodList": {
"Email": "E-mail"
}
}
}

View File

@@ -72,7 +72,7 @@ class UploadUrlService
*/
public function uploadImage(string $url, FieldData $data): Attachment
{
if (!$this->urlCheck->isNotInternalUrl($url)) {
if (!$this->urlCheck->isUrlAndNotIternal($url)) {
throw new ForbiddenSilent("Not allowed URL.");
}
@@ -114,9 +114,20 @@ class UploadUrlService
/**
* @param non-empty-string $url
* @return ?array{string, string} A type and contents.
* @throws ForbiddenSilent
*/
private function getImageDataByUrl(string $url): ?array
{
$resolve = $this->urlCheck->getCurlResolve($url);
if ($resolve === []) {
throw new ForbiddenSilent("Could not resolve the host.");
}
if ($resolve !== null && !$this->urlCheck->validateCurlResolveNotInternal($resolve)) {
throw new ForbiddenSilent("Forbidden host.");
}
$type = null;
if (!function_exists('curl_init')) {
@@ -144,6 +155,10 @@ class UploadUrlService
$opts[\CURLOPT_PROTOCOLS] = \CURLPROTO_HTTPS | \CURLPROTO_HTTP;
$opts[\CURLOPT_REDIR_PROTOCOLS] = \CURLPROTO_HTTPS;
if ($resolve) {
$opts[CURLOPT_RESOLVE] = $resolve;
}
$ch = curl_init();
curl_setopt_array($ch, $opts);

View File

@@ -36,8 +36,11 @@ use Espo\Core\Api\Response;
use Espo\Core\Api\ResponseComposer;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Exceptions\NotFound;
use Espo\Entities\Attachment;
use Espo\Entities\Email;
use Espo\Entities\User;
use Espo\ORM\EntityManager;
use Espo\Tools\Email\ImportEmlService;
/**
@@ -49,6 +52,7 @@ class PostImportEml implements Action
private Acl $acl,
private User $user,
private ImportEmlService $service,
private EntityManager $entityManager,
) {}
public function process(Request $request): Response
@@ -61,11 +65,32 @@ class PostImportEml implements Action
throw new BadRequest("No 'fileId'.");
}
$email = $this->service->import($fileId, $this->user->getId());
$attachment = $this->getAttachment($fileId);
$email = $this->service->import($attachment, $this->user->getId());
return ResponseComposer::json(['id' => $email->getId()]);
}
/**
* @throws NotFound
* @throws Forbidden
*/
private function getAttachment(string $fileId): Attachment
{
$attachment = $this->entityManager->getRDBRepositoryByClass(Attachment::class)->getById($fileId);
if (!$attachment) {
throw new NotFound("Attachment not found.");
}
if (!$this->acl->checkEntityRead($attachment)) {
throw new Forbidden("No access to attachment.");
}
return $attachment;
}
/**
* @throws Forbidden
*/

View File

@@ -115,7 +115,7 @@ class PostSendTest implements Action
if (
!$this->addressUtil->isAllowedAddress($smtpParams) &&
!$this->hostCheck->isNotInternalHost($server)
!$this->hostCheck->isHostAndNotInternal($server)
) {
throw new Forbidden("Not allowed internal host.");
}

View File

@@ -31,7 +31,6 @@ namespace Espo\Tools\Email;
use Espo\Core\Exceptions\Conflict;
use Espo\Core\Exceptions\Error;
use Espo\Core\Exceptions\NotFound;
use Espo\Core\FileStorage\Manager;
use Espo\Core\Mail\Exceptions\ImapError;
use Espo\Core\Mail\Importer;
@@ -56,16 +55,13 @@ class ImportEmlService
/**
* Import an EML.
*
* @param string $fileId An attachment ID.
* @param ?string $userId A user ID to relate an email with.
* @return Email An Email.
* @throws NotFound
* @throws Error
* @throws Conflict
*/
public function import(string $fileId, ?string $userId = null): Email
public function import(Attachment $attachment, ?string $userId = null): Email
{
$attachment = $this->getAttachment($fileId);
$contents = $this->fileStorageManager->getContents($attachment);
try {
@@ -93,20 +89,6 @@ class ImportEmlService
return $email;
}
/**
* @throws NotFound
*/
private function getAttachment(string $fileId): Attachment
{
$attachment = $this->entityManager->getRDBRepositoryByClass(Attachment::class)->getById($fileId);
if (!$attachment) {
throw new NotFound("Attachment not found.");
}
return $attachment;
}
/**
* @throws Conflict
*/

View File

@@ -36,6 +36,7 @@ use Espo\Core\Notification\EmailNotificationHandler;
use Espo\Core\Mail\SenderParams;
use Espo\Core\Utils\Config\ApplicationConfig;
use Espo\Core\Utils\DateTime as DateTimeUtil;
use Espo\Core\Utils\Markdown\Markdown;
use Espo\Entities\Note;
use Espo\ORM\Collection;
use Espo\Repositories\Portal as PortalRepository;
@@ -58,8 +59,6 @@ use Espo\Core\Utils\TemplateFileManager;
use Espo\Core\Utils\Util;
use Espo\Tools\Stream\NoteAccessControl;
use Michelf\Markdown;
use Exception;
use DateTime;
use Throwable;
@@ -325,11 +324,10 @@ class Processor
$data['userName'] = $note->get('createdByName');
$post = Markdown::defaultTransform(
$note->get('post') ?? ''
);
$post = $note->getPost() ?? '';
$data['post'] = $post;
$data['post'] = Markdown::transform($post);
$subjectTpl = $this->templateFileManager->getTemplate('mention', 'subject');
$bodyTpl = $this->templateFileManager->getTemplate('mention', 'body');
@@ -486,9 +484,7 @@ class Processor
$data['userName'] = $note->get('createdByName');
$post = Markdown::defaultTransform($note->getPost() ?? '');
$data['post'] = $post;
$data['post'] = Markdown::transform($note->getPost() ?? '');
$parent = null;

View File

@@ -141,7 +141,7 @@ class RecordService
];
if ($this->user->isPortal()) {
$where[] = ['isInternal' => true];
$where[] = ['isInternal' => false];
}
$this->applyPortalAccess($builder, $where);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
/*! espocrm 2026-03-06 */
/*! espocrm 2026-03-24 */
define("modules/crm/views/scheduler/scheduler",["exports","view","vis-data","vis-timeline","moment","jquery"],function(t,e,a,s,n,r){Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;e=i(e);n=i(n);r=i(r);function i(t){return t&&t.__esModule?t:{default:t}}class o extends e.default{templateContent=`
<div class="timeline"></div>
<link href="{{basePath}}client/modules/crm/css/vis.css" rel="stylesheet">

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,374 @@
# 📚 EspoCRM Dokumentations-Index
**Schneller Zugriff auf alle Dokumentations-Ressourcen**
---
## 🎯 Quick Links für AI Agents
### START HIER ⭐
1. **[docs/ESPOCRM_BEST_PRACTICES.md](docs/ESPOCRM_BEST_PRACTICES.md)** - Vollständiges Entwickler-Handbuch
2. **[docs/README.md](docs/README.md)** - Dokumentations-Navigation & Workflow-Guide
3. `python3 custom/scripts/ki_project_overview.py` - Aktueller Projekt-Status für AI
### Essentials
- **[docs/tools/QUICKSTART.md](docs/tools/QUICKSTART.md)** - 5-Minuten Quick Start
- **[custom/scripts/validate_and_rebuild.py](custom/scripts/validate_and_rebuild.py)** - Haupt-Validierungs-Tool
- **Validierung ausführen:** `python3 custom/scripts/validate_and_rebuild.py`
---
## 📁 Dokumentations-Struktur
```
custom/
├── README.md ← Custom Actions Blueprint (Architektur)
├── CUSTOM_DIRECTORY.md ← Verzeichnisstruktur-Übersicht
├── docs/ ← 🆕 ZENTRALE DOKUMENTATION
│ ├── README.md ← Dokumentations-Navigation (START)
│ ├── ESPOCRM_BEST_PRACTICES.md ← ⭐ HAUPTDOKUMENTATION
│ ├── TESTERGEBNISSE_JUNCTION_TABLE.md ← Junction Table Guide
│ ├── ENTWICKLUNGSPLAN_ENTWICKLUNGEN.md ← Puls-System Spezifikation
│ │
│ ├── tools/ ← Tool-Dokumentation
│ │ ├── QUICKSTART.md
│ │ ├── VALIDATION_TOOLS.md
│ │ ├── E2E_TESTS_README.md
│ │ ├── KI_OVERVIEW_README.md
│ │ └── VALIDATOR_README.md
│ │
│ └── workflows/ ← Workflow-Dokumentation
│ └── README.md
├── scripts/ ← Entwicklungs-Tools
│ ├── validate_and_rebuild.py ← Haupt-Validierungs-Tool
│ ├── e2e_tests.py ← End-to-End Tests
│ ├── ki_project_overview.py ← Projekt-Analyse für AI
│ ├── espocrm_api_client.py ← API Client Library
│ ├── ki-overview.sh ← Legacy Overview Script
│ ├── run_e2e_tests.sh ← E2E Test Runner
│ └── junctiontabletests/ ← Junction Table Tests
└── workflows/ ← Workflow JSON-Definitionen
└── README.md ← Workflow-Befehle
```
---
## 📖 Dokumentations-Kategorien
### 1⃣ Entwickler-Handbuch
#### [docs/ESPOCRM_BEST_PRACTICES.md](docs/ESPOCRM_BEST_PRACTICES.md) ⭐
**Das Hauptdokument - Start hier!**
**Inhalt:**
- ✅ Projekt-Übersicht & System-Architektur
- ✅ Architektur-Prinzipien (Clean Code, 3-Schichten)
- ✅ Entity-Entwicklung (Templates, Naming, i18n)
- ✅ Relationship-Patterns (One-to-Many, Many-to-Many, Junction)
- ✅ API-Entwicklung (REST, Custom Endpoints)
- ✅ Hook-Entwicklung (Entity Lifecycle Events)
- ✅ Workflow-Management
- ✅ Testing & Validierung
- ✅ Fehlerbehandlung & Troubleshooting
- ✅ Deployment-Prozess
**Wann verwenden:**
- Neuen AI Agent briefen
- Entity erstellen
- Relationship implementieren
- API-Endpoint entwickeln
- Hook für Validierung/Berechnung erstellen
- Fehler debuggen
---
### 2⃣ Spezial-Themen
#### [docs/TESTERGEBNISSE_JUNCTION_TABLE.md](docs/TESTERGEBNISSE_JUNCTION_TABLE.md)
**Junction Tables mit additionalColumns**
**Inhalt:**
- Many-to-Many Relationships mit Zusatzfeldern
- Junction Entity als API-Endpoint
- API-CRUD Operationen
- Vollständige Code-Beispiele
- ⚠️ UI-Panel Warnung (405 Fehler)
**Wann verwenden:**
- Many-to-Many mit Zusatzfeldern implementieren
- Junction Entity API nutzen
- additionalColumns verstehen
---
#### [docs/ENTWICKLUNGSPLAN_ENTWICKLUNGEN.md](docs/ENTWICKLUNGSPLAN_ENTWICKLUNGEN.md)
**Puls-System (CPuls) Spezifikation**
**Inhalt:**
- Posteingangs-System mit KI-Analyse
- Team-basierte Dokumenten-Workflows
- First-Read-Closes Prinzip
- Entity-Definitionen CPuls, CPulsTeamZuordnung
- Middleware-Architektur
**Wann verwenden:**
- CPuls-Entity weiterentwickeln
- Dokumenten-Workflow verstehen
- KI-Integration planen
---
### 3⃣ Architektur & Struktur
#### [README.md](README.md)
**Custom Actions - Implementierungsprinzip**
**Inhalt:**
- Drei-Schichten-Architektur
- Custom Button Actions Blueprint
- Entity-Erstellung mit Relationen
- Code-Templates
- Sicherheit & ACL
**Wann verwenden:**
- Custom Button Action erstellen
- Controller/Service Pattern verstehen
- Architektur-Overview benötigen
---
#### [CUSTOM_DIRECTORY.md](CUSTOM_DIRECTORY.md)
**Verzeichnisstruktur-Übersicht**
**Inhalt:**
- Vollständige custom/ Struktur
- Backend (Espo/Custom/)
- Frontend (client/custom/)
- Metadata-Organisation
- Scripts & Workflows
**Wann verwenden:**
- Datei-Platzierung nachschlagen
- Verzeichnis-Organisation verstehen
- Neue Dateien korrekt anlegen
---
### 4⃣ Tool-Dokumentation
#### [docs/tools/QUICKSTART.md](docs/tools/QUICKSTART.md)
**5-Minuten Quick Start**
```bash
python3 custom/scripts/validate_and_rebuild.py
```
---
#### [docs/tools/VALIDATION_TOOLS.md](docs/tools/VALIDATION_TOOLS.md)
**Validierungs-Tools Details**
- PHP-CLI (php -l)
- CSSLint
- JSHint
- Integration
---
#### [docs/tools/E2E_TESTS_README.md](docs/tools/E2E_TESTS_README.md)
**End-to-End Test Framework**
- CRUD-Tests
- Relationship-Tests
- Konfiguration
---
#### [docs/tools/KI_OVERVIEW_README.md](docs/tools/KI_OVERVIEW_README.md)
**KI-Projekt-Übersicht Tool**
```bash
python3 custom/scripts/ki_project_overview.py > /tmp/project-overview.txt
```
---
### 5⃣ Workflow-Management
#### [docs/workflows/README.md](docs/workflows/README.md)
**Workflow-Format & Management**
**Befehle:**
```bash
# Liste
php custom/scripts/workflow_manager.php list
# Import
php custom/scripts/workflow_manager.php import custom/workflows/my-workflow.json
# Export
php custom/scripts/workflow_manager.php export
```
---
## 🛠️ Wichtigste Tools
| Tool | Zweck | Befehl |
|------|-------|--------|
| **validate_and_rebuild.py** | 🎯 Validierung + Rebuild + E2E + Fehlerlog | `python3 custom/scripts/validate_and_rebuild.py` |
| **ki_project_overview.py** | 📊 Projekt-Analyse für AI | `python3 custom/scripts/ki_project_overview.py` |
| **e2e_tests.py** | 🧪 End-to-End CRUD Tests | `python3 custom/scripts/e2e_tests.py` |
**NEU in validate_and_rebuild.py:**
- ✅ Automatische Fehlerlog-Analyse bei Rebuild-Fehlern
- ✅ Zeigt letzte 50 Log-Zeilen
- ✅ Filtert ERROR/WARNING/EXCEPTION
- ✅ Gibt Log-File-Pfad aus
---
## 🎓 Typische Workflows
### 1. Neuen AI Agent briefen
```bash
# 1. Hauptdokumentation lesen
cat custom/docs/ESPOCRM_BEST_PRACTICES.md
# 2. Aktuellen Projekt-Status holen
python3 custom/scripts/ki_project_overview.py > /tmp/project-overview.txt
# 3. Dokumentations-Navigation
cat custom/docs/README.md
```
---
### 2. Neue Entity entwickeln
```bash
# 1. Template nachschlagen
cat custom/docs/ESPOCRM_BEST_PRACTICES.md | grep -A 50 "Entity Definition Template"
# 2. Entity-Dateien erstellen (entityDefs, scopes, i18n)
# 3. Validierung + Rebuild
python3 custom/scripts/validate_and_rebuild.py
```
---
### 3. Relationship implementieren
```bash
# 1. Pattern nachschlagen
cat custom/docs/ESPOCRM_BEST_PRACTICES.md | grep -A 100 "Relationship-Patterns"
# 2. Links konfigurieren
# 3. Validierung (prüft bidirektionale Konsistenz)
python3 custom/scripts/validate_and_rebuild.py
```
---
### 4. Junction Table mit additionalColumns
```bash
# 1. Vollständige Anleitung
cat custom/docs/TESTERGEBNISSE_JUNCTION_TABLE.md
# 2. Implementierung (Entity + Controller + Service)
# 3. Validierung
python3 custom/scripts/validate_and_rebuild.py
```
---
### 5. Fehler debuggen
```bash
# 1. Validierung ausführen (zeigt automatisch Fehlerlog)
python3 custom/scripts/validate_and_rebuild.py
# 2. Troubleshooting Guide
cat custom/docs/ESPOCRM_BEST_PRACTICES.md | grep -A 200 "Troubleshooting"
```
---
## 🆘 Support & Hilfe
### Bei Problemen:
1. **Fehlerlog-Analyse:**
```bash
python3 custom/scripts/validate_and_rebuild.py
# → Zeigt automatisch Fehlerlog bei Rebuild-Fehlern
```
2. **Troubleshooting Guide:**
```bash
cat custom/docs/ESPOCRM_BEST_PRACTICES.md | grep -A 300 "Troubleshooting"
```
3. **Häufige Fehler:**
- Layout `false` → `{}` ändern
- i18n fehlt → beide Sprachen (de_DE + en_US) anlegen
- Relationship kaputt → bidirektional prüfen (foreign)
- ACL 403 → Rechte in Admin UI setzen
- 405 Fehler → Keine additionalColumns in UI-Panels!
---
## 📊 System-Info
- **EspoCRM Version:** 9.3.2
- **PHP Version:** 8.2.30
- **Database:** MariaDB 12.2.2
- **Docker Container:** espocrm, espocrm-db
- **Workspace:** `/var/lib/docker/volumes/vmh-espocrm_espocrm/_data`
---
## 🔄 Architektur-Update (26. März 2026)
**Änderungen:**
- ✅ `CAIKnowledge` entfernt (Hooks, Controller, i18n, Metadata)
- ✅ `CAICollections` / `CAICollectionCDokumente` entfernt
- ✅ `CAdvowareAkten` entfernt → ersetzt durch `CAkten`
- ✅ AI-Sync-Architektur: CDokumente → CAkten (direkte n:1, kein Junction Table)
- ✅ Neues Feld `aiProvider` auf CAkten (ragflow/xai, Default: ragflow)
- ✅ Hook-Chain: UpdateJunctionSyncStatus → UpdateLastSyncFromDocuments
- ✅ ESPOCRM_BEST_PRACTICES.md auf v2.5 aktualisiert
---
## 🔄 Reorganisation (9. März 2026)
**Änderungen:**
- ✅ Alle Dokumentation zentralisiert in `custom/docs/`
- ✅ Tool-Dokumentation in `custom/docs/tools/`
- ✅ Workflow-Dokumentation in `custom/docs/workflows/`
- ✅ Neue Hauptdokumentation: `ESPOCRM_BEST_PRACTICES.md`
- ✅ Test-Scripts organisiert in `custom/scripts/junctiontabletests/`
- ✅ validate_and_rebuild.py erweitert um automatische Fehlerlog-Ausgabe
**Migration:**
- `scripts/KI_OVERVIEW_README.md` → `docs/tools/`
- `scripts/VALIDATION_TOOLS.md` → `docs/tools/`
- `scripts/E2E_TESTS_README.md` → `docs/tools/`
- `scripts/QUICKSTART.md` → `docs/tools/`
- `scripts/VALIDATOR_README.md` → `docs/tools/`
- `workflows/README.md` → `docs/workflows/`
- `TESTERGEBNISSE_JUNCTION_TABLE.md` → `docs/`
- `ENTWICKLUNGSPLAN_ENTWICKLUNGEN.md` → `docs/`
---
**Letzte Aktualisierung:** 26. März 2026
**Für Fragen:** Siehe `custom/docs/ESPOCRM_BEST_PRACTICES.md`

View File

@@ -0,0 +1,71 @@
<?php
namespace Espo\Custom\Api\JunctionData;
use Espo\Core\Api\Action;
use Espo\Core\Api\Request;
use Espo\Core\Api\Response;
use Espo\Core\Api\ResponseComposer;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\NotFound;
use Espo\ORM\EntityManager;
/**
* GET /api/v1/JunctionData/CAIKnowledge/:knowledgeId/dokumentes
*
* Returns all documents linked to a knowledge entry with junction table data
*/
class GetDokumentes implements Action
{
public function __construct(
private EntityManager $entityManager
) {}
public function process(Request $request): Response
{
$knowledgeId = $request->getRouteParam('knowledgeId');
if (!$knowledgeId) {
throw new BadRequest('Knowledge ID is required');
}
// Verify knowledge exists
$knowledge = $this->entityManager->getEntityById('CAIKnowledge', $knowledgeId);
if (!$knowledge) {
throw new NotFound('Knowledge entry not found');
}
$pdo = $this->entityManager->getPDO();
$sql = "
SELECT
j.id as junctionId,
j.c_a_i_knowledge_id as cAIKnowledgeId,
j.c_dokumente_id as cDokumenteId,
j.ai_document_id as aiDocumentId,
j.syncstatus,
j.last_sync as lastSync,
d.id as documentId,
d.name as documentName,
d.blake3hash as blake3hash,
d.created_at as documentCreatedAt,
d.modified_at as documentModifiedAt
FROM c_a_i_knowledge_dokumente j
INNER JOIN c_dokumente d ON j.c_dokumente_id = d.id
WHERE j.c_a_i_knowledge_id = :knowledgeId
AND j.deleted = 0
AND d.deleted = 0
ORDER BY j.id DESC
";
$sth = $pdo->prepare($sql);
$sth->execute(['knowledgeId' => $knowledgeId]);
$results = $sth->fetchAll(\PDO::FETCH_ASSOC);
return ResponseComposer::json([
'total' => count($results),
'list' => $results
]);
}
}

View File

@@ -0,0 +1,178 @@
<?php
namespace Espo\Custom\Api\JunctionData;
use Espo\Core\Api\Action;
use Espo\Core\Api\Request;
use Espo\Core\Api\Response;
use Espo\Core\Api\ResponseComposer;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\NotFound;
use Espo\Core\Exceptions\Conflict;
use Espo\ORM\EntityManager;
/**
* POST /api/v1/JunctionData/CAIKnowledge/:knowledgeId/dokumentes/:documentId
*
* Creates or updates relationship with junction table data
* This endpoint links the entities AND sets junction columns in one call
*/
class LinkDokument implements Action
{
public function __construct(
private EntityManager $entityManager
) {}
public function process(Request $request): Response
{
$knowledgeId = $request->getRouteParam('knowledgeId');
$documentId = $request->getRouteParam('documentId');
$data = $request->getParsedBody();
if (!$knowledgeId || !$documentId) {
throw new BadRequest('Knowledge ID and Document ID are required');
}
// Verify entities exist
$knowledge = $this->entityManager->getEntityById('CAIKnowledge', $knowledgeId);
if (!$knowledge) {
throw new NotFound('Knowledge entry not found');
}
$document = $this->entityManager->getEntityById('CDokumente', $documentId);
if (!$document) {
throw new NotFound('Document not found');
}
$pdo = $this->entityManager->getPDO();
// Check if link already exists
$existing = $this->checkIfLinked($knowledgeId, $documentId);
if ($existing) {
// Link exists - update junction columns
return $this->updateExisting($knowledgeId, $documentId, $data);
}
// Create new link via ORM (triggers hooks like DokumenteSyncStatus)
$this->entityManager->getRDBRepository('CAIKnowledge')
->getRelation($knowledge, 'dokumentes')
->relate($document);
// Now set junction columns if provided
if (!empty((array)$data)) {
return $this->updateExisting($knowledgeId, $documentId, $data);
}
// Return created entry
$result = $this->getJunctionEntry($knowledgeId, $documentId);
return ResponseComposer::json($result);
}
private function checkIfLinked(string $knowledgeId, string $documentId): bool
{
$pdo = $this->entityManager->getPDO();
$sql = "
SELECT COUNT(*) as count
FROM c_a_i_knowledge_dokumente
WHERE c_a_i_knowledge_id = :knowledgeId
AND c_dokumente_id = :documentId
AND deleted = 0
";
$sth = $pdo->prepare($sql);
$sth->execute([
'knowledgeId' => $knowledgeId,
'documentId' => $documentId
]);
$result = $sth->fetch(\PDO::FETCH_ASSOC);
return $result['count'] > 0;
}
private function updateExisting(string $knowledgeId, string $documentId, \stdClass $data): Response
{
$pdo = $this->entityManager->getPDO();
// Build dynamic UPDATE SET clause
$setClauses = [];
$params = [
'knowledgeId' => $knowledgeId,
'documentId' => $documentId
];
if (isset($data->aiDocumentId)) {
$setClauses[] = "ai_document_id = :aiDocumentId";
$params['aiDocumentId'] = $data->aiDocumentId;
}
if (isset($data->syncstatus)) {
$allowedStatuses = ['new', 'unclean', 'synced', 'failed', 'unsupported'];
if (!in_array($data->syncstatus, $allowedStatuses)) {
throw new BadRequest('Invalid syncstatus value. Allowed: ' . implode(', ', $allowedStatuses));
}
$setClauses[] = "syncstatus = :syncstatus";
$params['syncstatus'] = $data->syncstatus;
}
if (isset($data->lastSync)) {
$setClauses[] = "last_sync = :lastSync";
$params['lastSync'] = $data->lastSync;
} elseif (isset($data->updateLastSync) && $data->updateLastSync === true) {
$setClauses[] = "last_sync = NOW()";
}
if (!empty($setClauses)) {
$sql = "
UPDATE c_a_i_knowledge_dokumente
SET " . implode(', ', $setClauses) . "
WHERE c_a_i_knowledge_id = :knowledgeId
AND c_dokumente_id = :documentId
AND deleted = 0
";
$sth = $pdo->prepare($sql);
$sth->execute($params);
}
// Return updated data
$result = $this->getJunctionEntry($knowledgeId, $documentId);
return ResponseComposer::json($result);
}
private function getJunctionEntry(string $knowledgeId, string $documentId): array
{
$pdo = $this->entityManager->getPDO();
$sql = "
SELECT
id as junctionId,
c_a_i_knowledge_id as cAIKnowledgeId,
c_dokumente_id as cDokumenteId,
ai_document_id as aiDocumentId,
syncstatus,
last_sync as lastSync
FROM c_a_i_knowledge_dokumente
WHERE c_a_i_knowledge_id = :knowledgeId
AND c_dokumente_id = :documentId
AND deleted = 0
";
$sth = $pdo->prepare($sql);
$sth->execute([
'knowledgeId' => $knowledgeId,
'documentId' => $documentId
]);
$result = $sth->fetch(\PDO::FETCH_ASSOC);
if (!$result) {
throw new NotFound('Junction entry not found');
}
return $result;
}
}

View File

@@ -0,0 +1,123 @@
<?php
namespace Espo\Custom\Api\JunctionData;
use Espo\Core\Api\Action;
use Espo\Core\Api\Request;
use Espo\Core\Api\Response;
use Espo\Core\Api\ResponseComposer;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\NotFound;
use Espo\ORM\EntityManager;
/**
* PUT /api/v1/JunctionData/CAIKnowledge/:knowledgeId/dokumentes/:documentId
*
* Updates junction table columns for an existing relationship
*/
class UpdateJunction implements Action
{
public function __construct(
private EntityManager $entityManager
) {}
public function process(Request $request): Response
{
$knowledgeId = $request->getRouteParam('knowledgeId');
$documentId = $request->getRouteParam('documentId');
$data = $request->getParsedBody();
if (!$knowledgeId || !$documentId) {
throw new BadRequest('Knowledge ID and Document ID are required');
}
$pdo = $this->entityManager->getPDO();
// Build dynamic UPDATE SET clause
$setClauses = [];
$params = [
'knowledgeId' => $knowledgeId,
'documentId' => $documentId
];
if (isset($data->aiDocumentId)) {
$setClauses[] = "ai_document_id = :aiDocumentId";
$params['aiDocumentId'] = $data->aiDocumentId;
}
if (isset($data->syncstatus)) {
$allowedStatuses = ['new', 'unclean', 'synced', 'failed', 'unsupported'];
if (!in_array($data->syncstatus, $allowedStatuses)) {
throw new BadRequest('Invalid syncstatus value. Allowed: ' . implode(', ', $allowedStatuses));
}
$setClauses[] = "syncstatus = :syncstatus";
$params['syncstatus'] = $data->syncstatus;
}
if (isset($data->lastSync)) {
$setClauses[] = "last_sync = :lastSync";
$params['lastSync'] = $data->lastSync;
} elseif (isset($data->updateLastSync) && $data->updateLastSync === true) {
$setClauses[] = "last_sync = NOW()";
}
if (empty($setClauses)) {
throw new BadRequest('No fields to update. Provide at least one of: aiDocumentId, syncstatus, lastSync');
}
$sql = "
UPDATE c_a_i_knowledge_dokumente
SET " . implode(', ', $setClauses) . "
WHERE c_a_i_knowledge_id = :knowledgeId
AND c_dokumente_id = :documentId
AND deleted = 0
";
$sth = $pdo->prepare($sql);
$sth->execute($params);
$affectedRows = $sth->rowCount();
if ($affectedRows === 0) {
throw new NotFound('Junction entry not found or no changes made');
}
// Return updated data
$result = $this->getJunctionEntry($knowledgeId, $documentId);
return ResponseComposer::json($result);
}
private function getJunctionEntry(string $knowledgeId, string $documentId): array
{
$pdo = $this->entityManager->getPDO();
$sql = "
SELECT
id as junctionId,
c_a_i_knowledge_id as cAIKnowledgeId,
c_dokumente_id as cDokumenteId,
ai_document_id as aiDocumentId,
syncstatus,
last_sync as lastSync
FROM c_a_i_knowledge_dokumente
WHERE c_a_i_knowledge_id = :knowledgeId
AND c_dokumente_id = :documentId
AND deleted = 0
";
$sth = $pdo->prepare($sql);
$sth->execute([
'knowledgeId' => $knowledgeId,
'documentId' => $documentId
]);
$result = $sth->fetch(\PDO::FETCH_ASSOC);
if (!$result) {
throw new NotFound('Junction entry not found');
}
return $result;
}
}

View File

@@ -0,0 +1,23 @@
<?php
namespace Espo\Custom\Controllers;
use Espo\Core\Controllers\Record;
/**
* Junction Controller: CAICollection ↔ CDokumente
*
* Provides REST API access to the junction table with additionalColumns:
* - xaifileid: XAI external file ID
* - syncStatus: Sync state tracking
*/
class CAICollectionCDokumente extends Record
{
// Inherits all CRUD operations from Record controller
//
// Available endpoints:
// GET /api/v1/CAICollectionCDokumente
// GET /api/v1/CAICollectionCDokumente/{id}
// POST /api/v1/CAICollectionCDokumente
// PUT /api/v1/CAICollectionCDokumente/{id}
// DELETE /api/v1/CAICollectionCDokumente/{id}
}

View File

@@ -0,0 +1,7 @@
<?php
namespace Espo\Custom\Controllers;
class CAdvowareAkten extends \Espo\Core\Templates\Controllers\BasePlus
{
}

View File

@@ -0,0 +1,23 @@
<?php
namespace Espo\Custom\Controllers;
use Espo\Core\Controllers\Record;
/**
* Junction Controller: CAdvowareAkten ↔ CDokumente
*
* Provides REST API access to the junction table with additionalColumns:
* - hnr: Advoware HNR reference
* - syncStatus: Sync state tracking
*/
class CAdvowareAktenCDokumente extends Record
{
// Inherits all CRUD operations from Record controller
//
// Available endpoints:
// GET /api/v1/CAdvowareAktenCDokumente
// GET /api/v1/CAdvowareAktenCDokumente/{id}
// POST /api/v1/CAdvowareAktenCDokumente
// PUT /api/v1/CAdvowareAktenCDokumente/{id}
// DELETE /api/v1/CAdvowareAktenCDokumente/{id}
}

View File

@@ -0,0 +1,7 @@
<?php
namespace Espo\Custom\Controllers;
class CAkten extends \Espo\Core\Templates\Controllers\BasePlus
{
}

View File

@@ -0,0 +1,21 @@
<?php
namespace Espo\Custom\Controllers;
use Espo\Core\Controllers\Record;
/**
* Junction Controller: CAkten ↔ CDokumente
*
* Provides REST API access to the Akten-Dokumente relationship.
*
* Available endpoints:
* GET /api/v1/CAktenCDokumente
* GET /api/v1/CAktenCDokumente/{id}
* POST /api/v1/CAktenCDokumente
* PUT /api/v1/CAktenCDokumente/{id}
* DELETE /api/v1/CAktenCDokumente/{id}
*/
class CAktenCDokumente extends Record
{
// Inherits all CRUD operations from Record controller
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Espo\Custom\Hooks\CAkten;
use Espo\ORM\Entity;
use Espo\Core\Hook\Hook\AfterSave;
/**
* DEPRECATED / DEAD CODE — dieser Hook war in der falschen Namespace.
*
* CAkten-Hooks feuern bei CAkten-Saves, nicht bei CDokumente-Saves.
* Die Logik wurde in Hooks/CDokumente/PropagateDocumentsUp.php verschoben.
*/
class PropagateDocumentsUp implements AfterSave
{
public function afterSave(Entity $entity, \Espo\ORM\Repository\Option\SaveOptions $options): void
{
// intentionally empty — see Hooks/CDokumente/PropagateDocumentsUp.php
}
}

View File

@@ -0,0 +1,128 @@
<?php
namespace Espo\Custom\Hooks\CAkten;
use Espo\ORM\Entity;
use Espo\ORM\Repository\Option\SaveOptions;
use Espo\Core\Hook\Hook\BeforeSave;
/**
* Hook: Aktualisiert lastSync + syncStatus (Advoware) und aiLastSync + aiSyncStatus (AI)
* basierend auf dem neuesten Timestamp und schlechtesten Status der verknüpften Dokumente.
*/
class UpdateLastSyncFromDocuments implements BeforeSave
{
public function __construct(
private \Espo\ORM\EntityManager $entityManager
) {}
public function beforeSave(Entity $entity, SaveOptions $options): void
{
if ($options->get('skipHooks')) {
return;
}
if ($entity->isNew()) {
return;
}
try {
$pdo = $this->entityManager->getPDO();
$aktenId = $entity->getId();
// Single aggregation row — CASE inside MAX() avoids the mixed-aggregate bug.
$stmt = $pdo->prepare(
"SELECT
MAX(last_sync_timestamp) AS maxAdvLastSync,
MAX(ai_last_sync) AS maxAiLastSync,
MAX(CASE
WHEN sync_status = 'failed' THEN 2
WHEN sync_status IN ('new','unclean')
OR sync_status IS NULL OR sync_status = '' THEN 1
ELSE 0
END) AS advWorstLevel,
MAX(CASE
WHEN ai_sync_status = 'failed' THEN 2
WHEN ai_sync_status IN ('new','unclean')
OR ai_sync_status IS NULL OR ai_sync_status = '' THEN 1
ELSE 0
END) AS aiWorstLevel,
-- ai_sync_status = unclean triggers graphParsingStatus
SUM(CASE WHEN ai_sync_status = 'unclean' THEN 1 ELSE 0 END) AS aiUncleanCount,
-- aiParsingStatus buckets
SUM(CASE WHEN ai_parsing_status = 'parsing' THEN 1 ELSE 0 END) AS parseParsingCount,
SUM(CASE WHEN ai_parsing_status = 'complete' THEN 1 ELSE 0 END) AS parseCompleteCount,
SUM(CASE WHEN ai_parsing_status = 'failed' THEN 1 ELSE 0 END) AS parseFailedCount,
COUNT(*) AS docCount
FROM c_dokumente
WHERE c_akten_id = :aktenId AND deleted = 0"
);
$stmt->execute([':aktenId' => $aktenId]);
$row = $stmt->fetch(\PDO::FETCH_ASSOC);
if (!$row || (int)$row['docCount'] === 0) {
$entity->set('syncStatus', 'unclean');
$entity->set('aiSyncStatus', 'unclean');
$entity->set('aiParsingStatus', 'unknown');
return;
}
$docCount = (int)$row['docCount'];
// ── Timestamps ─────────────────────────────────────────────────
if (!empty($row['maxAdvLastSync'])) {
$entity->set('lastSync', $row['maxAdvLastSync']);
}
if (!empty($row['maxAiLastSync'])) {
$entity->set('aiLastSync', $row['maxAiLastSync']);
}
// ── Advoware Sync Status (worst-case) ──────────────────────────
$advLevel = (int)($row['advWorstLevel'] ?? 0);
if ($advLevel >= 2) {
$entity->set('syncStatus', 'failed');
} elseif ($advLevel === 1) {
$entity->set('syncStatus', 'unclean');
} else {
$entity->set('syncStatus', 'synced');
}
// ── AI Sync Status (worst-case) ────────────────────────────────
$aiLevel = (int)($row['aiWorstLevel'] ?? 0);
if ($aiLevel >= 2) {
$entity->set('aiSyncStatus', 'failed');
} elseif ($aiLevel === 1) {
$entity->set('aiSyncStatus', 'unclean');
} else {
$entity->set('aiSyncStatus', 'synced');
}
// ── AI Parsing Status (aggregated across all documents) ─────────
// Priority: parsing > unknown > complete_with_failures > complete
$parseParsing = (int)($row['parseParsingCount'] ?? 0);
$parseComplete = (int)($row['parseCompleteCount'] ?? 0);
$parseFailed = (int)($row['parseFailedCount'] ?? 0);
$parseUnknown = $docCount - $parseParsing - $parseComplete - $parseFailed;
if ($parseParsing > 0) {
$entity->set('aiParsingStatus', 'parsing');
} elseif ($parseUnknown > 0) {
$entity->set('aiParsingStatus', 'unknown');
} elseif ($parseFailed > 0) {
// No unknown/parsing left, but some failures
$entity->set('aiParsingStatus', 'complete_with_failures');
} else {
$entity->set('aiParsingStatus', 'complete');
}
// ── Graph Parsing Status (only auto-set to unclean, never reset) ─
// If any document's AI sync status is currently unclean → graph is stale.
// Any other transition (back to complete, etc.) must be done manually.
if ((int)($row['aiUncleanCount'] ?? 0) > 0) {
$entity->set('graphParsingStatus', 'unclean');
}
} catch (\Exception $e) {
$GLOBALS['log']->error('CAkten UpdateLastSyncFromDocuments Hook Error: ' . $e->getMessage());
}
}
}

View File

@@ -3,10 +3,21 @@
namespace Espo\Custom\Hooks\CDokumente;
use Espo\ORM\Entity;
use Espo\ORM\Repository\Option\SaveOptions;
use Espo\Core\Hook\Hook\BeforeSave;
class CDokumente extends \Espo\Core\Hooks\Base
/**
* Hook: Berechnet Dokumenten-Hashes und setzt fileStatus
*
* Verwendet Blake3 als Hash-Algorithmus für optimale Performance
*/
class CDokumente implements BeforeSave
{
public function beforeSave(Entity $entity, array $options = [])
public function __construct(
private \Espo\ORM\EntityManager $entityManager
) {}
public function beforeSave(Entity $entity, SaveOptions $options): void
{
// Problem: isAttributeChanged('dokument') erkennt Datei-Änderungen nicht,
// da EspoCRM Datei-Uploads nicht als Feld-Änderung markiert.
@@ -14,46 +25,46 @@ class CDokumente extends \Espo\Core\Hooks\Base
// um sicherzustellen, dass Hashes bei Datei-Änderungen berechnet werden.
// Optimierung wäre wünschenswert, aber nicht möglich mit aktueller API.
$dokument = $entity->get('dokument');
$dokumentId = $entity->get('dokumentId');
if (!$dokument) {
if (!$dokumentId) {
return;
}
if (is_object($dokument)) {
$attachment = $dokument;
} else {
$attachment = $this->getEntityManager()->getEntity('Attachment', $dokument);
}
// Verwende EntityManager zur korrekten Relation-Verwaltung
$attachment = $this->entityManager->getEntityById('Attachment', $dokumentId);
if (!$attachment) {
return;
}
$filePath = 'data/upload/' . $attachment->get('id');
$filePath = 'data/upload/' . $attachment->getId();
if (!file_exists($filePath)) {
return;
}
// Berechne neue Hashes
$newMd5 = hash_file('md5', $filePath);
$newSha256 = hash_file('sha256', $filePath);
// Berechne Blake3 Hash
$fileContent = file_get_contents($filePath);
if ($fileContent === false) {
return;
}
// Blake3 Hashing - schneller als SHA3 und kryptographisch sicher
$newBlake3 = blake3($fileContent);
// Setze Hashes
$entity->set('md5sum', $newMd5);
$entity->set('sha256', $newSha256);
// Setze Hash
$entity->set('blake3hash', $newBlake3);
// Bestimme Status
if ($entity->isNew()) {
$entity->set('fileStatus', 'new');
} else {
$oldMd5 = $entity->getFetched('md5sum');
$oldSha256 = $entity->getFetched('sha256');
$oldBlake3 = $entity->getFetched('blake3hash');
if ($oldMd5 !== $newMd5 || $oldSha256 !== $newSha256) {
if ($oldBlake3 !== $newBlake3) {
$entity->set('fileStatus', 'changed');
} else {
$entity->set('fileStatus', 'unchanged');
$entity->set('fileStatus', 'synced');
}
}
}

View File

@@ -0,0 +1,90 @@
<?php
namespace Espo\Custom\Hooks\CDokumente;
use Espo\ORM\Entity;
use Espo\Core\Hook\Hook\AfterSave;
/**
* Hook: Propagiert Dokumenten-Verlinkung von CDokumente nach oben zu Räumungsklage/Mietinkasso.
*
* Wenn ein Dokument direkt einer Akte zugewiesen wird (cAktenId gesetzt oder geändert):
* → verknüpfe das Dokument auch via M2M mit der verbundenen Räumungsklage / dem Mietinkasso.
*
* Damit ist sichergestellt, dass über alle Einstiegspunkte (direktes CAkten-Panel,
* cAktenId-Feld) die Beziehung vollständig ist.
*/
class PropagateDocumentsUp implements AfterSave
{
private static array $processing = [];
public function __construct(
private \Espo\ORM\EntityManager $entityManager
) {}
public function afterSave(Entity $entity, \Espo\ORM\Repository\Option\SaveOptions $options): void
{
if ($options->get('skipHooks')) {
return;
}
$akteId = $entity->get('cAktenId');
if (!$akteId) {
return;
}
// Nur wenn cAktenId neu gesetzt oder geändert wurde
if (!$entity->isNew() && !$entity->isAttributeChanged('cAktenId')) {
return;
}
$key = $akteId . '-' . $entity->getId() . '-propagate-up';
if (isset(self::$processing[$key])) {
return;
}
self::$processing[$key] = true;
try {
$akte = $this->entityManager->getEntity('CAkten', $akteId);
if (!$akte) {
return;
}
$raumungsklage = $this->entityManager
->getRDBRepository('CAkten')
->getRelation($akte, 'vmhRumungsklage')
->findOne();
if ($raumungsklage) {
$this->relateDocument($raumungsklage, 'dokumentesvmhraumungsklage', $entity);
}
$mietinkasso = $this->entityManager
->getRDBRepository('CAkten')
->getRelation($akte, 'mietinkasso')
->findOne();
if ($mietinkasso) {
$this->relateDocument($mietinkasso, 'dokumentesmietinkasso', $entity);
}
} catch (\Exception $e) {
$GLOBALS['log']->error('CDokumente PropagateDocumentsUp Error: ' . $e->getMessage());
} finally {
unset(self::$processing[$key]);
}
}
private function relateDocument(Entity $parentEntity, string $relationName, Entity $document): void
{
$repository = $this->entityManager->getRDBRepository($parentEntity->getEntityType());
$relation = $repository->getRelation($parentEntity, $relationName);
$isRelated = $relation
->where(['id' => $document->getId()])
->findOne();
if (!$isRelated) {
$relation->relate($document);
}
}
}

View File

@@ -0,0 +1,193 @@
<?php
namespace Espo\Custom\Hooks\CDokumente;
use Espo\ORM\Entity;
use Espo\Core\Hook\Hook\AfterRelate;
use Espo\Core\Hook\Hook\AfterUnrelate;
use Espo\ORM\Repository\Option\RelateOptions;
use Espo\ORM\Repository\Option\UnrelateOptions;
/**
* Hook: Sync-Status-Aktualisierung wenn ein Dokument über die CDokumente-Panels
* mit einer Räumungsklage oder einem Mietinkasso verknüpft oder entknüpft wird.
*
* Auslöser (von CDokumente-Seite aus):
* - afterRelate 'vmhRumungsklagesdokumente' → Räumungsklage verknüpft
* - afterRelate 'mietinkassosdokumente' → Mietinkasso verknüpft
* - afterUnrelate 'vmhRumungsklagesdokumente' → Räumungsklage entknüpft
* - afterUnrelate 'mietinkassosdokumente' → Mietinkasso entknüpft
*
* Wenn die Verknüpfung von der Räumungsklage/Mietinkasso-Seite kommt, feuern
* stattdessen CVmhRumungsklage/CMietinkasso::PropagateDocuments — dieses Hook
* feuert dann NICHT (EspoCRM feuert afterRelate nur auf der aufrufenden Seite).
*/
class SyncStatusOnRelate implements AfterRelate, AfterUnrelate
{
/** Relation → [parentEntityType, advowareAktenRelation, aiKnowledgeRelation] */
private const RELATION_MAP = [
'vmhRumungsklagesdokumente' => ['CVmhRumungsklage', 'advowareAkten', 'aIKnowledge'],
'mietinkassosdokumente' => ['CMietinkasso', 'advowareAkten', 'aIKnowledge'],
];
/** @var array<string, bool> */
private static array $processing = [];
public function __construct(
private \Espo\ORM\EntityManager $entityManager
) {}
// -------------------------------------------------------------------------
public function afterRelate(
Entity $entity,
string $relationName,
Entity $foreignEntity,
array $columnData,
RelateOptions $options
): void {
if (!isset(self::RELATION_MAP[$relationName])) {
return;
}
$key = $entity->getId() . '-' . $foreignEntity->getId() . '-' . $relationName . '-relate';
if (isset(self::$processing[$key])) {
return;
}
self::$processing[$key] = true;
try {
[, $aktenRelation, $aiKnowledgeRelation] = self::RELATION_MAP[$relationName];
// AdvowareAkten über die Parent-Entity ermitteln
$advowareAkten = $this->entityManager
->getRDBRepository($foreignEntity->getEntityType())
->getRelation($foreignEntity, $aktenRelation)
->findOne();
if ($advowareAkten) {
$entity->set('cAktenId', $advowareAkten->getId());
$entity->set('syncStatus', 'unclean');
$entity->set('aiSyncStatus', 'unclean');
$entity->set('aiParsingStatus', 'unknown');
$this->entityManager->saveEntity($entity, ['silent' => true, 'skipHooks' => true]);
$this->triggerAkteUpdate($advowareAkten->getId());
} else {
// Kein Akte-Link — trotzdem Sync-Status auf unclean setzen
$entity->set('syncStatus', 'unclean');
$entity->set('aiSyncStatus', 'unclean');
$entity->set('aiParsingStatus', 'unknown');
$this->entityManager->saveEntity($entity, ['silent' => true, 'skipHooks' => true]);
}
// AIKnowledge-Verknüpfung propagieren
$aiKnowledge = $this->entityManager
->getRDBRepository($foreignEntity->getEntityType())
->getRelation($foreignEntity, $aiKnowledgeRelation)
->findOne();
if ($aiKnowledge) {
$this->relateIfNotAlready($aiKnowledge, 'dokumentes', $entity);
}
} catch (\Exception $e) {
$GLOBALS['log']->error(
'CDokumente SyncStatusOnRelate afterRelate (' . $relationName . ') Error: ' . $e->getMessage()
);
} finally {
unset(self::$processing[$key]);
}
}
// -------------------------------------------------------------------------
public function afterUnrelate(
Entity $entity,
string $relationName,
Entity $foreignEntity,
UnrelateOptions $options
): void {
if (!isset(self::RELATION_MAP[$relationName])) {
return;
}
$key = $entity->getId() . '-' . $foreignEntity->getId() . '-' . $relationName . '-unrelate';
if (isset(self::$processing[$key])) {
return;
}
self::$processing[$key] = true;
try {
[, $aktenRelation, $aiKnowledgeRelation] = self::RELATION_MAP[$relationName];
// Alte Akte ermitteln
$advowareAkten = $this->entityManager
->getRDBRepository($foreignEntity->getEntityType())
->getRelation($foreignEntity, $aktenRelation)
->findOne();
$oldAkteId = null;
if ($advowareAkten && $entity->get('cAktenId') === $advowareAkten->getId()) {
$oldAkteId = $advowareAkten->getId();
$entity->set('cAktenId', null);
$entity->set('syncStatus', 'unclean');
$entity->set('aiSyncStatus', 'unclean');
$this->entityManager->saveEntity($entity, ['silent' => true, 'skipHooks' => true]);
}
if ($oldAkteId) {
$this->triggerAkteUpdate($oldAkteId);
}
// AIKnowledge-Verknüpfung entfernen
$aiKnowledge = $this->entityManager
->getRDBRepository($foreignEntity->getEntityType())
->getRelation($foreignEntity, $aiKnowledgeRelation)
->findOne();
if ($aiKnowledge) {
$this->unrelateIfExists($aiKnowledge, 'dokumentes', $entity);
}
} catch (\Exception $e) {
$GLOBALS['log']->error(
'CDokumente SyncStatusOnRelate afterUnrelate (' . $relationName . ') Error: ' . $e->getMessage()
);
} finally {
unset(self::$processing[$key]);
}
}
// -------------------------------------------------------------------------
private function triggerAkteUpdate(string $akteId): void
{
$akte = $this->entityManager->getEntityById('CAkten', $akteId);
if ($akte) {
$this->entityManager->saveEntity($akte, ['silent' => true]);
}
}
private function relateIfNotAlready(Entity $parentEntity, string $relationName, Entity $document): void
{
$repository = $this->entityManager->getRDBRepository($parentEntity->getEntityType());
$relation = $repository->getRelation($parentEntity, $relationName);
$isRelated = $relation->where(['id' => $document->getId()])->findOne();
if (!$isRelated) {
$relation->relate($document);
}
}
private function unrelateIfExists(Entity $parentEntity, string $relationName, Entity $document): void
{
$repository = $this->entityManager->getRDBRepository($parentEntity->getEntityType());
$relation = $repository->getRelation($parentEntity, $relationName);
$isRelated = $relation->where(['id' => $document->getId()])->findOne();
if ($isRelated) {
$relation->unrelate($document);
}
}
}

View File

@@ -0,0 +1,134 @@
<?php
namespace Espo\Custom\Hooks\CDokumente;
use Espo\ORM\Entity;
use Espo\ORM\Repository\Option\RemoveOptions;
use Espo\ORM\Repository\Option\SaveOptions;
use Espo\Core\Hook\Hook\AfterRemove;
use Espo\Core\Hook\Hook\AfterSave;
/**
* Hook: Bei Änderung, Verlinkung oder Löschung eines Dokuments syncStatus und
* aiSyncStatus auf "unclean" setzen und die verknüpfte CAkten-Entity aktualisieren.
*
* Auslöser:
* - afterSave: Feldänderungen (name, description, file, …)
* - afterSave: Neues Dokument mit cAktenId
* - afterSave: cAktenId-Änderung (Verlinkung / Entlinkung über CAkten-Panel)
* - afterRemove: Gelöschtes Dokument → verknüpfte Akte neu berechnen
*/
class UpdateJunctionSyncStatus implements AfterSave, AfterRemove
{
public function __construct(
private \Espo\ORM\EntityManager $entityManager
) {}
public function afterSave(Entity $entity, SaveOptions $options): void
{
// Kein Re-Eintritt wenn dieser Hook selbst gespeichert hat
if ($options->get('skipHooks')) {
return;
}
try {
// Fall 1: Neues Dokument → verknüpfte Akte neu berechnen
if ($entity->isNew()) {
if ($entity->get('cAktenId')) {
$this->triggerAkteUpdate($entity->get('cAktenId'));
}
return;
}
// Fall 2: cAktenId geändert (Dokument verlinkt oder entlinkt)
if ($entity->isAttributeChanged('cAktenId')) {
$oldAktenId = $entity->getFetched('cAktenId');
$newAktenId = $entity->get('cAktenId');
// Dokument der neuen Akte zugewiesen → als unclean markieren
if ($newAktenId) {
$entity->set('syncStatus', 'unclean');
$entity->set('aiSyncStatus', 'unclean');
$entity->set('aiParsingStatus', 'unknown');
$this->entityManager->saveEntity($entity, ['silent' => true, 'skipHooks' => true]);
$this->triggerAkteUpdate($newAktenId);
}
// Alte Akte ebenfalls neu berechnen (Dokument entfernt)
if ($oldAktenId && $oldAktenId !== $newAktenId) {
$this->triggerAkteUpdate($oldAktenId);
}
return;
}
// Fall 3: Relevante Feldänderungen (Datei, Name, Beschreibung, …)
if ($this->hasRelevantChanges($entity)) {
if (!$entity->get('cAktenId')) {
return;
}
$entity->set('syncStatus', 'unclean');
$entity->set('aiSyncStatus', 'unclean');
$entity->set('aiParsingStatus', 'unknown');
$this->entityManager->saveEntity($entity, ['silent' => true, 'skipHooks' => true]);
$this->triggerAkteUpdate($entity->get('cAktenId'));
return;
}
// Fall 4: aiParsingStatus geändert (z.B. durch externen Parsing-Service)
// → Akte neu berechnen, aber KEIN unclean setzen (Inhalt ist unverändert)
if ($entity->isAttributeChanged('aiParsingStatus') && $entity->get('cAktenId')) {
$this->triggerAkteUpdate($entity->get('cAktenId'));
}
} catch (\Exception $e) {
$GLOBALS['log']->error('CDokumente UpdateJunctionSyncStatus afterSave Error: ' . $e->getMessage());
}
}
public function afterRemove(Entity $entity, RemoveOptions $options): void
{
$akteId = $entity->get('cAktenId');
if (!$akteId) {
return;
}
try {
$this->triggerAkteUpdate($akteId);
} catch (\Exception $e) {
$GLOBALS['log']->error('CDokumente UpdateJunctionSyncStatus afterRemove Error: ' . $e->getMessage());
}
}
/**
* Speichert die CAkten-Entity neu, damit UpdateLastSyncFromDocuments
* den Sync-Status aller verknüpften Dokumente neu aggregiert.
*/
private function triggerAkteUpdate(string $akteId): void
{
$akte = $this->entityManager->getEntityById('CAkten', $akteId);
if ($akte) {
// silent=true → keine Audit-Einträge; kein skipHooks → UpdateLastSyncFromDocuments läuft
$this->entityManager->saveEntity($akte, ['silent' => true]);
}
}
private function hasRelevantChanges(Entity $entity): bool
{
$relevantFields = [
'name',
'description',
'dokument',
'dokumentId',
'preview',
'previewId',
'fileStatus',
];
foreach ($relevantFields as $field) {
if ($entity->isAttributeChanged($field)) {
return true;
}
}
return false;
}
}

View File

@@ -0,0 +1,134 @@
<?php
namespace Espo\Custom\Hooks\CKuendigung;
use Espo\ORM\Entity;
use Espo\Core\Hook\Hook\AfterSave;
/**
* Hook: Erstellt automatisch AdvowareAkte für Kündigung
*
* Wenn eine Kündigung erstellt/gespeichert wird:
* - Prüfe ob bereits eine AdvowareAkte vorhanden ist (über verknüpfte Räumungsklage)
* - Wenn nein: Erstelle neue AdvowareAkte und verknüpfe sie
*/
class CreateAdvowareAkte implements AfterSave
{
private static array $processing = [];
public function __construct(
private \Espo\ORM\EntityManager $entityManager,
private \Espo\Core\InjectableFactory $injectableFactory
) {}
public function afterSave(
Entity $entity,
\Espo\ORM\Repository\Option\SaveOptions $options
): void {
// Skip if silent or during hooks
if ($options->get('silent') || $options->get('skipHooks')) {
return;
}
// Vermeide Loops
$key = $entity->getId() . '-create-akte';
if (isset(self::$processing[$key])) {
return;
}
self::$processing[$key] = true;
try {
// Prüfe ob Kündigung bereits eine AdvowareAkte hat
$existingAkteId = $entity->get('advowareAktenId');
if ($existingAkteId) {
$GLOBALS['log']->info("CKuendigung CreateAdvowareAkte: Kündigung already has AdvowareAkte: {$existingAkteId}");
unset(self::$processing[$key]);
return; // Bereits vorhanden
}
// Prüfe ob verknüpfte Räumungsklagen eine Akte haben
$raeumungsklagen = $this->entityManager
->getRDBRepository('CKuendigung')
->getRelation($entity, 'vmhRumungsklages')
->find();
foreach ($raeumungsklagen as $rk) {
$rkAkteId = $rk->get('advowareAktenId');
if ($rkAkteId) {
// Übernehme Akte von Räumungsklage
$entity->set('advowareAktenId', $rkAkteId);
$this->entityManager->saveEntity($entity, ['silent' => true, 'skipHooks' => true]);
// Synchronisiere Aktennummer
$akte = $this->entityManager->getEntity('CAkten', $rkAkteId);
if ($akte) {
$this->syncAktennummer($entity, $akte);
}
$GLOBALS['log']->info("CKuendigung CreateAdvowareAkte: Using AdvowareAkte from Räumungsklage: {$rkAkteId}");
unset(self::$processing[$key]);
return;
}
}
// Keine Akte gefunden -> Erstelle neue
$this->createNewAkte($entity);
} catch (\Exception $e) {
$GLOBALS['log']->error('CKuendigung CreateAdvowareAkte Error: ' . $e->getMessage());
} finally {
unset(self::$processing[$key]);
}
}
private function createNewAkte(Entity $kuendigung): void
{
// Hole Aktennummer aus Kündigung (falls vorhanden)
$aktennummer = $kuendigung->get('aktennr');
if (!$aktennummer) {
$aktennummer = time();
}
// Erstelle AdvowareAkte (aktenzeichen bleibt leer)
$akteData = [
'name' => 'Advoware Akte - ' . $kuendigung->get('name'),
'aktennummer' => $aktennummer,
'syncStatus' => 'unclean',
'assignedUserId' => $kuendigung->get('assignedUserId')
];
// Copy teams
$teamsIds = $kuendigung->getLinkMultipleIdList('teams');
if (!empty($teamsIds)) {
$akteData['teamsIds'] = $teamsIds;
}
$akte = $this->entityManager->createEntity('CAkten', $akteData);
if ($akte) {
// Verknüpfe mit Kündigung
$kuendigung->set('advowareAktenId', $akte->getId());
$this->entityManager->saveEntity($kuendigung, ['silent' => true, 'skipHooks' => true]);
// Synchronisiere Aktennummer zurück zur Kündigung (falls leer war)
if (!$kuendigung->get('aktennr') && $akte->get('aktennummer')) {
$kuendigung->set('aktennr', $akte->get('aktennummer'));
$this->entityManager->saveEntity($kuendigung, ['silent' => true, 'skipHooks' => true]);
}
$GLOBALS['log']->info("CKuendigung CreateAdvowareAkte: Created new AdvowareAkte: {$akte->getId()}");
} else {
$GLOBALS['log']->error('CKuendigung CreateAdvowareAkte: Failed to create AdvowareAkte');
}
}
private function syncAktennummer(Entity $kuendigung, Entity $akte): void
{
// Synchronisiere nur Aktennummer (nicht Aktenzeichen, das ist in der Beziehung)
if (!$kuendigung->get('aktennr') && $akte->get('aktennummer')) {
$kuendigung->set('aktennr', $akte->get('aktennummer'));
$this->entityManager->saveEntity($kuendigung, ['silent' => true, 'skipHooks' => true]);
$GLOBALS['log']->info("CKuendigung CreateAdvowareAkte: Synchronized Aktennummer");
}
}
}

View File

@@ -0,0 +1,84 @@
<?php
namespace Espo\Custom\Hooks\CKuendigung;
use Espo\ORM\Entity;
use Espo\Core\Hook\Hook\AfterRelate;
/**
* Hook: Synchronisiert AdvowareAkte zwischen Kündigung und Räumungsklage
*
* Wenn eine Kündigung mit einer Räumungsklage verknüpft wird:
* - Prüfe ob Räumungsklage eine AdvowareAkte hat
* - Wenn ja, verknüpfe diese Akte auch mit der Kündigung
* - Übernehme/Synchronisiere Aktennummer und Aktenzeichen
*/
class SyncAdvowareAkte implements AfterRelate
{
private static array $processing = [];
public function __construct(
private \Espo\ORM\EntityManager $entityManager
) {}
public function afterRelate(
Entity $entity,
string $relationName,
Entity $foreignEntity,
array $columnData,
\Espo\ORM\Repository\Option\RelateOptions $options
): void {
// Nur für vmhRumungsklages-Beziehung (wenn Räumungsklage zu Kündigung hinzugefügt wird)
if ($relationName !== 'vmhRumungsklages') {
return;
}
// Vermeide Loops
$key = $entity->getId() . '-' . $foreignEntity->getId() . '-sync-akte';
if (isset(self::$processing[$key])) {
return;
}
self::$processing[$key] = true;
try {
// $entity = CKuendigung
// $foreignEntity = CVmhRumungsklage
// Hole AdvowareAkte von der Räumungsklage (hasOne relationship - get via field)
$advowareAkteId = $foreignEntity->get('advowareAktenId');
if ($advowareAkteId) {
$advowareAkte = $this->entityManager->getEntity('CAkten', $advowareAkteId);
if ($advowareAkte) {
$GLOBALS['log']->info("CKuendigung SyncAdvowareAkte: Found AdvowareAkte {$advowareAkte->getId()} on Räumungsklage {$foreignEntity->getId()}");
// Prüfe ob Kündigung bereits eine andere Akte hat
$existingAktenId = $entity->get('advowareAktenId');
if ($existingAktenId && $existingAktenId !== $advowareAkteId) {
$GLOBALS['log']->warning("CKuendigung SyncAdvowareAkte: Kündigung already has different AdvowareAkte {$existingAktenId}, will replace with {$advowareAkteId}");
}
// Verknüpfe AdvowareAkte mit Kündigung (belongsTo relationship - set field directly)
$entity->set('advowareAktenId', $advowareAkteId);
// Synchronisiere nur Aktennummer (Aktenzeichen kommt über Beziehung)
if (!$entity->get('aktennr') && $advowareAkte->get('aktennummer')) {
$entity->set('aktennr', $advowareAkte->get('aktennummer'));
}
// Save once with all changes
$this->entityManager->saveEntity($entity, ['silent' => true, 'skipHooks' => true]);
$GLOBALS['log']->info("CKuendigung SyncAdvowareAkte: Successfully linked AdvowareAkte and synchronized Aktennummer to Kündigung");
}
} else {
$GLOBALS['log']->info("CKuendigung SyncAdvowareAkte: Räumungsklage {$foreignEntity->getId()} has no AdvowareAkte yet");
}
} catch (\Exception $e) {
$GLOBALS['log']->error('CKuendigung SyncAdvowareAkte Error: ' . $e->getMessage());
} finally {
unset(self::$processing[$key]);
}
}
}

View File

@@ -0,0 +1,171 @@
<?php
namespace Espo\Custom\Hooks\CMietinkasso;
use Espo\ORM\Entity;
use Espo\Core\Hook\Hook\AfterRelate;
use Espo\Core\Hook\Hook\AfterUnrelate;
/**
* Hook: Propagiert Dokumenten-Verknüpfungen von Mietinkasso zu AdvowareAkten und AIKnowledge
*
* - Wenn Dokument mit Mietinkasso verknüpft wird → verknüpfe auch mit AdvowareAkten + AIKnowledge
* - Wenn Dokument von Mietinkasso entknüpft wird → entknüpfe auch von AdvowareAkten + AIKnowledge
*/
class PropagateDocuments implements AfterRelate, AfterUnrelate
{
private static array $processing = [];
public function __construct(
private \Espo\ORM\EntityManager $entityManager
) {}
public function afterRelate(
Entity $entity,
string $relationName,
Entity $foreignEntity,
array $columnData,
\Espo\ORM\Repository\Option\RelateOptions $options
): void {
// Nur für dokumentesmietinkasso-Beziehung
if ($relationName !== 'dokumentesmietinkasso') {
return;
}
// Vermeide Loops
$key = $entity->getId() . '-' . $foreignEntity->getId() . '-relate';
if (isset(self::$processing[$key])) {
return;
}
self::$processing[$key] = true;
try {
// Hole verbundene AdvowareAkten
$advowareAkten = $this->entityManager
->getRDBRepository('CMietinkasso')
->getRelation($entity, 'advowareAkten')
->findOne();
// Set direct belongsTo relationship on document
if ($advowareAkten) {
$foreignEntity->set('cAktenId', $advowareAkten->getId());
$foreignEntity->set('syncStatus', 'unclean'); // Advoware-Sync ausstehend
$foreignEntity->set('aiSyncStatus', 'unclean'); // AI-Sync ausstehend
$this->entityManager->saveEntity($foreignEntity, ['silent' => true, 'skipHooks' => true]);
// Akte über neue Verlinkung informieren → syncStatus auf unclean
$akte = $this->entityManager->getEntityById('CAkten', $advowareAkten->getId());
if ($akte) {
$this->entityManager->saveEntity($akte, ['silent' => true]);
}
}
// Hole verbundene AIKnowledge
$aIKnowledge = $this->entityManager
->getRDBRepository('CMietinkasso')
->getRelation($entity, 'aIKnowledge')
->findOne();
// Verknüpfe Dokument mit AIKnowledge
if ($aIKnowledge) {
$this->relateDocument($aIKnowledge, 'dokumentes', $foreignEntity);
}
} catch (\Exception $e) {
$GLOBALS['log']->error('CMietinkasso PropagateDocuments (relate) Error: ' . $e->getMessage());
} finally {
unset(self::$processing[$key]);
}
}
public function afterUnrelate(
Entity $entity,
string $relationName,
Entity $foreignEntity,
\Espo\ORM\Repository\Option\UnrelateOptions $options
): void {
// Nur für dokumentesmietinkasso-Beziehung
if ($relationName !== 'dokumentesmietinkasso') {
return;
}
// Vermeide Loops
$key = $entity->getId() . '-' . $foreignEntity->getId() . '-unrelate';
if (isset(self::$processing[$key])) {
return;
}
self::$processing[$key] = true;
try {
// Hole verbundene AdvowareAkten
$advowareAkten = $this->entityManager
->getRDBRepository('CMietinkasso')
->getRelation($entity, 'advowareAkten')
->findOne();
// Remove direct belongsTo relationship from document
if ($advowareAkten && $foreignEntity->get('cAktenId') === $advowareAkten->getId()) {
$akteId = $advowareAkten->getId(); // Vor dem Löschen merken
$foreignEntity->set('cAktenId', null);
$this->entityManager->saveEntity($foreignEntity, ['silent' => true, 'skipHooks' => true]);
// Akte über Entlinkung informieren → syncStatus neu berechnen
$akte = $this->entityManager->getEntityById('CAkten', $akteId);
if ($akte) {
$this->entityManager->saveEntity($akte, ['silent' => true]);
}
}
// Hole verbundene AIKnowledge
$aIKnowledge = $this->entityManager
->getRDBRepository('CMietinkasso')
->getRelation($entity, 'aIKnowledge')
->findOne();
// Entknüpfe Dokument von AIKnowledge
if ($aIKnowledge) {
$this->unrelateDocument($aIKnowledge, 'dokumentes', $foreignEntity);
}
} catch (\Exception $e) {
$GLOBALS['log']->error('CMietinkasso PropagateDocuments (unrelate) Error: ' . $e->getMessage());
} finally {
unset(self::$processing[$key]);
}
}
/**
* Hilfsfunktion: Verknüpfe Dokument (nur wenn nicht bereits verknüpft)
*/
private function relateDocument(Entity $parentEntity, string $relationName, Entity $document): void
{
$repository = $this->entityManager->getRDBRepository($parentEntity->getEntityType());
$relation = $repository->getRelation($parentEntity, $relationName);
// Prüfe ob bereits verknüpft
$isRelated = $relation
->where(['id' => $document->getId()])
->findOne();
if (!$isRelated) {
$relation->relate($document);
}
}
/**
* Hilfsfunktion: Entknüpfe Dokument
*/
private function unrelateDocument(Entity $parentEntity, string $relationName, Entity $document): void
{
$repository = $this->entityManager->getRDBRepository($parentEntity->getEntityType());
$relation = $repository->getRelation($parentEntity, $relationName);
// Prüfe ob verknüpft
$isRelated = $relation
->where(['id' => $document->getId()])
->findOne();
if ($isRelated) {
$relation->unrelate($document);
}
}
}

View File

@@ -0,0 +1,171 @@
<?php
namespace Espo\Custom\Hooks\CVmhRumungsklage;
use Espo\ORM\Entity;
use Espo\Core\Hook\Hook\AfterRelate;
use Espo\Core\Hook\Hook\AfterUnrelate;
/**
* Hook: Propagiert Dokumenten-Verknüpfungen von Räumungsklage zu AdvowareAkten und AIKnowledge
*
* - Wenn Dokument mit Räumungsklage verknüpft wird → verknüpfe auch mit AdvowareAkten + AIKnowledge
* - Wenn Dokument von Räumungsklage entknüpft wird → entknüpfe auch von AdvowareAkten + AIKnowledge
*/
class PropagateDocuments implements AfterRelate, AfterUnrelate
{
private static array $processing = [];
public function __construct(
private \Espo\ORM\EntityManager $entityManager
) {}
public function afterRelate(
Entity $entity,
string $relationName,
Entity $foreignEntity,
array $columnData,
\Espo\ORM\Repository\Option\RelateOptions $options
): void {
// Nur für dokumentesvmhraumungsklage-Beziehung
if ($relationName !== 'dokumentesvmhraumungsklage') {
return;
}
// Vermeide Loops
$key = $entity->getId() . '-' . $foreignEntity->getId() . '-relate';
if (isset(self::$processing[$key])) {
return;
}
self::$processing[$key] = true;
try {
// Hole verbundene AdvowareAkten
$advowareAkten = $this->entityManager
->getRDBRepository('CVmhRumungsklage')
->getRelation($entity, 'advowareAkten')
->findOne();
// Set direct belongsTo relationship on document
if ($advowareAkten) {
$foreignEntity->set('cAktenId', $advowareAkten->getId());
$foreignEntity->set('syncStatus', 'unclean'); // Advoware-Sync ausstehend
$foreignEntity->set('aiSyncStatus', 'unclean'); // AI-Sync ausstehend
$this->entityManager->saveEntity($foreignEntity, ['silent' => true, 'skipHooks' => true]);
// Akte über neue Verlinkung informieren → syncStatus auf unclean
$akte = $this->entityManager->getEntityById('CAkten', $advowareAkten->getId());
if ($akte) {
$this->entityManager->saveEntity($akte, ['silent' => true]);
}
}
// Hole verbundene AIKnowledge
$aIKnowledge = $this->entityManager
->getRDBRepository('CVmhRumungsklage')
->getRelation($entity, 'aIKnowledge')
->findOne();
// Verknüpfe Dokument mit AIKnowledge
if ($aIKnowledge) {
$this->relateDocument($aIKnowledge, 'dokumentes', $foreignEntity);
}
} catch (\Exception $e) {
$GLOBALS['log']->error('CVmhRumungsklage PropagateDocuments (relate) Error: ' . $e->getMessage());
} finally {
unset(self::$processing[$key]);
}
}
public function afterUnrelate(
Entity $entity,
string $relationName,
Entity $foreignEntity,
\Espo\ORM\Repository\Option\UnrelateOptions $options
): void {
// Nur für dokumentesvmhraumungsklage-Beziehung
if ($relationName !== 'dokumentesvmhraumungsklage') {
return;
}
// Vermeide Loops
$key = $entity->getId() . '-' . $foreignEntity->getId() . '-unrelate';
if (isset(self::$processing[$key])) {
return;
}
self::$processing[$key] = true;
try {
// Hole verbundene AdvowareAkten
$advowareAkten = $this->entityManager
->getRDBRepository('CVmhRumungsklage')
->getRelation($entity, 'advowareAkten')
->findOne();
// Remove direct belongsTo relationship from document
if ($advowareAkten && $foreignEntity->get('cAktenId') === $advowareAkten->getId()) {
$akteId = $advowareAkten->getId(); // Vor dem Löschen merken
$foreignEntity->set('cAktenId', null);
$this->entityManager->saveEntity($foreignEntity, ['silent' => true, 'skipHooks' => true]);
// Akte über Entlinkung informieren → syncStatus neu berechnen
$akte = $this->entityManager->getEntityById('CAkten', $akteId);
if ($akte) {
$this->entityManager->saveEntity($akte, ['silent' => true]);
}
}
// Hole verbundene AIKnowledge
$aIKnowledge = $this->entityManager
->getRDBRepository('CVmhRumungsklage')
->getRelation($entity, 'aIKnowledge')
->findOne();
// Entknüpfe Dokument von AIKnowledge
if ($aIKnowledge) {
$this->unrelateDocument($aIKnowledge, 'dokumentes', $foreignEntity);
}
} catch (\Exception $e) {
$GLOBALS['log']->error('CVmhRumungsklage PropagateDocuments (unrelate) Error: ' . $e->getMessage());
} finally {
unset(self::$processing[$key]);
}
}
/**
* Hilfsfunktion: Verknüpfe Dokument (nur wenn nicht bereits verknüpft)
*/
private function relateDocument(Entity $parentEntity, string $relationName, Entity $document): void
{
$repository = $this->entityManager->getRDBRepository($parentEntity->getEntityType());
$relation = $repository->getRelation($parentEntity, $relationName);
// Prüfe ob bereits verknüpft
$isRelated = $relation
->where(['id' => $document->getId()])
->findOne();
if (!$isRelated) {
$relation->relate($document);
}
}
/**
* Hilfsfunktion: Entknüpfe Dokument
*/
private function unrelateDocument(Entity $parentEntity, string $relationName, Entity $document): void
{
$repository = $this->entityManager->getRDBRepository($parentEntity->getEntityType());
$relation = $repository->getRelation($parentEntity, $relationName);
// Prüfe ob verknüpft
$isRelated = $relation
->where(['id' => $document->getId()])
->findOne();
if ($isRelated) {
$relation->unrelate($document);
}
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "الاجتماعات",
"calls": "المكالمات",
"tasks": "مهام"
},
"labels": {
"Create CAdvowareAkten": "إنشاء {الكيانTypeTranslated}"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "الاجتماعات",
"calls": "المكالمات",
"tasks": "مهام"
},
"labels": {
"Create CAkten": "إنشاء {الكيانTypeTranslated}"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Срещи",
"calls": "Разговори",
"tasks": "Задачи"
},
"labels": {
"Create CAdvowareAkten": "Създаване на Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Срещи",
"calls": "Разговори",
"tasks": "Задачи"
},
"labels": {
"Create CAkten": "Създаване на Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Schůzky",
"calls": "Hovory",
"tasks": "Úkoly"
},
"labels": {
"Create CAdvowareAkten": "Vytvořit Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Schůzky",
"calls": "Hovory",
"tasks": "Úkoly"
},
"labels": {
"Create CAkten": "Vytvořit Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Møder",
"calls": "Opkald",
"tasks": "Opgaver"
},
"labels": {
"Create CAdvowareAkten": "Opret Advoware Akten "
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Møder",
"calls": "Opkald",
"tasks": "Opgaver"
},
"labels": {
"Create CAkten": "Opret Advoware Akten "
}
}

View File

@@ -0,0 +1,47 @@
{
"links": {
"calls": "Anrufe",
"tasks": "Aufgaben",
"vmhRumungsklage": "Räumungsklagen",
"mietinkasso": "Mietinkasso",
"kuendigungen": "Kündigungen",
"dokumentes": "Dokumente"
},
"labels": {
"Create CAdvowareAkten": "Advoware Akten erstellen"
},
"fields": {
"vmhRumungsklage": "Räumungsklagen",
"mietinkasso": "Mietinkasso",
"aktenzeichen": "Aktenzeichen",
"aktennummer": "Aktennummer",
"syncStatus": "Sync-Status",
"lastSync": "Letzte Synchronisation",
"aktivierungsstatus": "Aktivierungsstatus",
"dokumentes": "Dokumente",
"dokumenteHnr": "HNR",
"dokumenteSyncstatus": "Sync-Status",
"dokumenteLastSync": "Letzter Sync",
"dokumenteSyncedHash": "Sync-Hash"
},
"options": {
"syncStatus": {
"synced": "Synchronisiert",
"unclean": "Nicht synchronisiert",
"pending_sync": "Synchronisierung ausstehend",
"failed": "Fehlgeschlagen"
},
"aktivierungsstatus": {
"new": "Neu",
"import": "Import",
"active": "Aktiv",
"paused": "Pausiert",
"deactivated": "Deaktiviert"
}
},
"tooltips": {
"syncStatus": "Globaler Synchronisationsstatus: synced = Alle Dokumente synchronisiert, unclean = Mindestens ein Dokument ist neu oder hat Änderungen, pending_sync = Synchronisierung wurde gestartet aber noch nicht abgeschlossen, failed = Synchronisierung fehlgeschlagen. Wird automatisch basierend auf den Dokumenten-Status aktualisiert.",
"lastSync": "Zeitpunkt der letzten erfolgreichen Synchronisation aller Dokumente",
"aktivierungsstatus": "Aktivierungsstatus der Akte: new = Neu angelegt, import = Aus Advoware importiert, active = Aktiv synchronisiert, paused = Synchronisation pausiert, deactivated = Synchronisation deaktiviert"
}
}

View File

@@ -0,0 +1,99 @@
{
"links": {
"calls": "Anrufe",
"tasks": "Aufgaben",
"vmhRumungsklage": "Räumungsklagen",
"mietinkasso": "Mietinkasso",
"kuendigungen": "Kündigungen",
"dokumentes": "Dokumente"
},
"labels": {
"Create CAkten": "Erstellen Akten"
},
"fields": {
"vmhRumungsklage": "Räumungsklagen",
"mietinkasso": "Mietinkasso",
"aktenzeichen": "Aktenzeichen",
"aktennummer": "Aktennummer",
"syncStatus": "Advoware Sync-Status",
"lastSync": "Advoware Letzter Sync",
"aktivierungsstatus": "Advoware Aktivierungsstatus",
"aiCollectionId": "AI Collection-ID",
"aiAktivierungsstatus": "AI Aktivierungsstatus",
"aiSyncStatus": "AI Sync-Status",
"aiLastSync": "AI Letzter Sync",
"aiProvider": "AI Anbieter",
"globalSyncStatus": "Globaler Sync-Status",
"globalLastSync": "Globaler letzter Sync",
"syncSchalter": "Sync aktiv",
"dokumentes": "Dokumente",
"rubrum": "Rubrum",
"aiParsingStatus": "AI Parsing-Status",
"graphParsingStatus": "Graph Parsing-Status"
},
"options": {
"syncStatus": {
"synced": "Synchronisiert",
"unclean": "Nicht synchronisiert",
"pending_sync": "Synchronisierung ausstehend",
"failed": "Fehlgeschlagen"
},
"aktivierungsstatus": {
"new": "Neu",
"import": "Import",
"active": "Aktiv",
"paused": "Pausiert",
"deactivated": "Deaktiviert"
},
"aiAktivierungsstatus": {
"new": "Neu",
"import": "Import",
"active": "Aktiv",
"paused": "Pausiert",
"deactivated": "Deaktiviert"
},
"aiSyncStatus": {
"synced": "Synchronisiert",
"unclean": "Nicht synchronisiert",
"pending_sync": "Synchronisierung ausstehend",
"failed": "Fehlgeschlagen"
},
"aiProvider": {
"ragflow": "RAGflow",
"xai": "xAI"
},
"globalSyncStatus": {
"synced": "Synchronisiert",
"unclean": "Nicht synchronisiert",
"pending_sync": "Synchronisierung ausstehend",
"failed": "Fehlgeschlagen"
},
"aiParsingStatus": {
"unknown": "Unbekannt",
"parsing": "In Verarbeitung",
"complete": "Abgeschlossen",
"complete_with_failures": "Abgeschlossen mit Fehlern"
},
"graphParsingStatus": {
"no_graph": "Kein Graph",
"parsing": "In Verarbeitung",
"complete": "Abgeschlossen",
"unclean": "Veraltet"
}
},
"tooltips": {
"syncStatus": "Advoware-Synchronisationsstatus: synced = Alle Dokumente synchronisiert, unclean = Mindestens ein Dokument ist neu oder hat Änderungen, pending_sync = Synchronisierung ausstehend, failed = Fehlgeschlagen.",
"lastSync": "Zeitpunkt der letzten erfolgreichen Advoware-Synchronisation",
"aktivierungsstatus": "Advoware Aktivierungsstatus: new = Neu angelegt, import = Aus Advoware importiert, active = Aktiv synchronisiert, paused = Pausiert, deactivated = Deaktiviert",
"aiCollectionId": "Eindeutige ID der KI-Datenbank/Collection für diese Akte",
"aiAktivierungsstatus": "KI-Sync Aktivierungsstatus: new = Neu, import = Importiert, active = Aktiv synchronisiert, paused = Pausiert, deactivated = Deaktiviert",
"aiSyncStatus": "KI-Synchronisationsstatus: synced = Alle Dokumente synchronisiert, unclean = Änderungen vorhanden, pending_sync = Ausstehend, failed = Fehlgeschlagen",
"aiLastSync": "Zeitpunkt der letzten erfolgreichen KI-Synchronisation",
"advowareSyncEnabled": "Advoware-Synchronisation für diese Akte aktivieren oder deaktivieren",
"aiSyncEnabled": "KI-Synchronisation für diese Akte aktivieren oder deaktivieren",
"globalSyncStatus": "Übergreifender Sync-Status über alle Synchronisationssysteme",
"globalLastSync": "Zeitpunkt des letzten Sync-Vorgangs über alle Systeme",
"syncSchalter": "Globaler Sync-Schalter: aktiviert oder deaktiviert alle Synchronisationen für diese Akte",
"rubrum": "Rubrum der Akte aus Advoware (Kurzbezeichnung der Parteien)"
}
}

View File

@@ -0,0 +1,33 @@
{
"labels": {
"Create CAktenCDokumente": "Advoware-Dokument-Verknüpfung erstellen",
"CAktenCDokumente": "Advoware-Dokument-Verknüpfungen"
},
"fields": {
"cAkten": "Akte",
"cAktenId": "Akten-ID",
"cDokumente": "Dokument",
"cDokumenteId": "Dokument ID",
"hnr": "HNR",
"syncStatus": "Sync-Status",
"syncedHash": "Sync-Hash",
"deleted": "Gelöscht"
},
"links": {
"cAkten": "Akte",
"cDokumente": "Dokument"
},
"options": {
"syncStatus": {
"new": "Neu",
"changed": "Geändert",
"synced": "Synchronisiert",
"deleted": "Gelöscht"
}
},
"tooltips": {
"hnr": "Advoware HNR Referenz für dieses Dokument",
"syncStatus": "Synchronisierungsstatus mit Advoware",
"syncedHash": "Hash-Wert des zuletzt synchronisierten Dokument-Zustands (zur Änderungserkennung)"
}
}

View File

@@ -2,16 +2,15 @@
"fields": {
"dokument": "Download",
"preview": "Vorschau",
"ydocumentuuid": "Y-Document-UUID",
"md5sum": "MD5-Prüfsumme",
"sha256": "SHA256-Prüfsumme",
"aktennr": "Advoware Identifikator",
"advowareLastSync": "Advoware letzte Synchronisation",
"syncStatus": "Sync-Status",
"xaiId": "x.AI ID",
"xaiCollections": "x.AI Collections",
"xaiSyncStatus": "Sync-Status",
"fileStatus": "Datei-Status",
"blake3hash": "Blake3-Hash",
"hnr": "HNR (Advoware)",
"syncStatus": "Advoware Sync-Status",
"syncedHash": "Advoware Sync-Hash",
"usn": "USN",
"dateipfad": "Dateipfad",
"lastSyncTimestamp": "Advoware Letzter Sync",
"advowareArt": "Advoware Art",
"advowareBemerkung": "Advoware Bemerkung",
"contactsvmhdokumente": "Freigegebene Nutzer",
"vmhMietverhltnisesDokumente": "Mietverhältnisse",
"vmhErstgespraechsdokumente": "Erstgespräche",
@@ -20,7 +19,19 @@
"beteiligte2dokumente": "Beteiligte",
"mietobjekt2dokumente": "Mietobjekte",
"mietinkassosdokumente": "Mietinkasso",
"kndigungensdokumente": "Kündigungen"
"kndigungensdokumente": "Kündigungen",
"aiKnowledgeAiDocumentId": "AI Document ID",
"aiKnowledgeSyncstatus": "AI Sync-Status",
"aiKnowledgeLastSync": "AI Letzter Sync",
"cAkten": "Akte",
"cAktenId": "Akten-ID",
"cAktenName": "Aktenname",
"aiCollectionId": "AI Collection-ID",
"aiSyncHash": "AI Sync-Hash",
"aiSyncStatus": "AI Sync-Status",
"aiLastSync": "AI Letzter Sync",
"aiFileId": "AI File-ID",
"aiParsingStatus": "AI Parsing-Status"
},
"links": {
"contactsvmhdokumente": "Freigegebene Nutzer",
@@ -31,37 +42,48 @@
"beteiligte2dokumente": "Beteiligte",
"mietobjekt2dokumente": "Mietobjekte",
"mietinkassosdokumente": "Mietinkasso",
"kndigungensdokumente": "Kündigungen"
"kndigungensdokumente": "Kündigungen",
"cAkten": "Akte"
},
"labels": {
"Create CDokumente": "Dokument erstellen"
},
"tooltips": {
"aktennr": "Eindeutige Dokument-Nummer aus Advoware",
"advowareLastSync": "Zeitpunkt der letzten Synchronisation mit Advoware",
"syncStatus": "Status der Synchronisation: pending_sync = Warte auf Sync, clean = erfolgreich, unclean = Abweichungen, failed = Fehler",
"xaiId": "Eindeutige ID für x.AI Synchronisation",
"xaiCollections": "Liste der x.AI Collections für dieses Dokument",
"xaiSyncStatus": "Status der x.AI Synchronisation: pending_sync = Warte auf Sync, clean = erfolgreich, unclean = Abweichungen, failed = Fehler",
"fileStatus": "Status der Datei: new = neu hochgeladen, changed = geändert, unchanged = unverändert"
"blake3hash": "Kryptografischer Blake3-Hash der Datei (schneller und sicherer als MD5/SHA256)",
"hnr": "Hierarchische Referenznummer in Advoware",
"syncStatus": "Advoware Sync-Status: new=neu, unclean=geändert, synced=synchronisiert, failed=Fehler, unsupported=nicht unterstützt",
"syncedHash": "Hash-Wert bei letzter erfolgreicher Advoware-Synchronisation",
"usn": "Update Sequence Number - Versionsnummer für Synchronisation",
"dateipfad": "Windows-Dateipfad des Dokuments in Advoware",
"lastSyncTimestamp": "Zeitstempel der letzten erfolgreichen Advoware-Synchronisation",
"advowareArt": "Dokumententyp/Art wie in Advoware klassifiziert",
"advowareBemerkung": "Bemerkungsfeld aus Advoware - wird bei Sync übernommen",
"aiCollectionId": "ID der KI-Collection, in der dieses Dokument indexiert ist",
"aiSyncHash": "Hash-Wert bei letzter erfolgreicher KI-Synchronisation",
"aiSyncStatus": "Synchronisationsstatus mit der KI-Datenbank: new=neu, unclean=geändert, synced=synchronisiert, failed=Fehler, unsupported=nicht unterstützt",
"aiLastSync": "Zeitstempel der letzten erfolgreichen KI-Synchronisation",
"aiFileId": "Datei-ID in der KI-Datenbank nach erfolgter Synchronisation"
},
"options": {
"syncStatus": {
"pending_sync": "Warte auf Sync",
"clean": "Synchronisiert",
"unclean": "Abweichungen",
"failed": "Fehlgeschlagen"
},
"xaiSyncStatus": {
"pending_sync": "Warte auf Sync",
"clean": "Synchronisiert",
"unclean": "Abweichungen",
"failed": "Fehlgeschlagen"
},
"fileStatus": {
"new": "Neu",
"changed": "Geändert",
"unchanged": "Unverändert"
"unclean": "Geändert",
"synced": "Synchronisiert",
"failed": "Fehler",
"unsupported": "Nicht unterstützt"
},
"aiSyncStatus": {
"new": "Neu",
"unclean": "Geändert",
"synced": "Synchronisiert",
"failed": "Fehler",
"unsupported": "Nicht unterstützt"
},
"aiParsingStatus": {
"unknown": "Unbekannt",
"parsing": "In Verarbeitung",
"complete": "Abgeschlossen",
"failed": "Fehlgeschlagen"
}
}
}

View File

@@ -9,6 +9,8 @@
"gekuendigte": "Mieter",
"dokumenteskuendigung": "Dokumente",
"contactsKuendigung": "Portal-Freigaben",
"advowareAkten": "Advoware Akte",
"vmhRumungsklages": "Räumungsklagen",
"pulse": "Pulse"
},
"labels": {
@@ -32,7 +34,7 @@
"modifiedBy": "Geändert von",
"freigeschalteteNutzer": "Freigeschaltete Nutzer",
"collaborators": "Mitarbeiter",
"advowareAktenzeichen": "Advoware Aktenzeichen",
"advowareAkten": "Advoware Akte",
"aktennr": "Advoware Identifikator",
"advowareLastSync": "Letzter Sync",
"syncStatus": "Sync Status",
@@ -99,13 +101,13 @@
"pending_sync": "Warte auf Sync",
"clean": "Synchronisiert",
"unclean": "Änderungen ausstehend",
"failed": "Fehler"
"failed": "Fehler",
"no_sync": "Kein Sync"
}
},
"tooltips": {
"advowareAktenzeichen": "Aktenzeichen aus Advoware für die Synchronisation",
"aktennr": "Eindeutige Kündigungs-Nummer aus Advoware",
"syncStatus": "Status der Synchronisation mit Advoware",
"syncStatus": "Status der Advoware-Synchronisation: pending_sync = Warte auf Sync, clean = erfolgreich synchronisiert, unclean = Änderungen ausstehend, failed = Fehler, no_sync = Nicht synchronisiert",
"sendungsverfolgungsnummer": "Sendungsverfolgungsnummer für Einschreiben",
"mietrueckstand": "Gesamthöhe des Mietrückstands (nur bei Kündigungsgrund Mietrückstand)",
"mietkaution": "Einbehaltene oder ausstehende Mietkaution",

View File

@@ -1,53 +1,40 @@
{
"fields": {
"advowareAktenzeichen": "Advoware Aktenzeichen",
"aktennr": "Advoware Identifikator",
"advowareLastSync": "Advoware letzte Synchronisation",
"syncStatus": "Sync-Status",
"klaeger": "Kläger",
"beklagte": "Beklagte",
"vmhMietverhltnises": "Mietverhältnisse",
"contactsMietinkasso": "Freigegebene Nutzer",
"dokumentesmietinkasso": "Dokumente",
"gerichtsrubrum": "Gerichtsrubrum",
"gegenstandswert": "Gegenstandswert",
"kuendigungsservice": "Kündigungsservice",
"aussergerichtlicheGebuehren13": "Außergerichtliche Gebühren 1,3",
"gerichtskosten1Instanz": "Gerichtskosten 1. Instanz",
"anwaltskosten1Instanz": "Anwaltskosten 1. Instanz",
"freigeschalteteNutzer": "Freigeschaltete Nutzer (veraltet)",
"collaborators": "Mitarbeiter",
"vmhVermietersMIK": "Vermieter"
},
"links": {
"meetings": "Termine",
"calls": "Anrufe",
"tasks": "Aufgaben",
"klaeger": "Kläger",
"beklagte": "Beklagte",
"vmhMietverhltnises": "Mietverhältnisse",
"contactsMietinkasso": "Freigegebene Nutzer",
"dokumentesmietinkasso": "Dokumente",
"freigeschalteteNutzer": "Freigeschaltete Nutzer (veraltet)",
"collaborators": "Mitarbeiter",
"vmhVermietersMIK": "Vermieter",
"pulse": "Pulse"
},
"labels": {
"Create CMietinkasso": "Mietinkasso erstellen"
},
"tooltips": {
"advowareAktenzeichen": "Aktenzeichen aus dem Advoware-System",
"aktennr": "Eindeutige Inkasso-Nummer aus Advoware",
"advowareLastSync": "Zeitpunkt der letzten Synchronisation mit Advoware",
"syncStatus": "Status der Synchronisation: pending_sync = Warte auf Sync, clean = erfolgreich, unclean = Abweichungen, failed = Fehler"
},
"options": {
"syncStatus": {
"pending_sync": "Warte auf Sync",
"clean": "Synchronisiert",
"unclean": "Abweichungen",
"failed": "Fehlgeschlagen"
"fields": {
"klaeger": "Kläger",
"beklagte": "Beklagte",
"vmhMietverhltnises": "Mietverhältnisse",
"contactsMietinkasso": "Freigegebene Nutzer",
"dokumentesmietinkasso": "Dokumente",
"gegenstandswert": "Gegenstandswert",
"kuendigungsservice": "Kündigungsservice",
"aussergerichtlicheGebuehren13": "Außergerichtliche Gebühren 1,3",
"gerichtskosten1Instanz": "Gerichtskosten 1. Instanz",
"anwaltskosten1Instanz": "Anwaltskosten 1. Instanz",
"freigeschalteteNutzer": "Freigeschaltete Nutzer (veraltet)",
"collaborators": "Mitarbeiter",
"vmhVermietersMIK": "Vermieter",
"advowareAkten": "Advoware Akten"
},
"links": {
"meetings": "Termine",
"calls": "Anrufe",
"tasks": "Aufgaben",
"klaeger": "Kläger",
"beklagte": "Beklagte",
"vmhMietverhltnises": "Mietverhältnisse",
"contactsMietinkasso": "Freigegebene Nutzer",
"dokumentesmietinkasso": "Dokumente",
"freigeschalteteNutzer": "Freigeschaltete Nutzer (veraltet)",
"collaborators": "Mitarbeiter",
"vmhVermietersMIK": "Vermieter",
"pulse": "Pulse",
"advowareAkten": "Advoware Akten"
},
"labels": {
"Create CMietinkasso": "Mietinkasso erstellen"
},
"tooltips": {
"gegenstandswert": "Wert des Streitgegenstands",
"kuendigungsservice": "Kündigungsservice aktiviert"
}
}
}

View File

@@ -1,32 +1,27 @@
{
"labels": {
"Create CPulsTeamZuordnung": "Team-Zuordnung erstellen",
"CPulsTeamZuordnung": "Puls Team-Zuordnung",
"cPulsTeamZuordnung": "Puls Team-Zuordnungen"
},
"fields": {
"name": "Name",
"puls": "Puls",
"team": "Team",
"aktiv": "Aktiv",
"abgeschlossen": "Abgeschlossen",
"abgeschlossenAm": "Abgeschlossen am",
"abgeschlossenVon": "Abgeschlossen von",
"prioritaet": "Priorität"
},
"links": {
"puls": "Puls",
"team": "Team",
"abgeschlossenVon": "Abgeschlossen von"
},
"tooltips": {
"aktiv": "Ist diese Team-Zuordnung aktiv? Inaktive werden nicht angezeigt."
},
"options": {
"prioritaet": {
"Niedrig": "Niedrig",
"Normal": "Normal",
"Hoch": "Hoch"
"labels": {
"Create CPulsTeamZuordnung": "Puls-Team-Zuordnung erstellen",
"CPulsTeamZuordnung": "Puls-Team-Zuordnungen"
},
"fields": {
"puls": "Puls",
"pulsId": "Puls ID",
"team": "Team",
"teamId": "Team ID",
"aktiv": "Aktiv",
"abgeschlossen": "Abgeschlossen",
"prioritaet": "Priorität"
},
"links": {
"puls": "Puls",
"team": "Team"
},
"options": {
"prioritaet": {
"Niedrig": "Niedrig",
"Normal": "Normal",
"Hoch": "Hoch",
"Dringend": "Dringend"
}
}
}
}

View File

@@ -1,56 +1,44 @@
{
"fields": {
"portalUser": "Portalnutzer",
"advowareAktenzeichen": "Advoware Aktenzeichen",
"aktennr": "Advoware Identifikator",
"advowareLastSync": "Advoware letzte Synchronisation",
"syncStatus": "Sync-Status",
"xaiCollectionId": "x.AI Collection ID",
"klaeger": "Kläger",
"beklagte": "Beklagte",
"vmhMietverhltnises": "Mietverhältnisse",
"contactsRumungsklage": "Freigegebene Nutzer",
"dokumentesvmhraumungsklage": "Dokumente",
"gerichtsrubrum": "Gerichtsrubrum",
"gegenstandswert": "Gegenstandswert",
"kuendigungsservice": "Kündigungsservice",
"aussergerichtlicheGebuehren13": "Außergerichtliche Gebühren 1,3",
"gerichtskosten1Instanz": "Gerichtskosten 1. Instanz",
"anwaltskosten1Instanz": "Anwaltskosten 1. Instanz",
"freigeschalteteNutzer": "Freigeschaltete Nutzer (veraltet)",
"collaborators": "Mitarbeiter",
"vmhVermietersRKL": "Vermieter"
},
"links": {
"meetings": "Termine",
"calls": "Anrufe",
"tasks": "Aufgaben",
"klaeger": "Kläger",
"beklagte": "Beklagte",
"vmhMietverhltnises": "Mietverhältnisse",
"contactsRumungsklage": "Freigegebene Nutzer",
"dokumentesvmhraumungsklage": "Dokumente",
"freigeschalteteNutzer": "Freigeschaltete Nutzer (veraltet)",
"collaborators": "Mitarbeiter",
"vmhVermietersRKL": "Vermieter",
"pulse": "Pulse"
},
"labels": {
"Create CVmhRumungsklage": "Räumungsklage erstellen"
},
"tooltips": {
"advowareAktenzeichen": "Aktenzeichen aus dem Advoware-System",
"aktennr": "Eindeutige Klage-Nummer aus Advoware",
"advowareLastSync": "Zeitpunkt der letzten Synchronisation mit Advoware",
"syncStatus": "Status der Synchronisation: pending_sync = Warte auf Sync, clean = erfolgreich, unclean = Abweichungen, failed = Fehler",
"xaiCollectionId": "Collection ID für x.AI Synchronisation"
},
"options": {
"syncStatus": {
"pending_sync": "Warte auf Sync",
"clean": "Synchronisiert",
"unclean": "Abweichungen",
"failed": "Fehlgeschlagen"
"fields": {
"portalUser": "Portalnutzer",
"klaeger": "Kläger",
"beklagte": "Beklagte",
"vmhMietverhltnises": "Mietverhältnisse",
"contactsRumungsklage": "Freigegebene Nutzer",
"dokumentesvmhraumungsklage": "Dokumente",
"gerichtsrubrum": "Gerichtsrubrum",
"gegenstandswert": "Gegenstandswert",
"kuendigungsservice": "Kündigungsservice",
"aussergerichtlicheGebuehren13": "Außergerichtliche Gebühren 1,3",
"gerichtskosten1Instanz": "Gerichtskosten 1. Instanz",
"anwaltskosten1Instanz": "Anwaltskosten 1. Instanz",
"freigeschalteteNutzer": "Freigeschaltete Nutzer (veraltet)",
"collaborators": "Mitarbeiter",
"vmhVermietersRKL": "Vermieter",
"advowareAkten": "Advoware Akten"
},
"links": {
"meetings": "Termine",
"calls": "Anrufe",
"tasks": "Aufgaben",
"klaeger": "Kläger",
"beklagte": "Beklagte",
"vmhMietverhltnises": "Mietverhältnisse",
"kuendigungen": "Kündigungen",
"contactsRumungsklage": "Freigegebene Nutzer",
"dokumentesvmhraumungsklage": "Dokumente",
"freigeschalteteNutzer": "Freigeschaltete Nutzer (veraltet)",
"collaborators": "Mitarbeiter",
"vmhVermietersRKL": "Vermieter",
"pulse": "Pulse",
"advowareAkten": "Advoware Akten"
},
"labels": {
"Create CVmhRumungsklage": "Räumungsklage erstellen"
},
"tooltips": {
"gerichtsrubrum": "Rubrum des Gerichtsverfahrens",
"gegenstandswert": "Wert des Streitgegenstands",
"kuendigungsservice": "Kündigungsservice aktiviert"
}
}
}

View File

@@ -4,5 +4,11 @@
},
"labels": {
"Log": "Log"
},
"scopeNamesPlural": {
"CAkten": "Akten"
},
"scopeNames": {
"CAkten": "Akten"
}
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Συναντήσεις",
"calls": "Κλήσεις",
"tasks": "Εργασίες"
},
"labels": {
"Create CAdvowareAkten": "Δημιουργία Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Συναντήσεις",
"calls": "Κλήσεις",
"tasks": "Εργασίες"
},
"labels": {
"Create CAkten": "Δημιουργία Advoware Akten"
}
}

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1 @@
{}

View File

@@ -1 +1,8 @@
{}
{
"fields": {
"cAICollections": "AI Collections"
},
"links": {
"cAICollections": "AI Collections"
}
}

View File

@@ -0,0 +1,48 @@
{
"fields": {
"vmhRumungsklage": "Räumungsklagen",
"mietinkasso": "Mietinkasso",
"aktenzeichen": "Aktenzeichen",
"aktennummer": "Aktennummer",
"syncStatus": "Sync Status",
"lastSync": "Last Synchronization",
"aktivierungsstatus": "Activation Status",
"dokumentes": "Dokumente",
"dokumenteHnr": "HNR",
"dokumenteSyncstatus": "Sync Status",
"dokumenteLastSync": "Last Sync",
"dokumenteSyncedHash": "Sync Hash"
},
"links": {
"meetings": "Meetings",
"calls": "Calls",
"tasks": "Tasks",
"vmhRumungsklage": "Räumungsklagen",
"mietinkasso": "Mietinkasso",
"kuendigungen": "Terminations",
"dokumentes": "Dokumente"
},
"labels": {
"Create CAdvowareAkten": "Create Advoware Akten"
},
"options": {
"syncStatus": {
"synced": "Synchronized",
"unclean": "Not Synchronized",
"pending_sync": "Synchronization Pending",
"failed": "Failed"
},
"aktivierungsstatus": {
"new": "New",
"import": "Import",
"active": "Active",
"paused": "Paused",
"deactivated": "Deactivated"
}
},
"tooltips": {
"syncStatus": "Global synchronization status: synced = All documents synchronized, unclean = At least one document is new or has changes, pending_sync = Synchronization started but not yet completed, failed = Synchronization failed. Updated automatically based on document status.",
"lastSync": "Timestamp of the last successful synchronization of all documents",
"aktivierungsstatus": "Activation status of the file: new = Newly created, import = Imported from Advoware, active = Actively synchronized, paused = Synchronization paused, deactivated = Synchronization deactivated"
}
}

View File

@@ -0,0 +1,100 @@
{
"links": {
"meetings": "Meetings",
"calls": "Calls",
"tasks": "Tasks",
"vmhRumungsklage": "Eviction Lawsuits",
"mietinkasso": "Rent Collection",
"kuendigungen": "Terminations",
"dokumentes": "Documents"
},
"labels": {
"Create CAkten": "Erstellen Akten"
},
"fields": {
"vmhRumungsklage": "Eviction Lawsuit",
"mietinkasso": "Rent Collection",
"aktenzeichen": "File Reference",
"aktennummer": "File Number",
"syncStatus": "Advoware Sync Status",
"lastSync": "Advoware Last Sync",
"aktivierungsstatus": "Advoware Activation Status",
"aiCollectionId": "AI Collection ID",
"aiAktivierungsstatus": "AI Activation Status",
"aiSyncStatus": "AI Sync Status",
"aiLastSync": "AI Last Sync",
"aiProvider": "AI Provider",
"globalSyncStatus": "Global Sync Status",
"globalLastSync": "Global Last Sync",
"syncSchalter": "Sync Active",
"dokumentes": "Documents",
"rubrum": "Rubrum",
"aiParsingStatus": "AI Parsing Status",
"graphParsingStatus": "Graph Parsing Status"
},
"options": {
"syncStatus": {
"synced": "Synchronized",
"unclean": "Not Synchronized",
"pending_sync": "Synchronization Pending",
"failed": "Failed"
},
"aktivierungsstatus": {
"new": "New",
"import": "Import",
"active": "Active",
"paused": "Paused",
"deactivated": "Deactivated"
},
"aiAktivierungsstatus": {
"new": "New",
"import": "Import",
"active": "Active",
"paused": "Paused",
"deactivated": "Deactivated"
},
"aiSyncStatus": {
"synced": "Synchronized",
"unclean": "Not Synchronized",
"pending_sync": "Synchronization Pending",
"failed": "Failed"
},
"aiProvider": {
"ragflow": "RAGflow",
"xai": "xAI"
},
"globalSyncStatus": {
"synced": "Synchronized",
"unclean": "Not Synchronized",
"pending_sync": "Synchronization Pending",
"failed": "Failed"
},
"aiParsingStatus": {
"unknown": "Unknown",
"parsing": "Parsing",
"complete": "Complete",
"complete_with_failures": "Complete with Failures"
},
"graphParsingStatus": {
"no_graph": "No Graph",
"parsing": "Parsing",
"complete": "Complete",
"unclean": "Stale"
}
},
"tooltips": {
"syncStatus": "Advoware sync status: synced = All documents synchronized, unclean = At least one document changed, pending_sync = Pending, failed = Failed.",
"lastSync": "Timestamp of last successful Advoware synchronization",
"aktivierungsstatus": "Advoware activation status: new = Newly created, import = Imported from Advoware, active = Actively synchronized, paused = Paused, deactivated = Deactivated",
"aiCollectionId": "Unique ID of the AI database/collection for this file",
"aiAktivierungsstatus": "AI sync activation status: new = New, import = Imported, active = Actively synchronized, paused = Paused, deactivated = Deactivated",
"aiSyncStatus": "AI sync status: synced = All documents synchronized, unclean = Changes pending, pending_sync = Pending, failed = Failed",
"aiLastSync": "Timestamp of last successful AI synchronization",
"advowareSyncEnabled": "Enable or disable Advoware synchronization for this file",
"aiSyncEnabled": "Enable or disable AI synchronization for this file",
"globalSyncStatus": "Overall sync status across all synchronization systems",
"globalLastSync": "Timestamp of last sync across all systems",
"syncSchalter": "Global sync switch: enables or disables all synchronizations for this file",
"rubrum": "Rubrum of the file from Advoware (short designation of parties)"
}
}

View File

@@ -0,0 +1,33 @@
{
"labels": {
"Create CAktenCDokumente": "Create Advoware Document Link",
"CAktenCDokumente": "Advoware Document Links"
},
"fields": {
"cAkten": "File",
"cAktenId": "File ID",
"cDokumente": "Document",
"cDokumenteId": "Document ID",
"hnr": "HNR",
"syncStatus": "Sync Status",
"syncedHash": "Sync Hash",
"deleted": "Deleted"
},
"links": {
"cAkten": "File",
"cDokumente": "Document"
},
"options": {
"syncStatus": {
"new": "New",
"changed": "Changed",
"synced": "Synced",
"deleted": "Deleted"
}
},
"tooltips": {
"hnr": "Advoware HNR reference for this document",
"syncStatus": "Synchronization status with Advoware",
"syncedHash": "Hash value of the last synchronized document state (for change detection)"
}
}

View File

@@ -1,26 +1,37 @@
{
"fields": {
"dokument": "Download",
"ydocumentuuid": "Y-Document-UUID",
"preview": "Preview",
"hnr": "HNR (Advoware)",
"syncStatus": "Advoware Sync Status",
"syncedHash": "Advoware Sync Hash",
"usn": "USN",
"dateipfad": "File Path",
"lastSyncTimestamp": "Advoware Last Sync",
"advowareArt": "Advoware Type",
"advowareBemerkung": "Advoware Remarks",
"contactsvmhdokumente": "Portal Users",
"vmhMietverhltnisesDokumente": "Tenancies",
"vmhErstgespraechsdokumente": "Initial Consultations",
"vmhRumungsklagesdokumente": "Eviction Lawsuits",
"kuendigungDokumente": "Terminations",
"md5sum": "MD5 Checksum",
"sha256": "SHA256 Checksum",
"blake3hash": "Blake3 Hash",
"beteiligte2dokumente": "Parties",
"mietobjekt2dokumente": "Properties",
"mietinkassosdokumente": "Rent Collection",
"kndigungensdokumente": "Terminations",
"aktennr": "Advoware Identifier",
"advowareLastSync": "Advoware Last Sync",
"syncStatus": "Sync Status",
"xaiId": "x.AI ID",
"xaiCollections": "x.AI Collections",
"xaiSyncStatus": "Sync Status",
"fileStatus": "File Status"
"aiKnowledgeAiDocumentId": "AI Document ID",
"aiKnowledgeSyncstatus": "AI Sync Status",
"aiKnowledgeLastSync": "AI Last Sync",
"cAkten": "File",
"cAktenId": "File ID",
"cAktenName": "File Name",
"aiCollectionId": "AI Collection ID",
"aiSyncHash": "AI Sync Hash",
"aiSyncStatus": "AI Sync Status",
"aiLastSync": "AI Last Sync",
"aiFileId": "AI File ID",
"aiParsingStatus": "AI Parsing Status"
},
"links": {
"contactsvmhdokumente": "Portal Users",
@@ -31,40 +42,54 @@
"beteiligte2dokumente": "Parties",
"mietobjekt2dokumente": "Properties",
"mietinkassosdokumente": "Rent Collection",
"kndigungensdokumente": "Terminations"
"kndigungensdokumente": "Terminations",
"cAkten": "File"
},
"labels": {
"Create CDokumente": "Create Dokument"
},
"layouts": {
"listRaeumungsKl": "List (RaeumungsKl)"
"listRaeumungsKl": "List (RaeumungsKl)",
"listForAdvowareAkten": "List for Advoware Akten",
"listForAIKnowledge": "List for AI Knowledge",
"listForAkten": "List for Akten"
},
"tooltips": {
"aktennr": "Unique document number from Advoware",
"advowareLastSync": "Time of last synchronization with Advoware",
"syncStatus": "Synchronization status: pending_sync = Waiting for sync, clean = successful, unclean = discrepancies, failed = error",
"xaiId": "Unique ID for x.AI synchronization",
"xaiCollections": "List of x.AI collections for this document",
"xaiSyncStatus": "x.AI synchronization status: pending_sync = Waiting for sync, clean = successful, unclean = discrepancies, failed = error",
"fileStatus": "File status: new = newly uploaded, changed = modified, unchanged = unchanged"
"blake3hash": "Cryptographic Blake3 hash of the file (faster and more secure than MD5/SHA256)",
"hnr": "Hierarchical reference number in Advoware",
"syncStatus": "Advoware sync status: new=new, unclean=changed, synced=synchronized, failed=error, unsupported=not supported",
"syncedHash": "Hash value at last successful Advoware synchronization",
"usn": "Update Sequence Number - Version number for synchronization",
"dateipfad": "Windows file path of the document in Advoware",
"lastSyncTimestamp": "Timestamp of last successful Advoware synchronization",
"advowareArt": "Document type/kind as classified in Advoware",
"advowareBemerkung": "Remarks field from Advoware - synced automatically",
"aiCollectionId": "ID of the AI collection in which this document is indexed",
"aiSyncHash": "Hash value at last successful AI synchronization",
"aiSyncStatus": "AI sync status: new=new, unclean=changed, synced=synchronized, failed=error, unsupported=not supported",
"aiLastSync": "Timestamp of last successful AI synchronization",
"aiFileId": "File ID in the AI database after successful synchronization"
},
"options": {
"syncStatus": {
"pending_sync": "Waiting for Sync",
"clean": "Synchronized",
"unclean": "Discrepancies",
"failed": "Failed"
},
"xaiSyncStatus": {
"pending_sync": "Waiting for Sync",
"clean": "Synchronized",
"unclean": "Discrepancies",
"failed": "Failed"
},
"fileStatus": {
"new": "New",
"changed": "Changed",
"unchanged": "Unchanged"
"unclean": "Changed",
"synced": "Synchronized",
"failed": "Failed",
"unsupported": "Unsupported"
},
"aiSyncStatus": {
"new": "New",
"unclean": "Changed",
"synced": "Synchronized",
"failed": "Failed",
"unsupported": "Unsupported"
},
"aiParsingStatus": {
"unknown": "Unknown",
"parsing": "Parsing",
"complete": "Complete",
"failed": "Failed"
}
}
}

View File

@@ -9,7 +9,7 @@
"modifiedBy": "Modified By",
"freigeschalteteNutzer": "Authorized Users",
"collaborators": "Collaborators",
"advowareAktenzeichen": "Advoware File Number",
"advowareAkten": "Advoware File",
"aktennr": "Case Number",
"advowareLastSync": "Last Sync",
"syncStatus": "Sync Status",
@@ -44,6 +44,8 @@
"gekuendigte": "Tenant",
"dokumenteskuendigung": "Documents",
"contactsKuendigung": "Portal Access",
"advowareAkten": "Advoware Case File",
"vmhRumungsklages": "Eviction Lawsuits",
"pulse": "Pulses"
},
"labels": {
@@ -95,15 +97,16 @@
"JaBesorgnisgrund259ZPO": "Yes, Concern, § 259 ZPO"
},
"syncStatus": {
"pending_sync": "Waiting for Sync",
"clean": "Synchronized",
"unclean": "Changes Pending",
"failed": "Failed"
"failed": "Failed",
"no_sync": "No Sync"
}
},
"tooltips": {
"advowareAktenzeichen": "File number from Advoware for synchronization",
"aktennr": "Case number from Advoware",
"syncStatus": "Synchronization status with Advoware",
"syncStatus": "Advoware synchronization status: pending_sync = Waiting for sync, clean = successfully synchronized, unclean = changes pending, failed = error, no_sync = Not synchronized",
"sendungsverfolgungsnummer": "Tracking number for registered mail",
"mietrueckstand": "Total amount of rent arrears (only for termination reason rent arrears)",
"mietkaution": "Withheld or outstanding security deposit",

View File

@@ -1,52 +1,40 @@
{
"fields": {
"advowareAktenzeichen": "Advoware Case Number",
"aktennr": "Advoware Identifier",
"advowareLastSync": "Advoware Last Sync",
"syncStatus": "Sync Status",
"klaeger": "Plaintiff",
"beklagte": "Defendant",
"vmhMietverhltnises": "Tenancies",
"contactsMietinkasso": "Portal Users",
"dokumentesmietinkasso": "Documents",
"gerichtsrubrum": "Court Rubrum",
"gegenstandswert": "Claim Value",
"kuendigungsservice": "Termination Service",
"aussergerichtlicheGebuehren13": "Out-of-court Fees 1.3",
"gerichtskosten1Instanz": "Court Costs 1st Instance",
"anwaltskosten1Instanz": "Attorney Fees 1st Instance",
"freigeschalteteNutzer": "Activated Users (deprecated)",
"collaborators": "Collaborators",
"vmhVermietersMIK": "Landlord"
},
"links": {
"meetings": "Meetings",
"calls": "Calls",
"tasks": "Tasks",
"klaeger": "Plaintiff",
"beklagte": "Defendant",
"vmhMietverhltnises": "Tenancies",
"contactsMietinkasso": "Portal Users",
"dokumentesmietinkasso": "Documents",
"freigeschalteteNutzer": "Activated Users (deprecated)",
"collaborators": "Collaborators",
"vmhVermietersMIK": "Landlord",
"pulse": "Pulses"
},
"labels": {
"Create CMietinkasso": "Create Mietinkasso"
},
"tooltips": {
"advowareAktenzeichen": "Case number from Advoware system",
"aktennr": "Unique collection number from Advoware",
"advowareLastSync": "Time of last synchronization with Advoware",
"syncStatus": "Synchronization status: clean = successful, unclean = discrepancies, failed = error"
},
"options": {
"syncStatus": {
"clean": "Synchronized",
"unclean": "Discrepancies",
"failed": "Failed"
}
}
}
{
"fields": {
"klaeger": "Plaintiff",
"beklagte": "Defendant",
"vmhMietverhltnises": "Tenancies",
"contactsMietinkasso": "Portal Users",
"dokumentesmietinkasso": "Documents",
"gegenstandswert": "Claim Value",
"kuendigungsservice": "Termination Service",
"aussergerichtlicheGebuehren13": "Out-of-court Fees 1.3",
"gerichtskosten1Instanz": "Court Costs 1st Instance",
"anwaltskosten1Instanz": "Attorney Fees 1st Instance",
"freigeschalteteNutzer": "Activated Users (deprecated)",
"collaborators": "Collaborators",
"vmhVermietersMIK": "Landlord",
"advowareAkten": "Advoware Akten"
},
"links": {
"meetings": "Meetings",
"calls": "Calls",
"tasks": "Tasks",
"klaeger": "Plaintiff",
"beklagte": "Defendant",
"vmhMietverhltnises": "Tenancies",
"contactsMietinkasso": "Portal Users",
"dokumentesmietinkasso": "Documents",
"freigeschalteteNutzer": "Activated Users (deprecated)",
"collaborators": "Collaborators",
"vmhVermietersMIK": "Landlord",
"pulse": "Pulses",
"advowareAkten": "Advoware Akten"
},
"labels": {
"Create CMietinkasso": "Create Mietinkasso"
},
"tooltips": {
"gegenstandswert": "Value of the disputed matter",
"kuendigungsservice": "Termination service enabled"
}
}

View File

@@ -0,0 +1,27 @@
{
"labels": {
"Create CPulsTeamZuordnung": "Create Puls Team Assignment",
"CPulsTeamZuordnung": "Puls Team Assignments"
},
"fields": {
"puls": "Puls",
"pulsId": "Puls ID",
"team": "Team",
"teamId": "Team ID",
"aktiv": "Active",
"abgeschlossen": "Completed",
"prioritaet": "Priority"
},
"links": {
"puls": "Puls",
"team": "Team"
},
"options": {
"prioritaet": {
"Niedrig": "Low",
"Normal": "Normal",
"Hoch": "High",
"Dringend": "Urgent"
}
}
}

View File

@@ -12,13 +12,15 @@
"kuendigungsservice": "Termination Service",
"aussergerichtlicheGebuehren13": "Out-of-Court Fees 1.3",
"gerichtskosten1Instanz": "Court Costs 1st Instance",
"anwaltskosten1Instanz": "Attorney Fees 1st Instance"
"anwaltskosten1Instanz": "Attorney Fees 1st Instance",
"advowareAkten": "Advoware Akten"
},
"links": {
"meetings": "Meetings",
"calls": "Calls",
"tasks": "Tasks",
"vmhMietverhltnises": "Tenancies",
"kuendigungen": "Terminations",
"freigeschalteteNutzer": "Activated Users",
"collaborators": "Collaborators",
"vmhVermietersRKL": "Landlord",
@@ -26,9 +28,15 @@
"beklagte": "Defendant",
"klaeger": "Plaintiff",
"contactsRumungsklage": "Portal Users",
"pulse": "Pulses"
"pulse": "Pulses",
"advowareAkten": "Advoware Akten"
},
"labels": {
"Create CVmhRumungsklage": "Create Räumungsklage"
},
"tooltips": {
"gerichtsrubrum": "Court proceeding rubrum",
"gegenstandswert": "Value of the disputed matter",
"kuendigungsservice": "Termination service enabled"
}
}

View File

@@ -14,7 +14,8 @@
"CBankverbindungen": "Bankverbindung",
"CMietinkasso": "Mietinkasso",
"CKuendigung": "Kündigung",
"CPuls": "Puls"
"CPuls": "Puls",
"CAkten": "Akten"
},
"scopeNamesPlural": {
"CVmhMietverhltnis": "Mietverhältnisse",
@@ -31,6 +32,7 @@
"CBankverbindungen": "Bankverbindungen",
"CMietinkasso": "Mietinkassa",
"CKuendigung": "Kündigungen",
"CPuls": "Pulse"
"CPuls": "Pulse",
"CAkten": "Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Reuniones",
"calls": "Llamadas",
"tasks": "Tareas"
},
"labels": {
"Create CAdvowareAkten": "Crear Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Reuniones",
"calls": "Llamadas",
"tasks": "Tareas"
},
"labels": {
"Create CAkten": "Crear Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Presentaciones",
"calls": "Llamadas",
"tasks": "Tareas"
},
"labels": {
"Create CAdvowareAkten": "Crear Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "Presentaciones",
"calls": "Llamadas",
"tasks": "Tareas"
},
"labels": {
"Create CAkten": "Crear Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "جلسات",
"calls": "تماس ها",
"tasks": "وظایف"
},
"labels": {
"Create CAdvowareAkten": "ایجاد Advoware Akten"
}
}

View File

@@ -0,0 +1,10 @@
{
"links": {
"meetings": "جلسات",
"calls": "تماس ها",
"tasks": "وظایف"
},
"labels": {
"Create CAkten": "ایجاد Advoware Akten"
}
}

View File

@@ -0,0 +1,5 @@
{
"labels": {
"Create CAdvowareAkten": "Créer un Advoware Akten"
}
}

View File

@@ -0,0 +1,5 @@
{
"labels": {
"Create CAkten": "Créer un Advoware Akten"
}
}

Some files were not shown because too many files have changed in this diff Show More