Refactor eviction and rent collection features; migrate logic from Mietobjekt to Mietverhältnis; update localization and UI handlers

This commit is contained in:
2026-01-24 12:28:37 +01:00
parent 6e0c104c6f
commit 2bc3158cd5
12 changed files with 599 additions and 230 deletions

View File

@@ -2,27 +2,6 @@
namespace Espo\Custom\Controllers;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Api\Request;
class CMietobjekt extends \Espo\Core\Templates\Controllers\Base
{
/**
* POST Action: Initiate eviction lawsuit from Mietobjekt
*/
public function postActionInitiateEviction(Request $request): array
{
$data = $request->getParsedBody();
$id = $data->id ?? null;
if (!$id) {
throw new BadRequest('No Mietobjekt ID provided');
}
$service = $this->getRecordService();
$result = $service->initiateEviction($id);
return $result;
}
}